One breach can cost billions. One outage can cost the quarter.
One bot army can drain your inventory before you've finished your coffee.
Cloudflare blocks the attacks before they reach your code — every layer,
every request, every day.
31.4 Tbps
largest DDoS attack on record (Q4 2025) — far beyond what traditional scrubbing can absorb before you can react
Hours vs. Weeks
attackers weaponize new CVEs within hours (Log4Shell) — your patching cycle takes weeks, leaving a critical exposure window
Shadow endpoints
undocumented APIs handling auth, payments, PII — attackers find them first, automate credential stuffing and exfiltration
When the flood comes, you're already behind the dam.
DDoS attacks don't ask permission. They show up in volume, at any
layer, at any hour. Cloudflare's network absorbs them automatically —
no rules to write, no pages to wake up to. Your origin keeps serving
real users while the attack hits a wall it can't break.
Cloudflare announces your IP prefixes via BGP and protects entire networks — traffic returns over GRE/IPsec tunnels or Network Interconnect. Advanced TCP and DNS Protection are available to Magic Transit customers.
Combine standard request fields — geo, path, headers — with ML-inferred signals like the WAF Attack Score.
Business: score class onlycf.waf.score.classattack / likely_attack / likely_clean / clean 100 custom rules · 5 zone rulesets
Enterprise Full score + SQLi/XSS/RCEcf.waf.score + .sqli / .xss / .rce 1,000 rules · 10 zone rulesets + account-level policy, defined once across zones.
Business: 5 rules · count by IPIP with NAT support. Count up to 10 min; mitigate up to 1 day.
Enterprise Up to 100 rules, by contractCounting period up to 65,535 s · throttle behaviour.
Enterprise add-on Advanced Rate LimitingCount by header, cookie, ASN, JSON field, or JA4 — not just IP.Complexity-score counting. JA3/JA4 requires Bot Management.
🚪5 logins/min per IP — block 10mSlows credential stuffing at the edge
Sensitive Data Detection Enterprise
Stop the leak before it lands.
Scans response bodies (text, HTML, JSON, XML up to 1 MB) for PII, financial data, and secrets leaving your origin — including responses from cache and Workers.
Detection runs off the response path — zero added latency. Action is always log (the response has already been sent), so you get full visibility into what slipped through your code.
💳Credit card numbers (PCI)Detect card numbers leaving your origin — logged for PCI review
🔑API keys / secrets in responsesAvg cost of a data breach: $4.88M (IBM 2024)
How the WAF Attack Score works EnterpriseFull numeric + SQLi/XSS/RCE scores. Business exposes score class only.
See the attack behind the encoding.
illustrative · 4 requests · sample policy
Scroll diagram → follow the request from edge to decision.
Managed Rules match known signatures. Attack score helps catch variants that bypass exact matches.The score informs. You choose the threshold and action.
Investigate a blockAn internal IP gets XSS blocks — how do you see exactly what triggered it?
Security Events
All plans
Expand any event: Ray ID, the rule that matched, path, and request details. Sampled on Free.
Logs the exact matched string plus surrounding text, encrypted with your public key — Cloudflare can't decrypt it. Captures only after it's enabled; Super Administrator role.
Scope exceptions to IP + path (or the specific rule) — never a blanket allow for an IP. A corporate NAT IP hides every employee: one compromised laptop or internal scanner would skip inspection.
WAF exceptions apply to managed rulesets only — use a custom rule with Skip for other features. WAF exceptions docs ↗
Event times look off? Match on the Ray ID instead — Cloudflare sends it to your origin as the Cf-Ray header, so you can find the same request in both places.
Zero engineering lift
Edge-enforced security with no code changes, SDK integration, or application server dependencies
No patch window
CVE protections arrive as managed-rule updates — no code changes or app redeploys.
Unified control plane
Managed, custom, and rate-limiting rules configured from a single dashboard — no vendor sprawl
The Bot Score Enterprise add-onillustrative · every request lands somewhere on 1–99
Bot Score
Every request scored 1–99.
ML + heuristics + behavioral signalsScore available as cf.bot_management.score — route into WAF rules, rate limits, or transform rules
Threshold rules, not binary blocksBlock=1, challenge 2–29, trust ≥30. Tunable per route, no redeploy
Recommended rule shapecf.bot_management.score lt 30 and not cf.bot_management.verified_bot and not cf.bot_management.static_resource and not cf.bot_management.corporate_proxy — excludes verified bots, static assets, and corporate proxies.
Also in Workers (request.cf.botManagement.score), Bot Analytics, and Logs.
Over half of dynamic traffic is API calls — and that's where the breach starts.
Cloudflare network, 2024 API report
APIs run checkout, login, payments, and mobile apps. Endpoint inventory
is the starting point. Validate payloads, prove who's calling, and stop session abuse.
Enterprise with API Shield adds discovery, learning, and API-specific controls.
🚧Block what isn't in your inventoryA fallthrough rule (WAF template "Mitigate API requests to unidentified endpoints") stops calls to unknown endpoints.
Schema Validation All plans
Reject what doesn't fit.
📐Block requests that don't match your OpenAPI schemaStops Broken Object Property Authorization (OWASP API #3) — the spec you already have becomes an edge-enforced firewall
🧠No spec? Learn one. Enterprise add-onSchema Learning builds an OpenAPI v3.0 schema from traffic; export it for your developers.
OpenAPI v3.0 (YAML/JSON); v3.0-compatible 3.1 also accepted.
Detection runs on every request but doesn't block by itself. Review matches in Security Analytics, then enforce with a WAF custom rule on cf.schema_validation.uploaded.violated.
🔑JWT validation Enterprise add-onExpired, tampered or badly-signed tokens are rejected at the edge. Verified claims (sub, tier) can drive rate limits and be forwarded to your origin with Request Header Transform Rules.
📜Mutual TLS All plansOnly clients holding your certificate get in. Built for mobile apps, IoT devices and B2B partners; also supports gRPC.
Rotate JWKS keys with your IdP — Cloudflare doesn't auto-refresh them (a Worker can sync).
Session controls Enterprise add-on
Stop abuse that looks legitimate.
📊Per-session rate limitsRecommendations learned per endpoint, keyed on the user's session, not their IP.
🔗Sequence rules Closed betae.g. block POST /transferFunds unless GET /balance came first (default lookback: 10 requests / 10 minutes).
🧩GraphQL query protectionCap query depth and size before they overload your origin.Applies to POST bodies up to 20 KiB.
Step one: configure a session identifier (Authorization header, cookie, or JWT claim). Rate-limit recommendations, sequences and posture all depend on it.
🏷️Risk labels, scanned dailycf-risk-missing-auth · cf-risk-mixed-auth · cf-risk-bola-enumeration · cf-risk-sensitive · cf-risk-zombie (no traffic in 32 days).+ error, latency and size anomalies, BOLA pollution. Each raises a Security Center Insight.
🎯BOLA detection + Vulnerability Scanner Open betaTests whether user B can read or delete user A's data using owner and attacker test credentials. OWASP API1:2023, the #1 API risk.Tip: use dedicated test credentials.
Your checkout is only as safe as the scripts it loads.
Analytics, ads, chat, payment forms: third-party code runs inside your visitor's browser. One compromised script can skim their data without ever touching your origin.
All plans → Business
All plans: script monitoring. Business+: connection & cookie monitoring, page attribution, new resource / new domain alerts.
Two traffic directions face different risks. Cloudflare gives each direction its own signals, policy, and outcome.
All plans · AI Crawl Control
All plans: crawler visibility, block by Search / Agent / Training, managed robots.txt with Content Signals, LLM endpoint discovery. Pro+: Redirects for AI Training.
Pay Per Crawl is in closed beta.
Enterprise add-onAI Security for Apps
Prompt injection scoring, PII, unsafe and custom topic detection as WAF fields, plus the Log Mode ruleset to observe before you enforce.
01 · Govern content access
Know which AI crawler arrived—and what job it came to do.
AI Crawl Control turns a generic bot request into a deliberate content decision.
Compare crawlers, operators, paths, bytes transferred, and referral traffic.
WHO IS TAKING?
DECIDE
Separate Search, Agent, and Training
In Security Settings, allow useful discovery while treating agent actions and model training as different jobs.
WHAT IS THE PURPOSE?
ACT
Choose the right outcome
Allow, block, use Redirects for AI Training, deploy AI Labyrinth, or offer Pay Per Crawl and x402 access.
ALLOW · BLOCK · DIRECT · CHARGE
SUPPORTING SIGNALS
Content Signals publish intent; Web Bot Auth verifies legitimate bots; agent-readiness insights and the Analytics API provide evidence. Pay Per Crawl remains a private-beta capability.
02 · Protect the AI endpointEnterprise add-on
Turn prompt risk into application security policy.
AI Security for Apps supplies LLM-specific context. Your WAF custom rules and Rate limiting decide what happens next.
Zero-shot topicsSemantic match · No custom training
METHODIntent comparison
OUTPUTScore per custom topic
Cloudflare runs managed scoring, entity recognition, and topic classification. WAF acts on those fields before an allowed request reaches your application model.
Shared detection is the starting point. Check where you need more control, scale, or operational reach.
All capability mappings are shown. With JavaScript, select a situation to reveal its mapping and update the live tally.
Some matches require separate add-ons; they are not all included with Enterprise. This is a conversation starter, not a compliance assessment or an automatic upgrade recommendation.