From d5ffa39d25c08e3d227731a99b4d633d02ea73e9 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Thu, 24 Feb 2011 12:36:54 -0700 Subject: [PATCH] Updated .htaccess to not display git directories and files --- .htaccess | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.htaccess b/.htaccess index ab5ca6a..f1ee4fe 100644 --- a/.htaccess +++ b/.htaccess @@ -7,3 +7,7 @@ ErrorDocument 401 /errors/401.php ErrorDocument 403 /errors/403.php ErrorDocument 404 /errors/404.php ErrorDocument 500 /errors/500.php + +#Deny access to git files (actually, return 404 errors) +RedirectMatch 404 /\\.git(/|$) +RedirectMatch 404 /\\.gitignore$