148 articles
Knowledge Base
Cloudflare
148 articles in the Cloudflare category · page 6 of 7.
- Cloudflare DNS record cookbook: A, AAAA, CNAME, MX, TXT, SRV, CAA Each DNS record type at Cloudflare — what it does, when to use it, proxied vs DNS-only behaviour, the apex CNAME flattening pitfall, the SPF/DKIM/DMARC trio for mail, and CAA to lock down certificate issuance.
- Cloudflare SSL/TLS modes: Flexible vs Full vs Full (Strict) Flexible looks fine in a browser and quietly serves your site over plain HTTP behind the scenes. Full encrypts the origin hop but trusts any cert. Full (Strict) is the only mode that actually verifies the chain. Pick the right one and migrate without breaking the site.
- Cloudflare WAF custom rules: block, challenge, log, skip How to write Cloudflare WAF custom rules with the right expression and the right action — Block, Managed Challenge, JS Challenge, Log, or Skip — and roll them out without taking traffic down.
- Cloudflare Workers: your first script and route patterns Install Wrangler, write a fetch handler, deploy a Worker, and bind it to a real hostname with Routes or a Custom Domain — with env bindings and secrets handled the way they should be.
- Zero Trust device posture and service tokens Feed device posture signals (WARP, MDM, OS version, disk encryption, firewall) into Access policies for human traffic, and rotate service tokens cleanly for CI/CD and server-to-server calls.
- Magic Transit overview: L3 BGP-routed DDoS protection for your IP space Magic Transit advertises your /24 or /48 from Cloudflare's anycast network, scrubs traffic, and tunnels clean packets back to your origin over GRE or direct CNI. When this fits and when a reverse proxy is enough.
- Pages Functions: add server-side routes to a Pages project Use the functions/ directory to turn a static Pages site into one with dynamic API routes. File-based routing, bindings to KV/R2/D1, mixing static and dynamic, and tailing live logs with wrangler.
- Cloudflare Spectrum: proxy non-HTTP TCP and UDP services Spectrum proxies arbitrary TCP and UDP services behind Cloudflare's anycast edge — SSH, RDP, game servers, custom protocols — hiding the origin IP and adding DDoS protection without lifting your whole network.
- Serving R2 objects through Workers with signed URLs A public custom domain on an R2 bucket gives you a CDN. A Worker in front of R2 gives you auth, time-limited access, request rewriting, cache header control, and streaming — all the things you actually need when objects are not meant for the open web. The pattern is short; the trade-offs are not.
- Cloudflare Access: SSO-gate internal applications Define Access applications, wire an identity provider, write a policy with group and email checks, validate the CF_Authorization JWT at the origin, and bypass for service-to-service traffic.
- Cloudflare DDoS protection: what is automatic, what to tune L3/L4 protection is always-on with no configuration; L7 and network-layer Managed Rulesets accept sensitivity tuning and overrides for false positives. Where to draw the line.
- Cloudflare Cache Rules: what is cacheable, how TTLs work Cloudflare caches a fixed list of static file extensions by default and ignores HTML. Cache Rules let you override that and customise the cache key. The choices around TTL, origin Cache-Control authority, and query-string handling decide your origin offload.
- Cloudflare Pages: deploy a static site straight from Git Connect a GitHub or GitLab repo to Cloudflare Pages, get framework auto-detect, per-PR preview deployments, custom domains, and a CLI for the cases where Git is not the trigger.
- Cloudflare Redirect Rules: bulk lists vs dynamic expression-driven When to use Single (dynamic, expression-based) Redirect Rules vs Bulk Redirects (lists with priority). Status codes, query/path preservation, common loops, and how to migrate from a .htaccess.
- Tiered Cache and Cache Reserve: origin offload patterns Tiered Cache funnels POP misses through a smaller set of upper-tier data centres so the origin sees fewer requests for the same object. Cache Reserve adds a persistent R2-backed layer for assets that age out too fast. Both reduce origin load — when sized to the catalog.
- Enable DNSSEC on Cloudflare without breaking resolution Why DNSSEC matters, how Cloudflare manages the keys, the registrar DS-record step, common breakage modes when migrating between providers, and how to roll back if validation goes wrong.
- Migrating from AWS S3 to Cloudflare R2 R2 speaks an S3-compatible API surface and bills no egress, which makes it a serious target for buckets that bleed transfer to a CDN today. The migration itself is rclone or aws-cli with a different endpoint URL — the hard part is sequencing the cutover so you neither serve stale objects nor double-pay during the transition.
- Workers KV vs D1 vs R2: pick the right storage A decision matrix for Cloudflare's three primary edge data stores — KV for read-heavy global config, D1 for transactional SQLite, R2 for blobs with no egress fees — with workload examples and binding setup.
- Cloudflare: set up a zone and delegate authoritative NS Add a domain to Cloudflare, get the assigned nameserver pair, switch delegation at the registrar, verify propagation, and keep the previous DNS warm so a rollback stays cheap.
- Cloudflare Tunnel: expose a private origin without opening inbound ports Run cloudflared on a private origin, create a tunnel, route DNS, define ingress rules, and operate it as a systemd service — no public IP, no firewall holes.
- Cloudflare cache purge: URL, tag, hostname, prefix, or everything A purge-everything button is the wrong reflex. Cloudflare offers five purge surfaces — URL, prefix, hostname, tag, and everything — each with different blast radius and cold-start cost. Pick the smallest one that does the job and pre-warm afterward.
- Cloudflare Workers cron triggers and Queues for background work Scheduled Workers via cron triggers, the scheduled event handler, and Queues for producer/consumer background work — with idempotency, retries, dead-letter routing, and wrangler tail observability.
- Migrating from Page Rules to modern Cloudflare rules Page Rules are deprecated. Map each common pattern to the four replacements (Cache Rules, Configuration Rules, Origin Rules, Redirect Rules), then run the conversion in a safe order without losing traffic.
- Cloudflare Email Routing: forward addresses on your domain to your inbox Map alias@yourdomain.com to your real Gmail/Workspace/Outlook inbox using Cloudflare Email Routing. The DNS records, the catch-all rule, the free tier, and why this is receive-only.