deny access to the .git directory (.htaccess)

This commit is contained in:
2013-08-07 14:30:24 +02:00
parent d4affbc169
commit 2c90e20e1a

View File

@@ -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]