diff options
author | Raoul Bhatia <raoul@bhatia.at> | 2012-05-23 15:34:33 +0200 |
---|---|---|
committer | Raoul Bhatia <raoul@bhatia.at> | 2012-05-23 16:18:23 +0200 |
commit | b332e799b4840ff6d83c6e3730dd256ce493d79b (patch) | |
tree | 91bcb240757e98703498846679800655032fa5e5 /.htaccess | |
parent | 85a6173879bb2486e394fb8e6b8a107a59167374 (diff) |
improve .htaccess security rules:
1. also prevent access to .gitignore
2. make the second security rule work as expected
3. include README.md in security rules
Diffstat (limited to '.htaccess')
-rw-r--r-- | .htaccess | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -30,8 +30,8 @@ php_value mbstring.func_overload 0 RewriteEngine On RewriteRule ^favicon\.ico$ skins/default/images/favicon.ico # security rules -RewriteRule .git/ - [F] -RewriteRule ^README|INSTALL|LICENSE|SQL|bin|CHANGELOG$ - [F] +RewriteRule .git - [F] +RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|SQL|bin|CHANGELOG)$ - [F] </IfModule> <IfModule mod_deflate.c> |