mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
deny vendor, composer.json, changelog.md etc. in nginx config sample
This commit is contained in:
parent
9106f1e4ce
commit
f837b3133d
@ -13,9 +13,16 @@ server {
|
|||||||
return 404;
|
return 404;
|
||||||
}
|
}
|
||||||
|
|
||||||
# block .htaccess
|
location /vendor {
|
||||||
location ~ /\.ht {
|
|
||||||
deny all;
|
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
|
# block git files and folders
|
||||||
|
Loading…
x
Reference in New Issue
Block a user