All providers

Cloudflare IP Ranges

Cloudflare is the world’s largest CDN. Its 15 IPv4 and 7 IPv6 ranges (anycast) front roughly 20% of the public web and serve DNS, WAF, DDoS protection.

Overview

AS13335 is Cloudflare’s single global ASN. Cloudflare anycasts the same IP prefixes from every one of its 300+ data centers, meaning a connection to a Cloudflare IP from Vietnam reaches Singapore, while the same IP from Germany reaches Frankfurt. The complete IPv4 and IPv6 range lists are publicly available at /ips-v4 and /ips-v6 and are stable — they change rarely.

Services on these IPs

A Cloudflare IP could be fronting any of: a customer website (CDN/proxy), Workers serverless code, Cloudflare Pages static sites, R2 object storage, WARP VPN, Cloudflare Tunnel endpoints, Magic Transit / Spectrum routing. Single IP can serve millions of distinct domains via SNI. Note that 1.1.1.1 / 1.0.0.1 (public DNS) are operated by Cloudflare under a separate APNIC partnership and are NOT in the standard /ips-v4 list.

How to detect Cloudflare IPs

Reverse DNS rarely identifies Cloudflare uniquely (PTRs are often customer-controlled or absent). Definitive checks: ASN lookup (AS13335) or matching the IP against /ips-v4 + /ips-v6. The "CF-Ray" response header on HTTP responses also confirms Cloudflare proxying.

When this matters

Origin servers add Cloudflare IP ranges to their allowlist so only Cloudflare can connect — protecting against origin discovery attacks. SOC teams investigate suspicious Cloudflare-fronted traffic. Researchers map the website-to-IP graph from public Cloudflare ranges.

Caveats

Cloudflare ranges are anycast — geolocation databases often report them as US-based (Cloudflare HQ) regardless of which PoP a user actually hits. The real geographic location requires looking at the CF-IPCountry header set by Cloudflare itself.

IPv4 ranges (15)

✓ Complete official list
CIDRServiceRegion
173.245.48.0/20CDN / Proxy
103.21.244.0/22CDN / Proxy
103.22.200.0/22CDN / Proxy
103.31.4.0/22CDN / Proxy
141.101.64.0/18CDN / Proxy
108.162.192.0/18CDN / Proxy
190.93.240.0/20CDN / Proxy
188.114.96.0/20CDN / Proxy
197.234.240.0/22CDN / Proxy
198.41.128.0/17CDN / Proxy
162.158.0.0/15CDN / Proxy
104.16.0.0/13CDN / Proxy
104.24.0.0/14CDN / Proxy
172.64.0.0/13CDN / Proxy
131.0.72.0/22CDN / Proxy

IPv6 ranges (7)

CIDRService
2400:cb00::/32CDN / Proxy
2606:4700::/32CDN / Proxy
2803:f800::/32CDN / Proxy
2405:b500::/32CDN / Proxy
2405:8100::/32CDN / Proxy
2a06:98c0::/29CDN / Proxy
2c0f:f248::/32CDN / Proxy
enesvizharptrujadefrkoittrplnlidthhi