aboutsummaryrefslogtreecommitdiff
path: root/.htaccess
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-19 17:58:51 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2011-04-19 17:58:51 +0200
commite68db44b6e42de75f2fd243ea82e5f0151d49214 (patch)
tree95cdbe1da3f505a2da8c8fcbb3c5e18d035d6892 /.htaccess
parentcdeb2cfa81147b8e0f641dd84499ac4e232510ca (diff)
forbid direct access to files
Diffstat (limited to '.htaccess')
-rw-r--r--.htaccess15
1 files changed, 12 insertions, 3 deletions
diff --git a/.htaccess b/.htaccess
index 0fdd10c..494da8d 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,8 +1,17 @@
-<Files ~ "^\.ht.*">
+<FilesMatch "^\.ht.*">
deny from all
satisfy all
- ErrorDocument 403 "You are not allowed to access .ht* files!"
-</Files>
+ ErrorDocument 403 "Access to these files is forbidden!"
+</FilesMatch>
+
+<FilesMatch "^data.yaml$">
+ deny from all
+ satisfy all
+ ErrorDocument 403 "Access to these files is forbidden!"
+</FilesMatch>
+
+RewriteEngine On
+RewriteRule \.git.* /data.yaml
Options +ExecCGI
AddHandler cgi-script .cgi