CDN
Cloudflare IP ranges
Cloudflare's edge network proxies traffic for millions of websites. Servers behind Cloudflare usually only accept connections from these ranges.
The ranges Cloudflare's edge uses to connect to your origin. Two common uses: lock your origin firewall so it accepts HTTP only from these ranges, and list them as trusted proxies (nginx set_real_ip_from) so your logs and geolocation see the visitor's IP instead of Cloudflare's.
- IPv4 prefixes
- 15
- IPv6 prefixes
- 7
- IPv4 addresses
- 1,524,736
- Updated
Is this IP Cloudflare?
Checks the address against the current list, in your browser.
Download the list
Generated from the current list.
Source: https://www.cloudflare.com/ips-v4 · https://www.cloudflare.com/ips-v6 · official documentation
All prefixes
The list as of Oct 1, 2026; the page loads the latest copy when it opens.
| Prefix |
|---|
| 103.21.244.0/22 |
| 103.22.200.0/22 |
| 103.31.4.0/22 |
| 104.16.0.0/13 |
| 104.24.0.0/14 |
| 108.162.192.0/18 |
| 131.0.72.0/22 |
| 141.101.64.0/18 |
| 162.158.0.0/15 |
| 172.64.0.0/13 |
| 173.245.48.0/20 |
| 188.114.96.0/20 |
| 190.93.240.0/20 |
| 197.234.240.0/22 |
| 198.41.128.0/17 |
| 2400:cb00::/32 |
| 2405:8100::/32 |
| 2405:b500::/32 |
| 2606:4700::/32 |
| 2803:f800::/32 |
| 2a06:98c0::/29 |
| 2c0f:f248::/32 |
Frequently asked questions
What are the IP ranges of Cloudflare?
How often do the Cloudflare IP ranges change?
How do I allow only Cloudflare in nginx?
IP geolocation API
Know who is behind any IP
Beyond published lists, the ipbase API tells you the owner, ASN and location of every IP address, and on the Medium plan and above its data-center and VPN status, so you can recognise cloud traffic and bots from any provider.
Read the documentation1,000 free requests every month. No credit card required.
GET https://api.ipbase.com/v2/info?ip=1.1.1.1
{
"data": {
"ip": "1.1.1.1",
"type": "v4",
"connection": {
"asn": 13335,
"organization": "APNIC and Cloudflare DNS Resolver project",
"isp": "Cloudflare, Inc",
"range": "1.1.1.0/24"
},
"location": {
"country": { "alpha2": "AU", "name": "Australia" },
"zip": "4000"
},
"security": { "is_vpn": null, "is_tor": null, "threat_score": null }
}
}Related: Find the real client IP behind a CDN · Block or redirect visitors by country · All cloud, CDN and crawler IP ranges