← Back
Application Security

Connect, protect, perform — without compromise.

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
explore the layers
DDoS Protection

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.

Volumetric flood · absorbed at the edge illustrative · the wall doesn't move
attack volume hitting edge 31.4 Tbps
reaching your origin 0 bps
No attack traffic tax Blocked DDoS traffic doesn't create mitigation overage charges — unmetered DDoS protection is included at every plan tier.
All plans · unmetered protection

Without Advanced DDoS Protection: 1 override, and you can't customize the rule expression.

Enterprise add-onAdvanced DDoS Protection

Adaptive DDoS flags deviations from a 7-day traffic profile. Up to 10 scoped overrides with custom expressions.

Your origin errors and client locations · user-agents vs Cloudflare network.
DDoS coverage

What's covered — and when you need Magic Transit

Default All plans

Unmetered. HTTP DDoS and Network-layer DDoS managed rulesets protect zones onboarded to Cloudflare.

Spectrum Paid plans

Protect specific TCP/UDP applications without announcing a whole prefix.

Enterprise add-on
Custom TCP/UDP apps.

Spectrum docs ↗

Magic Transit Enterprise

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.

Magic Transit docs ↗
Origin Protection — keep attackers from going around CloudflareIf your origin IP leaks, attackers skip the edge.
Close the route around the wall illustrative

Exposed origin

An exposed origin lets attackers bypass the edge A red attack arrow travels from the attacker, around the top of the Cloudflare edge wall, directly into the origin. The origin IP is known, so the edge is bypassed. CLOUDFLARE EDGE ! attacker 🖥️ origin hit direct attack · around the edge

origin IP known → edge bypassed

Dark origin

A dark origin connects outbound through Cloudflare Tunnel The attacker's red direct arrow ends at a cross before the origin: no open inbound ports. A green outbound-only Tunnel connection runs from the origin on the right to the Cloudflare edge on the left, with its arrowhead at the edge. CLOUDFLARE EDGE ! attacker 🖥️ origin direct attack · no way in TUNNEL outbound-only

no open inbound ports

  • Cloudflare TunnelAll plansVery secure

    Outbound-only, no open inbound ports.

    Docs ↗
  • Authenticated Origin Pulls (mTLS)All plansVery secure

    Requires Full / Full (strict); not used with Tunnel.

    Docs ↗
  • Allowlist Cloudflare IPsAll plansModerately secure

    Vulnerable to IP spoofing.

    Docs ↗
  • Dedicated CDN egress IPsEnterpriseVery secure

    Smart Shield Advanced.

    Docs ↗

Rotate origin IPs after onboarding · audit DNS-only records (SPF, TXT…) · don't host mail on the same server.

Record-scale absorbed
31.4 Tbps largest attack on record, mitigated automatically — detection and mitigation in seconds, without impacting legitimate traffic
Predictable billing
DDoS mitigation is unmetered — malicious traffic absorbed at the edge doesn't create overage charges. Pay for clean traffic, not the flood.
Full-stack defense
Network (L3), transport (L4), and application (L7) layer protection — comprehensive coverage at every attack vector
Security Rules

Defense in depth — managed by Cloudflare, customized by you.

Layered defense · request → managed → custom → rate-limit → origin → data-scan
Actions per rule: block managed challenge log skip (custom rules)
Managed Rules · Signature-based

We write them. We update them. You stay protected.

Deterministic patterns — regex, string & structural matches — authored by Cloudflare and OWASP.

New CVE signatures ship as managed-rule updates — you're protected without patching your app.

⚡ Zero-day CVEs (e.g. Log4Shell) Protection arrives as a rule update · no patch window on your side
Latest CVE rules
Custom Rules · Your policy + ML signals

Your rules. ML signals included.

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.

Rate Limiting Rules

Count what matters. Stop abuse at the edge.

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 10m Slows 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 responses Avg cost of a data breach: $4.88M (IBM 2024)
Sensitive Data Detection docs ↗
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.

