From 20524dc666806c91aa14e19fcbd2ea7168e624bd Mon Sep 17 00:00:00 2001 From: Steve Youngs Date: Fri, 5 Nov 2010 12:10:40 +1000 Subject: [PATCH 1/1] 2nd attempt at denying .git directory Signed-off-by: Steve Youngs --- .htaccess | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 3d3a1b9..e0a8020 100644 --- a/.htaccess +++ b/.htaccess @@ -4,5 +4,7 @@ AddType text/html .template AddOutputFilter INCLUDES .template # deny access to the toplevel .git directory -RewriteEngine On -RewriteRule \.git - [F,L] + + Order Deny,Allow + Deny from All + -- 2.25.1