- Free plan includes CDN, DDoS protection, basic WAF
- Global edge network (300+ cities)
- SSL termination at edge
- Bot protection
- Create a Cloudflare account
- Add your domain
- Cloudflare scans your existing DNS records
Update your domain registrar's nameservers to Cloudflare's (e.g., kareem.ns.cloudflare.com, tina.ns.cloudflare.com).
Wait for activation (usually 5-30 minutes).
Add these records:
| Type | Name | Content | Proxy |
|---|---|---|---|
| A | @ | YOUR_SERVER_IP | Proxied (orange cloud) |
| A | www | YOUR_SERVER_IP | Proxied |
Go to SSL/TLS:
- Encryption mode: Full (Strict)
- Always Use HTTPS: ON
- Minimum TLS Version: 1.2
- Automatic HTTPS Rewrites: ON
Rule 1: Cache HTML pages
- Match: Hostname =
yourdomain.comAND NOT URI Path contains/wp-admin - Cache eligibility: Eligible for cache
- Edge TTL: 2 hours
- Browser TTL: 60 seconds
Rule 2: Long cache for static assets
- Match: URI Path matches
*.(jpg|jpeg|png|gif|webp|css|js|woff2|svg|ico) - Edge TTL: 1 month
- Browser TTL: 1 year
After updating content:
- Cloudflare Dashboard → Caching → Configuration → Purge Everything
- Or purge specific URLs via API:
curl -X POST "https://api.cloudflare.com/client/v4/zones/ZONE_ID/purge_cache" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
--data '{"files":["https://yourdomain.com/updated-page/"]}'- Auto Minify: JS, CSS, HTML → ON
- Brotli: ON
- Early Hints: ON
- HTTP/2: ON (automatic)
- HTTP/3 (QUIC): ON
- Security Level: Medium
- Bot Fight Mode: ON (for regular bots)
- Browser Integrity Check: ON
- Hotlink Protection: ON (prevents others from embedding your images)
Critical for GEO (Generative Engine Optimization): Cloudflare's "AI Scrapers and Crawlers" feature blocks AI search engine bots by default. If you want your site to appear in AI-generated answers (Google AI Overviews, Perplexity, ChatGPT Search, Claude Web, Bing Copilot), you must allow these bots:
- Cloudflare Dashboard → Security → Bots
- Turn OFF "AI Scrapers and Crawlers" blocking
- Or create custom WAF rules to selectively allow:
| Bot | User-Agent | Source |
|---|---|---|
| GPTBot | GPTBot |
OpenAI (ChatGPT Search) |
| ChatGPT-User | ChatGPT-User |
OpenAI browse mode |
| Google-Extended | Google-Extended |
Google AI Overviews |
| PerplexityBot | PerplexityBot |
Perplexity AI |
| ClaudeBot | ClaudeBot |
Anthropic (Claude Web) |
| anthropic-ai | anthropic-ai |
Anthropic training |
| Bytespider | Bytespider |
ByteDance AI |
| cohere-ai | cohere-ai |
Cohere AI |
| CCBot | CCBot |
Common Crawl |
Why this matters: If AI bots can't crawl your site, your content will never appear in AI-generated answers — which is increasingly where B2B buyers start their research.
See 07-seo-optimization.md for the full GEO setup guide.
- Polish (Pro plan): Auto-optimize images at edge
- APO ($5/month): Full-page caching for WordPress — huge speed boost if budget allows
# Check Cloudflare is active
curl -I https://yourdomain.com
# Look for: cf-cache-status: HIT, server: cloudflare