Skip to content

Instantly share code, notes, and snippets.

@mrclay
Created March 9, 2012 00:35
Show Gist options
  • Save mrclay/2004345 to your computer and use it in GitHub Desktop.
Save mrclay/2004345 to your computer and use it in GitHub Desktop.
Apache rules to deny any active scripts (for an uploads directory)
<FilesMatch "\.(php[3456]?|pl|py|jsp|asp|html|htm|shtml|sh|cgi)$">
Deny from all
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment