Skip to content

Instantly share code, notes, and snippets.

@mattpavelle
Created March 5, 2014 15:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattpavelle/9369392 to your computer and use it in GitHub Desktop.
Save mattpavelle/9369392 to your computer and use it in GitHub Desktop.
Hide Git files from Apache
RedirectMatch 404 /\.git
@mattpavelle
Copy link
Author

Super simple way to 404 any Git files. This is superior to other error codes as it does not give away the fact that Git is even in use.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment