Skip to main content

Cloudflare Platform Documentation

A comprehensive guide to securing, accelerating, and building on the Cloudflare global network. From free-tier DNS and CDN to enterprise-grade Zero Trust and edge computing.

Learning Path

1. Foundation

Start here to understand how Cloudflare sits between your users and your origin server.

2. Performance & Protection

Master the core value of Cloudflare: make your site fast and keep it safe.

PillarModuleFocus
SpeedCDN and CachingContent Delivery, Cache Rules, and Speed Brain
ShieldDDoS ProtectionL3/L4 and HTTP DDoS Mitigation
GuardApplication SecurityTurnstile, Challenges, and Bot Fight Mode

3. Zero Trust & Networking

Secure access to internal applications without a traditional VPN.

4. Developer Platform

Build and deploy serverless applications at the edge.

5. Insights & Management

Monitor traffic, configure rules, and manage your Cloudflare zones.

6. Advanced Topics & Reference

Optimize performance, design architecture, and troubleshoot your setup.

How Cloudflare Works

Cloudflare operates as a reverse proxy that sits between your visitors and your origin server. Every request passes through Cloudflare's global network (330+ cities), where it is inspected, cached, and accelerated before reaching your server.

flowchart LR
USER[Visitor] -->|HTTPS Request| CF_EDGE["Cloudflare Edge\n(Nearest PoP)"]
CF_EDGE -->|DDoS Check| WAF["Security Layer\n(WAF / Bot / DDoS)"]
WAF -->|Cache Hit?| CACHE["Cache Layer\n(CDN)"]
CACHE -->|Miss| ORIGIN["Your Origin Server"]
ORIGIN -->|Response| CACHE
CACHE -->|Optimized Response| USER

style CF_EDGE fill:#f6821f,color:#fff,stroke:#e5711e
style WAF fill:#c7402d,color:#fff,stroke:#a8331e
style CACHE fill:#2563eb,color:#fff,stroke:#1e40af
style ORIGIN fill:#6b7280,color:#fff,stroke:#4b5563

Free vs Paid at a Glance

CategoryFree FeaturesPaid-Only Features
DNSAuthoritative DNS, 1.1.1.1, DoH, DoT, Registrar, Email RoutingInternal DNS, Secondary DNS, DNS Firewall
SSLUniversal SSL, SSL/TLS, Post-Quantum CryptoAdvanced Certificate Manager, Key Transparency
CDNCDN, Cache, Speed BrainSmart Tiered Caching, Cache Reserve, Argo
DDoSL3/L4 + HTTP DDoS ProtectionMagic Transit
SecurityTurnstile, Challenges, Super Bot Fight ModeWAF, API Shield, Page Shield, Rate Limiting
Zero TrustWARP Client, Cloudflare Tunnel, Access (limited), Gateway (limited)Browser Isolation, DEX, Network Firewall
ComputeWorkers, Pages, KV (limited), D1 (limited), Queues (limited), Secrets StoreWorkers AI, Containers, R2, Vectorize
AnalyticsAnalytics, Web Analytics, RadarGraphQL API, Log Explorer, Logpush
RulesRules, Ruleset Engine (limited), NotificationsWaiting Room, Health Checks
MiscZaraz (limited), Time Services, Randomness Beacon

Quick Start

Add your site to Cloudflare (overview)
# 1. Sign up at https://dash.cloudflare.com/sign-up (free)

# 2. Add your domain — Cloudflare will scan existing DNS records

# 3. Update your domain's nameservers to the ones Cloudflare assigns:
# e.g. ns1.cloudflare.com / ns2.cloudflare.com

# 4. Wait for propagation (usually under 5 minutes, can take up to 24 hours)

# 5. Your site is now proxied through Cloudflare — SSL, CDN, and DDoS
# protection are active by default!
Prerequisites
  • A registered domain name
  • Access to your domain registrar's nameserver settings
  • Basic understanding of DNS (A records, CNAME records)

Success Criteria

By the end of this documentation, you will be able to:

  • Configure Cloudflare DNS and understand proxy mode vs DNS-only.
  • Harden your site with free SSL, DDoS protection, and bot management.
  • Set up Cloudflare Tunnel for secure, private access to internal services.
  • Deploy serverless applications on Workers, Pages, D1, R2, and Workers AI.
  • Optimize performance using modern protocols (HTTP/3) and advanced caching.
  • Build edge-first architectures with GitOps deployment pipelines.
  • Troubleshoot origin connectivity, SSL handshakes, and Worker exceptions.
  • Monitor traffic with Cloudflare Analytics, Web Analytics, and Radar.