Permalink
Browse files

Change sample .htaccess to prevent access to .git information

Add a redirect to keep people out of the .git directory tree
  • Loading branch information...
kwcoffman committed Jul 8, 2011
1 parent 86b2437 commit 062a32a2add926fd3c83eeb8c2f3992e3bd7817b
Showing with 3 additions and 0 deletions.
  1. +3 −0 .htaccess-template
View
@@ -121,4 +121,7 @@ DirectoryIndex index.php
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
+## Don't give access to files within the .git directory
+RedirectMatch 403 /\.git.*$
+
# $Id: .htaccess,v 1.90.2.5 2010/02/02 07:25:22 dries Exp $

0 comments on commit 062a32a

Please sign in to comment.