var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
mod_security blocks googlebot help please
I installed mod_security on my apache and noticed from logs that it's blocking googlebot. I have this in my errorlog:
[Tue Sep 05 08:15:06 2006] [error] [client 18.104.22.168] mod_security: Access denied with code 403. Pattern match "^$" at HEADER("Accept") [severity "EMERGENCY"]...
I don't know what it exactly mean.
Is there a way to enable googlebot permanently I mean by IP not by user-agent because it can be simply changed ?
Find the reference to the ^$ line in your mod_security folder and comment it out. Then restart apache.
I found another entry:
[Tue Sep 05 08:32:01 2006] [error] [client 22.214.171.124] mod_security: Access denied with code 403. Pattern match "^$" at HEADER("User-Agent") [severity "EMERGENCY"].
Is this empty user-agent ? that IP also belongs to Google
I saw some exclusion rulesets at the following link that may help you.
Go to your mod_security folder, then type:
That will show you where it's referenced. Add # before the questionable lines to comment them out.
thanx tamar, I found references, I also looked on link posted by sonixi but there seems to be directory based exclusions.
I added this line at the start of badips.conf. Seems that it helps but is this OK ?
I mean syntax and where its placed.
SecFilterSelective REMOTE_ADDR ^66\.249\.(.*)\.(.*) nolog,allow
Uhg the got-root ruleset is nasty, I wouldn't use that on a production box. I would only selectively use some of their rules with my own custom ones.