From encoded request to WAF Attack Score to your custom rule Requests travel left to right through the Cloudflare edge. Attack score reads the whole request: URL, headers, and body. It automatically detects and decodes URL encoding, Base64, and JavaScript Unicode escape sequences anywhere in the request. An ML model scores SQL injection, cross-site scripting, and remote code execution using cf.waf.score.sqli, cf.waf.score.xss, and cf.waf.score.rce. The global cf.waf.score is mathematically derived from the individual scores, reflecting their interdependence; it is not their sum. Scores range from 1 to 99: 1–20 attack, 21–50 likely attack, 51–80 likely clean, 81–99 clean. Four illustrative examples: GET /products?id=42 scores 94 and continues to origin; URL-encoded SQL injection decodes to apostrophe OR 1=1, scores 3, and is blocked; a script in a request body scores 12 and is blocked; a base64-obfuscated JNDI payload scores 28 and receives a managed challenge. The sample policy blocks scores below 20 first, then challenges remaining scores below 50; you can choose log instead. Managed Rules match known signatures, while attack score helps detect variants that evade exact matches. These are sample scores, not live detection or a guarantee that every variant is caught. Choose a request below to loop it, or enable Auto to cycle. Reduced motion shows the selected request as a static end-state. Without JavaScript, the SQL injection end-state is shown.
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?
  1. Security Events

    All plans

    Expand any event: Ray ID, the rule that matched, path, and request details. Sampled on Free.

    Security Events docs ↗
  2. Security Analytics

    All plans

    Filter by IP or path, see attack scores and patterns; sampled. 31 days (90 on Enterprise). Create a custom rule from your current filters.

    Security Analytics docs ↗
  3. Trace (beta)

    All plans

    Simulate a request and see which rules match — test an exception before you enable it. Admin or Super Admin role.

    Trace docs ↗
  4. Instant Logs

    Business & Enterprise

    Live stream of request logs — one session per zone, up to 60 min.

    Instant Logs docs ↗
  5. Logpush

    All plansmore fields on Enterprise

    Ship HTTP request logs to your SIEM or storage: security action, rule ID, WAF attack score, and custom request headers.

    Logpush docs ↗
  6. Log Explorer

    Contract add-on

    Query historical logs in the dashboard.

    Log Explorer docs ↗
  7. Payload logging

    Enterprise

    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.

    Payload logging docs ↗
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
Bot Management & AI Crawl Control

Automation isn't one bucket anymore.

Shared bot-detection technology. The difference is how precisely you can act on each request.

The Bot Score Enterprise add-on illustrative · every request lands somewhere on 1–99
Bot Score

Every request scored 1–99.

ML + heuristics + behavioral signals Score available as cf.bot_management.score — route into WAF rules, rate limits, or transform rules
Threshold rules, not binary blocks Block=1, challenge 2–29, trust ≥30. Tunable per route, no redeploy
Recommended rule shape cf.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.

Precursor + JS Signals

Catch what static signals miss.

Precursor: session-based detection Flags early-session abuse patterns before bots reach sensitive endpoints
JS detections + browser fingerprinting Catches headless browsers and proxy farms that pass every static check
Precursor trace tool
BotBase + Verified Bots

Allow the good ones. Block the fakes.

Verified bots + AI agent directory Verified by behavior and detection IDs — not just User-Agent headers
Impersonator detection Reverse DNS classification catches bots claiming to be Googlebot or GPTBot
AI Crawl Control

Classify AI crawlers by intent. Act on each.

Search · Agent · Training Dedicated dashboard — allow, block, or manage each intent category independently
Five focused dashboard areas Overview · Metrics · Security · Optimization · Signals
Bot Fight Mode vs Super Bot Fight Mode vs EnterpriseFree · Pro & Business · Enterprise add-on — what each tier lets you control.

Same detection engine. Three levels of control.

Shared bot-detection technology. More say in what happens to each request.

Free

