Is it possible to whitelist/blacklist an IP range and what the correct format is for this?
Yes, it's possible.
Example (whitelist an IP range)
To add IP address range you simply go to the Manage IPs section => Manage Bypass List => copy the range into the box => and click to add.
Please note that IP address ranges are supporting using CIDR notation for IPv4 addresses only.
CIDR IP addresses are composed of 2 sets of numbers:
- The network address is written as a prefix, like you would see a normal IP address, for example 22.214.171.124.
- The second part is the suffix which indicates how many bits are in the entire address, for example /12.
Putting it together, a CIDR IP address would look like this:
Important: We don't currently support CIDR in IPv6 at the moment.
Manually block IP address ranges
You can supply an IP CIDR range when blocking IP addresses. Shield won’t validate your range or compare it with other ranges on the IP lists for overlaps. You’ll need to take care when using ranges as you could unintentionally block thousands of visitors with an incorrect range specification.
If you’re unfamiliar with IP CIDR notation, we encourage you to do some research to understand it fully, before attempting to use it. We don’t offer support in building CIDR ranges – we’ll leave this to you. If you’re unsure, it’s best to leave Shield to manage your blacklist for you, completely automatically.
You can find more about this here.