Skip to content

Instantly share code, notes, and snippets.

@davewardle
Created July 12, 2017 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davewardle/acbd061b94687e1074733ae442f8776c to your computer and use it in GitHub Desktop.
Save davewardle/acbd061b94687e1074733ae442f8776c to your computer and use it in GitHub Desktop.
Block access to PHP files
<FilesMatch "\.(?i:php)$">
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
</FilesMatch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment