White list multiple IP addresses

#1

I am looking to whitelist multiple IP addresses (a List of 100 different IPs) all at once, but the cloud flare allows only one per entry. Is there a way to whitelist multiple IP addresses separated by a comma or new lines?

0 Likes

#3

Take a look at the API, you can build a curl command line which can be called in a loop for each of your IP addresses.

1 Like

#4

Is there a way to do that via the CF console?

0 Likes

#5

Not that I know of, do the script as @thedaveCA suggested. Even via JS, Node.js or other means. Use the API.

0 Likes

#6

You can try this firewall rule, but with the Allow action, instead of Block. If I remember it well, the position of a firewall rule matters, and you’d probably have to put this Allow rule as the first rule.

0 Likes