Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
update inc/wpsetup.inc deny .tpl extension file access
  • Loading branch information
centminmod committed Oct 19, 2018
1 parent 27dcf78 commit 628eafd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions inc/wpsetup.inc
Expand Up @@ -1861,6 +1861,11 @@ location ~* \.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|them
return 444;
}

location ~* \.(tpl)\$
{
deny all;
}

#nocgi
location ~* \.(pl|cgi|py|sh|lua)\$ {
return 444;
Expand Down

0 comments on commit 628eafd

Please sign in to comment.