Created
December 1, 2012 19:34
-
-
Save timonweb/4184399 to your computer and use it in GitHub Desktop.
do not allow .git version control files to be read
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
# do not allow .git version control files to be issued | |
<Directorymatch "^/.*/\.git+/"> | |
Order deny,allow | |
Deny from all | |
</Directorymatch> | |
<Files ~ "^\.git"> | |
Order allow,deny | |
Deny from all | |
</Files> |
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
# do not allow .git version control files to be issued | |
<Directorymatch "^/.*/\.git+/"> | |
Order deny,allow | |
Deny from all | |
</Directorymatch> | |
<Files ~ "^\.git"> | |
Order allow,deny | |
Deny from all | |
</Files> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment