Cloudflare's own conceptual guides for DNS, CDN, WAF, and DDoS protection. Read →
What Cloudflare Does
Cloudflare sits between the internet and your servers. Its 300+ global edge locations serve cached content locally, block attacks before they reach you, and accelerate everything else. Free tier covers most of what a developer needs.
DNS — authoritative nameserver (fast, 100% uptime SLA)
CDN — cache and serve your assets from the edge nearest each user
SSL/TLS — free certificates, automatic HTTPS
WAF — blocks SQLi, XSS, bot traffic
DDoS protection — absorbs attacks at scale (unmetered on all plans)
Setup
Add your site at cloudflare.com → choose Free plan
Cloudflare scans your existing DNS records
Update nameservers at your registrar to Cloudflare's NS
Wait 5–60 minutes for propagation
Verify: dig NS yourapp.com should show Cloudflare NS
⚠️ Orange vs grey cloud
Orange cloud = proxied through Cloudflare CDN + WAF. Grey cloud = DNS only (bypasses Cloudflare). Always orange for your web server A records. Grey for MX, SMTP, direct server access.
SSL/TLS Configuration
Always use Full (Strict) mode — encrypts both Cloudflare↔User and Cloudflare↔Origin.
Enable these in SSL/TLS settings:
Always Use HTTPS — redirect all HTTP to HTTPS
HSTS — browsers always use HTTPS (enable after confirming HTTPS works)