maj
This commit is contained in:
@@ -16,10 +16,10 @@ php_fastcgi 127.0.0.1:9000
|
||||
rewrite /(\.git|cache|bin|logs|backups|tests)/.* /403
|
||||
|
||||
# deny running scripts inside core system folders
|
||||
rewrite /(system|vendor)/.*\.(txt|xml|md|html|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ /403
|
||||
rewrite /(system|vendor)/.*\.(txt|xml|md|html|htm|shtml|shtm|yaml|yml|php|php2|php3|php4|php5|phar|phtml|pl|py|cgi|twig|sh|bat)$ /403
|
||||
|
||||
# deny running scripts inside user folder
|
||||
rewrite /user/.*\.(txt|md|yaml|yml|php|pl|py|cgi|twig|sh|bat)$ /403
|
||||
rewrite /user/.*\.(txt|md|yaml|yml|php|php2|php3|php4|php5|phar|phtml|pl|py|cgi|twig|sh|bat)$ /403
|
||||
|
||||
# deny access to specific files in the root folder
|
||||
rewrite /(LICENSE\.txt|composer\.lock|composer\.json|nginx\.conf|web\.config|htaccess\.txt|\.htaccess) /403
|
||||
|
Reference in New Issue
Block a user