system_configuration/root/etc/nginx/includes.d/50-block_cgi.conf

10 lines
196 B
Plaintext
Raw Normal View History

2023-04-15 01:23:32 -07:00
##
# Protect Perl/CGI/etc files
# Very few sites run perl or cgi scripts anymore, block them !!
# and block people even looking for them
##
location ~* \.(pl|cgi|py|sh|lua)\$ {
return 418;
}