Files
nginx-snippets/block-file-access.conf
2025-12-06 12:00:50 +01:00

9 lines
115 B
Plaintext

location ~ /\.git {
deny all;
return 404;
}
location ~ (\.aws$|\.cgi$|\.env$|\.perl$|\.pl$|\.py$) {
return 444;
}