diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-04-19 17:58:51 +0200 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2011-04-19 17:58:51 +0200 |
commit | e68db44b6e42de75f2fd243ea82e5f0151d49214 (patch) | |
tree | 95cdbe1da3f505a2da8c8fcbb3c5e18d035d6892 /.htaccess | |
parent | cdeb2cfa81147b8e0f641dd84499ac4e232510ca (diff) |
forbid direct access to files
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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 |