---
id: "cloudflare-waf"
type: "component"
kind: "waf"
provider: "cloudflare"
category: "security"
docs: "https://developers.cloudflare.com/waf/managed-rules/"
url: "https://localhost:3000/catalogue/components/cloudflare-waf"
---

# Cloudflare WAF

Web application firewall with Cloudflare managed rulesets, OWASP scoring and custom rules at the edge.

| | |
|---|---|
| Provider | [cloudflare](https://localhost:3000/catalogue?provider=cloudflare) |
| Kind | [Web application firewall](https://localhost:3000/catalogue/kinds/waf) |
| Category | Security |
| Official docs | [https://developers.cloudflare.com/waf/managed-rules/](https://developers.cloudflare.com/waf/managed-rules/) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `botProtection` | boolean | — | no | — | inherited |
| `customRuleCount` | integer | — | no | — | inherited |
| `exposedCredentialsCheck` | boolean | — | no | false | inherited |
| `managed` | boolean | — | no | false | **true** |
| `managedRuleSet` | string | — | no | — | **"cloudflare-free-managed-ruleset"** |
| `mode` | enum | `detection`, `prevention`, `off` | no | — | **"prevention"** |
| `owaspParanoiaLevel` | enum | `pl1`, `pl2`, `pl3`, `pl4` | no | "pl1" | inherited |
| `owaspScoreThreshold` | integer | — | no | 40 | inherited |
| `plan` | enum | `free`, `pro`, `business`, `enterprise` | no | "free" | inherited |
| `rateLimiting` | boolean | — | no | — | **true** |

Bold values are the ones this component pins.

## Rules that apply · 0

No rule selects this kind or its category.

## Other products of the same kind · 13

- [Web Application Firewall](https://localhost:3000/catalogue/components/alibaba-waf.md) `alibaba-waf` — alibabacloud
- [AWS WAF web ACL](https://localhost:3000/catalogue/components/aws-waf.md) `aws-waf` — aws
- [AWS WAF Classic](https://localhost:3000/catalogue/components/aws-waf-classic.md) `aws-waf-classic` — aws
- [Azure Web Application Firewall](https://localhost:3000/catalogue/components/azure-web-application-firewall.md) `azure-web-application-firewall` — azure
- [Firewall for AI](https://localhost:3000/catalogue/components/cloudflare-firewall-for-ai.md) `cloudflare-firewall-for-ai` — cloudflare
- [Coraza](https://localhost:3000/catalogue/components/coraza.md) `coraza` — default
- [Imperva Application Security](https://localhost:3000/catalogue/components/imperva.md) `imperva` — default
- [ModSecurity](https://localhost:3000/catalogue/components/modsecurity.md) `modsecurity` — default
- [NAXSI](https://localhost:3000/catalogue/components/naxsi.md) `naxsi` — default
- [Generic web application firewall](https://localhost:3000/catalogue/components/waf.md) `waf` — default
- [Google Cloud Armor](https://localhost:3000/catalogue/components/google-cloud-armor.md) `google-cloud-armor` — gcp
- [reCAPTCHA Enterprise](https://localhost:3000/catalogue/components/google-recaptcha-enterprise.md) `google-recaptcha-enterprise` — gcp
- [Web Application Firewall](https://localhost:3000/catalogue/components/oci-waf.md) `oci-waf` — oci

## Use it in a design

```yaml
nodes:
  - { id: "cloudflare-waf", component: "cloudflare-waf" }
```

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Cloudflare WAF: the Free Managed Ruleset is deployed automatically on every new zone, so the WAF
# filters (not just logs) out of the box ("Managed Rules", "Get started"); OWASP defaults to
# paranoia level PL1 and a score threshold of 40 ("OWASP Core Ruleset - Concepts").
schemaVersion: "1"
type: "component"
id: "cloudflare-waf"
kind: "waf"
provider: "cloudflare"
docs: "https://developers.cloudflare.com/waf/managed-rules/"
defaults:
  managed: true
  mode: "prevention"
  managedRuleSet: "cloudflare-free-managed-ruleset"
  rateLimiting: true
properties:
  plan:
    type: "enum"
    values: ["free", "pro", "business", "enterprise"]
    default: "free"
  owaspParanoiaLevel:
    type: "enum"
    values: ["pl1", "pl2", "pl3", "pl4"]
    default: "pl1"
  owaspScoreThreshold:
    type: "integer"
    default: 40
  exposedCredentialsCheck:
    type: "boolean"
    default: false
```

Human page: https://localhost:3000/catalogue/components/cloudflare-waf
