Skip to content

Instantly share code, notes, and snippets.

@timonweb
Created December 1, 2012 19:34
Show Gist options
  • Save timonweb/4184399 to your computer and use it in GitHub Desktop.
Save timonweb/4184399 to your computer and use it in GitHub Desktop.
do not allow .git version control files to be read
# 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>
# 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