Skip to content

Instantly share code, notes, and snippets.

@lyquix-owner
Created August 29, 2017 11:08
Show Gist options
  • Save lyquix-owner/536cd5ee4bdaa6b89464f32bd338f135 to your computer and use it in GitHub Desktop.
Save lyquix-owner/536cd5ee4bdaa6b89464f32bd338f135 to your computer and use it in GitHub Desktop.
Prevent execution of scripts in directory
<FilesMatch "\.(php|php2|php3|php4|php5|pl|py|jsp|asp|phtm|phtml|shtml|sh|cgi)$">
deny from all
SetHandler none
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment