Open Source Alternatives
CDN, DDoS protection, DNS, and edge computing platform.
Cloudflare is a trademark of its respective owner.
Updated May 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.
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.
Enterprise-ready zero-trust access platform built on WireGuard®.
Participative open-source security engine
A next-gen FOSS self-hosted unified zero trust secure access platform that can operate as a remote access VPN, a ZTNA platform, API/AI/MCP gateway, a PaaS, an ngrok-alternative and a homelab infrastructure.