From 2c90e20e1afafd28a184fe7922db2114f7ddcc6c Mon Sep 17 00:00:00 2001 From: franzz Date: Wed, 7 Aug 2013 14:30:24 +0200 Subject: [PATCH] deny access to the .git directory (.htaccess) --- .htaccess | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.htaccess b/.htaccess index 58dbe4f..9114643 100644 --- a/.htaccess +++ b/.htaccess @@ -62,3 +62,6 @@ RewriteRule ^(.*)rss$ index.php?p=rss [L] #E.g RewriteRule ^(.*)\.html $1.php #reading code bytes (by id) #RewriteRule ^(.*)code\-([0-9]+)$ index.php?p=read_code&id_code=$2 [L] + +# Jul - deny access to the .git directory +RewriteRule \.git - [F,L]