Created
March 13, 2018 19:50
-
-
Save f2face/e4b12ff3d8f31b51fe9ab6c17831aefb to your computer and use it in GitHub Desktop.
Case insensitive .htaccess rules to block direct access to specific file extensions.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example: phtml, htm, html, php | |
<FilesMatch "(?i)\.(phtml|htm|html|php)$"> | |
Order Allow,Deny | |
Deny from all | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment