mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 09:19:22 +02:00
deny vendor, composer.json, changelog.md etc. in nginx config sample
This commit is contained in:
parent
f98332c698
commit
8b0b123f42
@ -13,9 +13,16 @@ server {
|
||||
return 404;
|
||||
}
|
||||
|
||||
# block .htaccess
|
||||
location ~ /\.ht {
|
||||
location /vendor {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
# block .htaccess, CHANGELOG.md, composer.json etc.
|
||||
# this is to prevent finding software versions
|
||||
location ~\.(ht|md|json|dist)$ {
|
||||
deny all;
|
||||
return 404;
|
||||
}
|
||||
|
||||
# block git files and folders
|
||||
|
Loading…
x
Reference in New Issue
Block a user