Last active
January 21, 2016 13:03
-
-
Save Nolwennig/54f8dc223ae3ef3f24a8 to your computer and use it in GitHub Desktop.
protection git htaccess
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
# source: https://marceau.casals.fr/blog/2015/05/le-htaccess-ce-heros | |
RedirectMatch 404 ^/(app|config|system|\.hg|\.idea|\.git|logs).*$ | |
RedirectMatch 404 \.(md|json|yaml|gitignore|rev|neon)$ | |
# source: http://serverfault.com/a/527911/329412 // more light but not tested | |
RedirectMatch 404 /\.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment