White list multiple IP addresses

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?

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

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

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

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.

This topic was automatically closed after 30 days. New replies are no longer allowed.