Skip to content

Instantly share code, notes, and snippets.

@davewardle

davewardle/.htaccess Secret

Created Jul 12, 2017
Embed
What would you like to do?
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
You can’t perform that action at this time.