system_configuration/root/etc/nginx/includes.d/50-block_git.conf
2023-04-15 01:23:32 -07:00

9 lines
162 B
Plaintext

##
# Protect .git files and repositories
# If you use git versioning control on any of your sites, this rule is a must
##
location ~ /\.git {
return 418;
}