git files not blocked by htaccess rules
-
The last section of .htaccess rules generated by BWPS has a rule that should block access to Git files, but it’s not working for me. I can open
https://example.com/.gitignore
orhttps://example.com/.git/config
in my browser and see the contents of the files.RewriteCond %{QUERY_STRING} ^.*(bash|git|hg|log|svn|swp|cvs) [NC,OR]
I tried the updated rule from trunk, and it doesn’t block them either.
RewriteCond %{QUERY_STRING} ^.*\.(bash|git|hg|log|svn|swp|cvs) [NC,OR]
https://www.ads-software.com/extend/plugins/better-wp-security/
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘git files not blocked by htaccess rules’ is closed to new replies.