Open Source Alternatives
Cloudflare CDN, DDoS protection, DNS, and reverse proxy.
cloudflare.com ↗Cloudflare is a trademark of its respective owner.
Updated Jul 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 CDN, a WAF, and a DNS server. You cannot self-host a global anycast network with 300+ points of presence. That's the product. The tools below cover the software layer. They do not cover the part where a packet from Singapore hits a server 12ms away. If you need that, pay Cloudflare. If you're serving one region or sitting behind one already, the OSS stack is fine.
No open source alternatives tracked yet for Cloudflare.