diff --git a/global/server/exclusions.conf b/global/server/exclusions.conf index 19fb359..7269847 100644 --- a/global/server/exclusions.conf +++ b/global/server/exclusions.conf @@ -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; }