Open Source Alternatives
Cloudflare's core layer: CDN, DNS, DDoS protection, and reverse proxy in front of your site. R2 storage, the WAF, Access, and Web Analytics each have their own page.
Cloudflare is a trademark of its respective owner.
Updated Aug 2026
Cloudflare's lock-in depends on which products you use. DNS-only users switch by changing nameservers (takes 5 minutes but up to 48 hours for propagation). Teams using Workers, R2, D1, or Tunnel are deeper in the ecosystem. The CDN and DDoS protection are the hardest to replace: Cloudflare's free tier offers protection that would cost thousands elsewhere. Teams using only CDN and DNS can migrate in a day. Teams with Workers at the edge, custom WAF rules, and Tunnel configurations should budget 1-2 weeks. The hidden cost is DDoS protection: without Cloudflare's Anycast network, you're exposed to attacks that Cloudflare absorbed silently.
We find the alternatives so you don't have to
Open source analysis in your inbox every Wednesday.
You can self-host a reverse proxy, a tunnel, and an edge cache. You cannot self-host a global anycast network with 300+ points of presence, and that is the product. The tools below cover the software layer: routing, TLS, tunneling into your network, and caching. They do not cover the part where a packet from Singapore hits a server 12ms away, and none of them is an authoritative DNS host. If you need that, pay Cloudflare. If you are serving one region or already sitting behind one, the OSS stack is fine. For object storage, the firewall, zero-trust access, or analytics, see the Cloudflare R2, Cloudflare WAF, Cloudflare Access, and Cloudflare Web Analytics pages, which are the ones with real replacements.
Cloudflare is a platform. It bundles multiple capabilities into one subscription. These tools each cover one piece. Teams often assemble 2–3 of them instead of paying for the full suite.