PROVIDER - Edge Network Platform

Cloudflare

Cloudflare carries CDN caching, authoritative DNS, DDoS mitigation and the Workers runtime on one Anycast network, with a free tier that covers acceleration and baseline protection for a single domain.

CDN Acceleration United States 2026.11.23
4.9pts

Service Overview

Cloudflare is an entry-layer platform built on its Anycast network, placing cache delivery, authoritative DNS, DDoS mitigation and WAF on one edge footprint so a site keeps a single integration across acceleration, resolution and protection.

Configuration is organised around requests passing through the edge: cache rules and page rules decide edge behaviour, Workers executes JavaScript and WASM at the node, and R2 provides S3-compatible object storage. The free tier covers one domain with acceleration and baseline protection, custom WAF rules start on paid plans, and no nodes are located in mainland China, so mainland-facing traffic needs a separately filed domestic acceleration service.

Key Strengths

  • The free tier includes cache delivery, authoritative DNS, DDoS mitigation and basic WAF for one domain.
  • The edge footprint spans 330+ cities in 120+ countries, so static assets are cached near visitors.
  • Cache rules, page rules and Workers are orchestrated in one console without touching origin code.
  • DNS and caching share the Anycast network, so records and hostnames are traced on a single path.
  • A REST API and Terraform provider keep DNS and cache rules for many domains in version control.

Limitations

  • No nodes sit inside mainland China, so mainland acceleration needs a separately filed CDN.
  • Plans are billed per domain, and multi-site estates stack the entry cost by domain count.
  • Custom WAF rules, Argo Smart Routing and fine-grained cache control start on the Pro plan.
  • Enterprise runs on annual contracts with negotiated terms and no fixed list price.
  • Workers, R2 and D1 free allowances are metered by requests or storage and bill separately.

Product Ecosystem

Edge Caching and DNS

Cache entries are stored at edge nodes by URL and cache key, and a hit stops the request before the origin. Page rules and cache rules differ in execution priority, so a rule that appears not to apply is usually carrying language or cookie dimensions in its cache key. DNS runs on the same Anycast network, which means origin resolution and delivery converge on one path once a CNAME is added; the routing model is described in the DNS smart routing guide.

Security and Access Control

WAF managed rule sets cover common web attacks, Bot Management separates search crawlers from automated traffic by behavioural fingerprint, API Shield validates endpoint paths and parameters, and Zero Trust replaces VPN access with identity and device posture. Rule matches can be filtered by rule, region and path, which keeps security triage in the same console as cache debugging; rule layout is covered in the WAF threat intel rule guide.

Workers and Storage Primitives

Workers is built on the Service Worker API, runs JavaScript and WASM, and bills per request; KV, Durable Objects, Queues and Cron Triggers cover state, messaging and scheduling. R2 is S3-compatible and charges no egress fee, D1 is a managed SQLite database with read replicas, and all three bind directly to Workers. Smart Placement schedules functions according to data location to limit the round trip of remote reads, as outlined in the Smart Placement note.

Images, Stream and AI Gateway

Images resizes and converts formats from URL parameters, Stream handles video transcoding and playback, and AI Gateway proxies model calls with response caching, rate limiting and a spend cap. This layer moves keys, retries and budgets out of application code while keeping the request shape stable across model vendors; common parameter combinations appear in the image optimization and CDN guide.

Use Cases

  • Fits | Overseas and cross-border sites: the free tier covers caching and protection, so per-domain cost is predictable.
  • Fits | Security in front of the origin: DDoS mitigation, WAF, Bot Management and Zero Trust share one path and log.
  • Fits | Light edge logic: Workers handles auth, A/B splits and API aggregation while assets stay cached.
  • Fits | Static and image hosting: R2 is S3-compatible with no egress fee and sits on the same network.
  • Assess | Mainland China audiences: no domestic nodes, so mainland traffic leaves the region and quality needs its own check.
  • Assess | Managed PaaS dependence: no cloud servers or managed database instances, so compute is procured elsewhere.

Pricing & Billing Selection

Plans are subscriptions per domain, while usage items concentrate on Workers, R2 and D1; multi-site estates should size domain count and request volume separately.

