Created
November 18, 2015 10:58
-
-
Save smichaelsen/406b8336b5f35433d667 to your computer and use it in GitHub Desktop.
TYPO3 .htaccess: Prevent HTTP download of sensible files
This file contains hidden or 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
<FilesMatch ".(bak|config|sql|fla|psd|ini|log|sh|inc|~|swp|gitignore)$"> | |
Order allow,deny | |
Deny from all | |
Satisfy All | |
</FilesMatch> | |
<FilesMatch "(^ChangeLog|INSTALL\.md|LICENSE\.txt|NEWS.md|README.md|_\.htaccess)$"> | |
Order deny,allow | |
Deny from all | |
Satisfy All | |
</FilesMatch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment