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$