Skip to content

Commit

Permalink
deny access to .git directories in .htaccess
Browse files Browse the repository at this point in the history
  • Loading branch information
splitbrain committed Feb 19, 2016
1 parent ba85926 commit 3258ecf
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .htaccess.dist
Expand Up @@ -15,6 +15,11 @@
</IfModule>
</Files>

## Don't allow access to git directories
<IfModule alias_module>
RedirectMatch 404 /\.git
</IfModule>

## Uncomment these rules if you want to have nice URLs using
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
#RewriteEngine on
Expand Down

0 comments on commit 3258ecf

Please sign in to comment.