Bot Fight Mode

Fixed protection

Control 1/3
Detects
Simple cloud-hosted bots + headless browsers
Actions
Fixed computational challengeNot configurable.
Scope / exceptions
Domain-wide. No WAF Skip / Page Rules bypass.
Bot score & fields
No bot score in rules.
Analytics
Security Events only.No bot analytics dashboard.

May challenge API & mobile app traffic.

Pro & Business

Super Bot Fight Mode

Category controls

Control 2/3
Detects
Simple bots + headless browsers
Actions
Allow / block / challengeLikely automated: Business and up — not Pro.
Scope / exceptions
Domain-wide: one action per bot group. WAF Skip can switch it off for a path — never stricter on one path.
Bot score & fields
No bot score in rules.
Analytics
Pro: limited Bot Report.
Business: Bot Analytics.
Settings
Static resource protection · JavaScript detections · Optimize for WordPressPro & Business

Enterprise without add-on → this columnAlso Enterprise without the Bot Management add-on.

Enterprise add-on

Bot Management for Enterprise

Custom rules & thresholds

Control 3/3
Detects
Simple + sophisticated bots, headless & domain anomalies
Actions
Block + various challenges.Set your own score thresholds.
Scope / exceptions
Score every request; scope by path or IP.
Bot score & fields
cf.bot_management.score1–99 · JA3/JA4 · detection IDs
Analytics
Bot Analytics in Security Analytics.

↑ The score above = Enterprise Bot Management

Using Cloudflare Tunnel with SBFM? Keep Definitely automated on Allow, or tunnel connections may fail (websocket: bad handshake).
The Enterprise add-on replaces Bot Fight Mode and Super Bot Fight Mode. Compare plans ↗
Score abuse
ML + heuristics + behavioral signals on every request — before it reaches your origin
Classify intent
AI crawlers sorted by purpose — search, agent, or training — with policy signal context
Act on value
Allow, challenge, or block by category, score threshold, or business value. No code changes.
API Shield

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.

Open dashboard ↗ demo zone: cf-tme.com
All plansInventory + baseline controls
  • Endpoint Management — Free 100 · Pro 250 · Business 500 saved endpoints
  • Schema validation — Block only on Free/Pro/Business
  • Mutual TLS with a Cloudflare-managed CA
  • User-defined endpoint labels (all customers)
Enterprise without API Shield: 3,000 saved endpoints.
Enterprise add-onAPI Shield
  • API Discovery (shadow APIs) · Schema Learning · JWT validation
  • Per-session rate limit recommendations (Volumetric Abuse Detection)
  • Sequence Analytics · Sequence mitigation Closed beta
  • Authentication Posture · BOLA detection · risk labels · managed labels
  • GraphQL malicious query protection
  • Vulnerability Scanner Open beta · API-driven
10,000 saved endpoints · Log or Block actions

Enterprise customers who haven't purchased API Shield can preview it as a non-contract service.

Discover · Validate · Authenticate · Enforce · Scan

illustrative · request in, response out

Scroll diagram → follow the request in and the response back out.

API controls: request to origin, response back to the client Illustrative controls, not a fixed product execution order. Requests travel left to right: client, Discovery asking whether the route is known, Schema checking the payload, Auth checking JWT or mTLS, Session checking rate and sequence, then origin. Six selectable examples: GET /internal/debug is blocked by a fallthrough WAF rule because the endpoint is not in inventory. POST /users with malformed JSON or an extra role: admin field is blocked at Schema when it violates the uploaded OpenAPI spec and a WAF enforcement rule is configured. GET /accounts with an expired or tampered JWT is blocked at Auth. POST /transferFunds without a prior GET /balance is blocked by a session sequence rule. A clean GET /orders/123 passes to origin. In the final example, origin returns a response containing a card number: Data Scan detects it on the response, which travels back left toward the client. Detection is logged, not blocked; the response has already been sent. Sensitive Data Detection is an Enterprise Security Rules feature, not part of the API Shield add-on. Select an example to loop it, or use Auto to cycle. Left and Right arrow keys move between examples; Home and End select the first and last. Reduced motion shows a static end-state with Auto disabled. Without JavaScript, the schema-blocked end-state is shown.
Choose an example to loop it · ← / → to move · Auto to cycle.Illustrative controls, not a fixed execution order.
API Discovery Enterprise add-on

