Firewall for AI

cloudflareWeb application firewallcloudflare-firewall-for-ai

WAF detection for LLM endpoints that flags PII, prompt injection and unsafe topics in prompts.

Provider
cloudflare
Category
Security
Properties · 4 set by this component
propertytypevaluesrequiredkind defaultthis component
botProtectionboolean—no—▸ false
customRuleCountinteger—no—inherited
endpointLabel · component propertystring—nocf-llminherited
managedboolean—nofalse▸ true
managedRuleSetstring—no—inherited
modeenumdetection | prevention | offno—▸ detection
piiDetection · component propertyboolean—notrueinherited
promptInjectionDetection · component propertyboolean—notrueinherited
rateLimitingboolean—no—▸ false
unsafeTopicDetection · component propertyboolean—notrueinherited
Rules that apply · 0

Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.

No rule reads this kind yet. That is a gap, not a guarantee.
Use it in a design
nodes:
  - { id: "firewall-for-ai", component: "cloudflare-firewall-for-ai" }
Other Web application firewall products · 13
Source
# yaml-language-server: $schema=../../schema/component.schema.json
# Firewall for AI (AI Security for Apps): WAF detection that scans prompts on endpoints
# labelled cf-llm for PII, prompt injection and unsafe topics. It only populates detection
# fields; blocking needs a custom or rate limiting rule ("Firewall for AI"), so it ships
# in detection mode.
schemaVersion: "1"
type: "component"
id: "cloudflare-firewall-for-ai"
kind: "waf"
provider: "cloudflare"
docs: "https://developers.cloudflare.com/waf/detections/firewall-for-ai/"
defaults:
  managed: true
  mode: "detection"
  rateLimiting: false
  botProtection: false
properties:
  promptInjectionDetection:
    type: "boolean"
    default: true
  piiDetection:
    type: "boolean"
    default: true
  unsafeTopicDetection:
    type: "boolean"
    default: true
  endpointLabel:
    type: "string"
    default: "cf-llm"

The same page as markdown, for an agent: /catalogue/components/cloudflare-firewall-for-ai.md