Files
nginx-snippets/block-file-access.conf

9 lines
121 B
Plaintext
Raw Normal View History

2025-12-19 15:48:34 +01:00
location ~ /\.git {
deny all;
return 404;
}
location ~ (\.aws$|\.cgi$|\.env$|\.perl$|\.pl$|\.py$|\.sh$) {
return 444;
}