Find what you didn't know you had.

🔍 Shadow APIs auto-catalogued Maps to OWASP API9:2023 — Improper Inventory Management
🔓 Flag publicly-exposed internal APIs Admin panels, debug endpoints, internal tools — discovered before they're exploited
🚧 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 schema Stops Broken Object Property Authorization (OWASP API #3) — the spec you already have becomes an edge-enforced firewall
🧠 No spec? Learn one. Enterprise add-on Schema 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.

Schema Learning docs ↗
Authentication

Prove who's calling.

🔑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.

GraphQL protection docs ↗
API posture Enterprise add-on

Find the weak spots before attackers do.

🏷️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.
Sensitive Data Detection Enterprise

Response scanning for PII, card numbers, and secrets lives in Security Rules.

See the card ↑

OWASP API Top 10 · risk → controls

  • API1 · BOLABOLA detection · Sequence rules · Vulnerability Scanner
  • API2 · Broken AuthenticationJWT · mTLS · Authentication Posture
  • API3 · Object Property AuthorizationSchema validation
  • API4 · Resource ConsumptionRate limits · GraphQL protection
  • API6 · Sensitive Business FlowsSequence rules · Bot Management
  • API9 · Inventory ManagementDiscovery · Schema Learning
Edge-enforced
schema, auth, and rate checks run at the edge — zero changes to your app
Bring your spec
OpenAPI v3.0 specs you already have — or let Schema Learning build one from live traffic.
Compliance
Shadow-API inventory and sensitive-data visibility that support PCI, HIPAA and GDPR programmes.
Client-side securityformerly Page Shield

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.

Advanced add-onClient-Side Security Advanced

Malicious script & connection detection, code change alerts, advanced cookie fields, 5 content security rules (positive blocking), 4 Logpush jobs.

Formerly the Page Shield add-on — same features and entitlements.
What your server-side WAF can't see
illustrative · Advanced detection + enforcement

Scroll diagram → from the browser to detection and back.

A trusted script still loads, but its unlisted connection is blocked by the browser The attack happens in the browser — where a server-side WAF cannot see it. A visitor's checkout page loads app.js, analytics.js, chat-widget.js, and payment.js. An attacker modifies the third-party payment script, which sends card data directly from the browser to evil-cdn.example. As a reverse proxy, Cloudflare adds a CSP report-only header to sampled HTML responses; this monitoring header does not block resources. The browser sends CSP reports back to Cloudflare, building an inventory of scripts and outbound connections. The inventory mirrors the dashboard tabs with illustrative counts: Scripts 4, Connections 5, Cookies 3. Cookie monitoring requires Business or higher. Cookies are detected in HTTP traffic, not CSP reports: origin-set cookies via Set-Cookie are first-party, while client-set cookies have unknown type. Advanced cookie attributes include HttpOnly, Secure, SameSite, and lifetime. In this illustrative Advanced scenario, the inventory flags a new connection, changed code, and a low JS Integrity Score. Threat feeds check script domains and URLs; downloaded JavaScript is analyzed by an ML classifier. Configured alerts notify the team by email, webhook, or PagerDuty about scripts and connections, not cookie-specific events. The team configures a content security rule for /checkout. These rules use CSP directives: Scripts is script-src; Connections is connect-src. The compact example lists self and payment.js under Scripts, and self and api.payments.example under Connections. Other trusted script sources must also be listed if needed. The destination evil-cdn.example is not listed. These rules do not block cookies. Start in Log: violations are reported, but nothing is blocked. After reviewing violations, the team switches to Allow. Cloudflare sends the enforcing CSP with matching responses. On the next load, the browser allows listed sources and blocks anything not allowed, while still logging violations. The modified payment.js is still trusted and allowed to load; its attempted connection to evil-cdn.example is refused because that destination is not on the connections list. A changed script is not automatically blocked just because its code changed. Detection does not automatically create a blocking rule. Script monitoring is available on all plans. Business and higher add connections, cookies, page attribution, and new resource or domain alerts. Malicious script and connection detection, code change detection, and content security rules require Client-Side Security Advanced. With reduced motion or without JavaScript, this diagram shows Allow selected, payment.js allowed to load, and the unlisted connection blocked without animation.
01All plans

Inventory

Scripts (all plans) · Connections & Cookies (Business+).

Cookies detected in HTTP traffic. Advanced: HttpOnly, Secure, SameSite & lifetime.

02Business+

Detect

New resource & new domain alerts.

Advanced: malicious script / connection detection & code change alerts.

03Advanced

Enforce

Allow trusted resources. Block everything else.

Start in Log → review violations → switch to Allow.

Content security rules help mitigate code injection, XSS & malicious iframes.

Client-Side Security Advanced is the former Page Shield add-on.

PCI DSS v4.0 · 6.4.3 · 11.6.1

6.4.3 — inventory, authorize & integrity-check scripts on payment pages.

11.6.1 — detect & alert on unauthorized changes to security headers and payment-page content.

AI Application Services

Protect what AI takes. Protect what users send.

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.

Open AI Crawl Security ↗
OBSERVE

See demand and value

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 endpoint Enterprise 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.

IDENTIFY

Mark the prompt endpoint

Save the operation in Web Assets and apply the managed cf-llm label.

WHERE DO PROMPTS ENTER?
DETECT

Understand the risk

Detect Prompt injection, PII in prompts, Unsafe topics, and organization-specific Custom topics.

WHAT DID CLOUDFLARE SEE?
ENFORCE + TUNE

Observe before you block

Validate sampled traffic, then apply a narrow WAF rule or rate limit and tune it with analytics evidence.

WHAT SHOULD POLICY DO?

Four ways Cloudflare detects prompt risk

PROMPT → MANAGED DETECTORS → cf.llm FIELDS → WAF → APPLICATION MODEL

Injection scoringLower score · higher risk

METHODPattern risk

OUTPUT1–99 risk score

Fuzzy PIIEntities inside natural language

METHODEntity recognition

OUTPUTMatched PII categories

Unsafe taxonomyBuilt-in safety categories

METHODFixed S1–S14 taxonomy

OUTPUTMatched categories

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.

cf.llm.prompt.injection_scorecf.llm.prompt.pii_categoriescf.llm.prompt.unsafe_topic_categoriescf.llm.prompt.custom_topic_categories
Control · Scale · Operations

Where does Business stop for you?

Shared detection is the starting point. Check where you need more control, scale, or operational reach.

Select what applies today
Enterprise Account-level WAF rulesets Define policy once and apply it across zones, rather than maintaining each zone separately.
Enterprise add-ons Path-scoped Bot Management + API Shield Treat API paths differently with bot score and path/IP rules; add the API Shield suite for API-specific controls.
Enterprise add-ons Advanced Rate Limiting + Bot Management Count by session cookie or header instead of just IP. JA4 counting requires Bot Management; use bot score in your rules.
Advanced add-on Client-side content security rules Client-Side Security Advanced: content security rules plus malicious/code-change detection. Discuss this add-on separately from the plan.
Enterprise 90-day Security Analytics Business retains 31 days. Enterprise extends the investigation window to 90 days.
Enterprise add-on AI Security for Apps Add LLM-specific detection context to the WAF policy protecting your AI endpoints.
Enterprise Enterprise rule limits 1,000 custom rules / 10 zone rulesets, plus account-level rulesets. Rate limiting: up to 100 rules, depending on contract.

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.