Skip to content

Instantly share code, notes, and snippets.

@fossil12
Last active December 11, 2015 18:49
Show Gist options
  • Save fossil12/4644513 to your computer and use it in GitHub Desktop.
Save fossil12/4644513 to your computer and use it in GitHub Desktop.
Apache: Deny access to git specific files on a webserver (all folders). (from http://serverfault.com/a/251003)
# deny access to the top-level git repository:
RewriteRule "^(.*/)?\.git" - [F,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment