Cloudflare IP ranges
101 IPv4 and 329 IPv6 prefixes that Cloudflare publishes for its services, with the region where the provider gives one.
Release Dec 5, 2026 · updated weekly, every Monday
IPv4 prefixes
101
IPv6 prefixes
329
IPv4 addresses
35.9M
Cloudflare IP ranges
First 200 of 430 rows. The downloads have them all.
Use the list
Fetch the list in a script, a firewall or a web server configuration. It changes when the provider changes its ranges.
# Cloudflare IPv4 and IPv6 ranges, one CIDR per line
curl -s https://ipinfo.zip/ip-ranges/cloudflare.txt -o cloudflare.txt
# nginx: allow only Cloudflare (e.g. in front of a load balancer)
awk '{ print "allow " $1 ";" }' cloudflare.txt > cloudflare-allow.conf
echo 'deny all;' >> cloudflare-allow.conf