Security

Stop mod Security From Blocking Google’s Crawler?

If mod security is blocking Google’s crawler for your website you need to add this on top of your rules:

SecRule REQUEST_HEADERS:User-Agent “compatible; Googlebot” “nolog,allow”

That’s it!!

Read More...

Security

Mod Security Filter for a particular IP

Mod_security can prevent editsĀ  and you will get the error code that is configured within mod_security(while posting data).

Here is a useful way to have mod_security ignore your home / office IP and yet stay active for all other IP addresses:

SecRule REMOTE_ADDR “^127\.0\.0\.1$” phase:1,nolog,allow,ctl:ruleEngine=Off

Simply change the 127.0.0.1 to your home / office IP. If you have more than one IP to add, then simply copy the line and modify it to a second or third IP.

Read More...