Use the following steps to whitelist an IP in ModSecurity.
- Login to SSH or Terminal as the root user
- Open the following file in a text editor:
- Add the following to the bottom of the file, but edit it to contain your desired IP address:
# Allow unrestricted access from 192.168.1.100
SecRule REMOTE_ADDR "^192\.168\.1\.100$" phase:1,id:200000001,nolog,allow
- Restart Apache