Skip to content

Instantly share code, notes, and snippets.

@peterjaap
Last active May 11, 2020 08:25
Show Gist options
  • Save peterjaap/65fb22723f32a79fbc11 to your computer and use it in GitHub Desktop.
Save peterjaap/65fb22723f32a79fbc11 to your computer and use it in GitHub Desktop.
.htaccess deny access to sensitive files Magento
<FilesMatch "\.htaccess|config\.php|composer\.json|composer\.lock|vendor|\.gitignore|install\.php|cron\.sh|config|config\/deploy\.rb|scheduler_cron\.sh|downloader|scripts|shell|includes|dev|LICENSE.txt|LICENSE.html|RELEASE_NOTES.txt|\.htaccess\.sample|LICENSE_AFL.txt">
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