Billing model / tier Indicative unit price Core configuration and billing rules Workload profile
Free approx. $0 / month / domain Cache delivery, authoritative DNS, DDoS mitigation, basic WAF; Workers at 100k requests per day Personal sites and single-domain projects
Pro approx. $20 / month / domain Custom WAF rules, image optimization, larger page rule and cache rule quotas Small and mid-size content sites
Business approx. $200 / month / domain Higher rule quotas, PCI DSS support and a priority support channel E-commerce and regulated workloads
Enterprise Annual contract, approx. $2,000 / month and up Custom rule sets, SLA, dedicated support and log push Large multi-domain estates
Workers Paid approx. $5 / month including 10M requests, then approx. $0.30 / million Billed per request with a separate CPU-time quota Edge APIs and auth services
R2 storage approx. $0.015 / GB / month, Class A approx. $4.50 / million No egress charge; Class B approx. $0.36 / million Image and static asset hosting

Basis: the figures above are 2026-11 list-price magnitudes in USD using the units published on the official pricing page; plans bill per domain, usage items settle separately, and the final invoice follows domain count and request volume.

FAQ

  • Does Cloudflare require an ICP filing? No. Filing applies to servers and acceleration nodes located in mainland China, and Cloudflare has no nodes there, so pointing a domain at it does not trigger a domestic ICP filing. If the site also serves mainland users, a separately filed domestic acceleration service is added and usually split by hostname.
  • What separates the free and Pro tiers? Rule quotas and security features. The free tier covers caching, DNS, DDoS mitigation and basic WAF with 100k Workers requests per day, while Pro bills at about $20 per month per domain and opens custom WAF rules, image optimization and larger rule quotas. Whether fine-grained security policy is needed is the practical dividing line.
  • Can configuration be managed through API or Terraform? Yes. The REST API covers zones, DNS records, cache rules and Workers deployments, and official tooling includes a Terraform provider and the Wrangler CLI. Multi-environment setups usually issue one API token per environment and scope it to a single zone, with cache purges triggered through the API.
  • How does configuration differ from AWS CloudFront? The differences are in the configuration model and billing unit. Cloudflare bills a plan per domain plus usage items and keeps cache, DNS and security rules in one console, while CloudFront bills by traffic per region and shares the IAM, S3 and Lambda@Edge permission model. Cache keys and origin policies must be redefined during migration, as compared in the Cloudflare and CloudFront comparison.
  • Can Cloudflare replace a cloud server? No. It is an entry-layer platform for caching, protection and edge function execution, not a host for databases or long-running application processes. Compute still runs on cloud servers or bare metal, capacity is planned against CPU, memory and disk, and request-volume metrics from the edge do not translate into instance sizing.

Integration & Code Examples

The commands below run from a local shell; issue the token per zone with DNS edit and cache purge scope only.

export CF_API_TOKEN="your-api-token"
export CF_ZONE_ID="your-zone-id"

# 1) Create an A record; proxied=true routes traffic through the edge
curl -sS -X POST "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/dns_records" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"A","name":"www","content":"203.0.113.10","ttl":1,"proxied":true}'

# 2) Cache /static/ at the edge for seven days
curl -sS -X PUT "https://api.cloudflare.com/client/v4/zones/$CF_ZONE_ID/rulesets/phases/http_request_cache_settings/entrypoint" \
  -H "Authorization: Bearer $CF_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"rules":[{"expression":"starts_with(http.request.uri.path, \"/static/\")","action":"set_cache_settings","action_parameters":{"cache":true,"edge_ttl":{"mode":"override_origin","default":604800}}}]}'

A TTL of 1 on the record lets the edge choose, and the second call caches a path only when its expression evaluates to true.

The same setup can live in Terraform so environments stay identical:

terraform {
  required_providers {
    cloudflare = {
      source  = "cloudflare/cloudflare"
      version = "~> 4.0"
    }
  }
}

variable "cloudflare_api_token" {
  type      = string
  sensitive = true
}

provider "cloudflare" {
  api_token = var.cloudflare_api_token
}

resource "cloudflare_zone" "site" {
  zone = "example.com"
}

resource "cloudflare_record" "www" {
  zone_id = cloudflare_zone.site.id
  name    = "www"
  content = "203.0.113.10"
  type    = "A"
  proxied = true
}

Only proxied records pass through edge caching and protection; unproxied records resolve as plain DNS. Cache rules are added with the cloudflare_ruleset resource after the zone exists.

Community & Resources

Communities and official channels

Learning resources and tools

Visit Cloudflare Website → https://www.cloudflare.com/cdn
Visit Website ↗