Improve default exclusions
This commit is contained in:
parent
c5c7a203a3
commit
b9641c487e
@ -1,6 +1,11 @@
|
||||
# Deny all attempts to access hidden files such as .htaccess, .htpasswd, .DS_Store (Mac).
|
||||
# Keep logging the requests to parse later (or to pass to firewall utilities such as fail2ban)
|
||||
location ~ /\. {
|
||||
location ~* /\.(?!well-known\/) {
|
||||
deny all;
|
||||
}
|
||||
|
||||
# Prevent access to certain file extensions
|
||||
location ~\.(ini|log|conf)$ {
|
||||
deny all;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user