2nd attempt at denying .git directory
[website] / .htaccess
index 8f51224..e0a8020 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -2,3 +2,9 @@ Options Indexes Includes
 XBitHack On
 AddType text/html .template
 AddOutputFilter INCLUDES .template
+
+# deny access to the toplevel .git directory
+<Directory .git>
+        Order Deny,Allow
+        Deny from All
+</Directory>