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 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.