Home · Modsecurity help · How-to: Whitelist in Modesecurity

How-to: Whitelist in Modesecurity

If you're using modsecurity version 2.x,
you can white list your website by adding
the following entry to the mod_security
configuration file:

SecRule SERVER_NAME "Mywebpage.tld" phase:1,nolog,allow,ctl:ruleEngine=off

Or if you wnat to whitelist a ip:
SecRule REMOTE_ADDR "@ipMatch XXX.YYY.ZZ.XX"
phase:1,nolog,allow,ctl:ruleEngine=off

Substitute XXX.YYY.ZZ.XX with the IP
you want to white list

03.03.2012. 17:56