Skip to content

Instantly share code, notes, and snippets.

@davedash
Created May 26, 2016 04:53
Show Gist options
  • Save davedash/7d09060e86c0aa1bf9d4c3764198f911 to your computer and use it in GitHub Desktop.
Save davedash/7d09060e86c0aa1bf9d4c3764198f911 to your computer and use it in GitHub Desktop.
location ~* (\.php|\.cgi)$ {
deny all;
}
location ~* ^/(cgi-bin|scripts)/ {
deny all;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment