Whitelist Incapsula IP addresses & Setting IP restriction rules
With Incapsula deployed on the edge of your network, and serving as a proxy for all incoming traffic, there should be absolutely no reason to accept traffic from anywhere but our network.
Whitelist Incapsula IPs
Please make sure that:
· Incapsula IPs are whitelisted in your web server firewall and in the firewall deployed in front of your web server.
· Server modules that enforce IP rate limiting are not set to Incapsula IPs.
Restrict access to non-Incapsula IPs
We recommend setting IP restriction rules to block all traffic from non-Incapsula IP addresses. Setting IP restrictions (i.e. using your firewall or iptables) will block all illegal requests that try to circumvent the Incapsula WAF.
Here is a list of IP address ranges that are used by Incapsula:
199.83.128.0/21
198.143.32.0/19
149.126.72.0/21
103.28.248.0/22
45.64.64.0/22
185.11.124.0/22
192.230.64.0/18
107.154.0.0/16
45.60.0.0/16
45.223.0.0/16
2a02:e980::/29
We have converted the above values to simple IP ranges for your convenience:
199.83.128.1 - 199.83.135.254
198.143.32.1 - 198.143.63.254
149.126.72.1 - 149.126.79.254
103.28.248.1 - 103.28.251.254
185.11.124.1 - 185.11.127.254
45.64.64.0 - 45.64.67.255
192.230.64.1 - 192.230.127.254
107.154.0.0 - 107.154.255.254
45.60.0.1 - 45.60.255.254
45.223.0.1 - 45.223.255.254
2a02:e980:0:0:0:0:0:0 - 2a02:e987:ffff:ffff:ffff:ffff:ffff:ffff
This list may change from time to time. We recommend that you subscribe to this item to receive notifications on any future updates. Important Notes:
- If you create such IP restrictions, make sure to back them up if you disable Incapsula on your site or revert your DNS to its original settings.
- Please pay attention to the /21 and /22 networks: For example, the proper range for 149.126.72.0/21 will be 149.126.72.0 - 149.126.79.254
These ranges can be retrieved via API using the following URL:
https://my.incapsula.com/api/integration/v1/ips with parameter resp_format
This will determine the format of the output from one of the following: json | apache | nginx | iptables | text
(for example: curl -k -s --data "resp_format=apache" https://my.incapsula.com/api/integration/v1/ips)
Apache (.htaccess):
order deny,allow
deny from all
allow from 199.83.128.0/21
allow from 198.143.32.0/19
allow from 149.126.72.0/21
allow from 103.28.248.0/22
allow from 185.11.124.0/22
allow from 45.64.64.0/22
allow from 192.230.64.0/18
allow from 107.154.0.0/16
allow from 45.60.0.0/16
allow from 45.223.0.0/16
allow from 2a02:e980::/29
http://support.incapsula.com/entries/20716913-setting-up-htaccess-restrictions
Nginx:
Nginx comes with a simple module called ngx_http_access_module to allow or deny access to IP address.













