Skip to content

Instantly share code, notes, and snippets.

@smichaelsen
Created November 18, 2015 10:58
Show Gist options
  • Save smichaelsen/406b8336b5f35433d667 to your computer and use it in GitHub Desktop.
Save smichaelsen/406b8336b5f35433d667 to your computer and use it in GitHub Desktop.
TYPO3 .htaccess: Prevent HTTP download of sensible files
<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