Globally Whitelist an IP on modsec/imunify360 to bypass all rules

Knowledge base article id: 30

You are reading this article becasue you need to whitelist your IP on the server so that you bypass all modsec rules.

Edit the file called modsec2.whitelist.conf and add the following code (replace 192\.168\.0\.1 with your own ip octets)

<IfModule mod_security2.c>
SecRule REMOTE_ADDR "^192\.168\.0\.1$" phase:1,log,allow,ctl:ruleEngine=Off,id:999945
</IfModule>
  • imunify360, whitelist, modsec
  • 0 Users Found This Useful
Was this answer helpful?