How to white list an IP address in Mod Security

Often you will have a ruleset in Mod_Security that you want to override for a specific IP address or within a certain path in a website or an application.

To do this you need to locate or create your Mod_Security white list file, then add this line:


is the ID of the rule you want to override.

You can also disable mod_security for a domain by adding this line to your mod_security config file:(e.g. modsec2.conf)

Contact us today!

  • This field is for validation purposes and should be left unchanged.