Raoul Bhatia
2013-10-27 cb3ea1443ee52b0e323869cdf36db658762f58c9
Deny access to all files not containing a . (dot) to block access to different README, ChangeLog, etc. files of various skins and plugins.
Do not check case for default README/INSTALL/LICENE files.
1 files modified
11 ■■■■ changed files
.htaccess 11 ●●●● patch | view | raw | blame | history
.htaccess
@@ -28,10 +28,17 @@
RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
# security rules
RewriteRule \.git - [F]
RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ - [F]
RewriteRule ^/?(SQL|bin) - [F]
RewriteRule ^/?(README(.md)?|INSTALL|LICENSE|CHANGELOG|UPGRADING)$ - [NC,F]
RewriteRule ^/?(SQL|bin) - [NC,F]
</IfModule>
# deny access to all files not containing a "." (dot)
# to block access to different README, ChangeLog, etc. files
# of various skins and plugins.
<FilesMatch "^[^\.]+$">
Deny from all
</FilesMatch>
<IfModule mod_deflate.c>
SetOutputFilter DEFLATE
</IfModule>