---
id: "cloudflare-ddos-protection"
type: "component"
kind: "ddos-protection"
provider: "cloudflare"
category: "security"
docs: "https://developers.cloudflare.com/ddos-protection/managed-rulesets/http/"
url: "https://localhost:3000/catalogue/components/cloudflare-ddos-protection"
---

# Cloudflare DDoS Protection

Always-on HTTP and network-layer DDoS managed rulesets applied automatically to every zone and prefix.

| | |
|---|---|
| Provider | [cloudflare](https://localhost:3000/catalogue?provider=cloudflare) |
| Kind | [DDoS protection plan](https://localhost:3000/catalogue/kinds/ddos-protection) |
| Category | Security |
| Official docs | [https://developers.cloudflare.com/ddos-protection/managed-rulesets/http/](https://developers.cloudflare.com/ddos-protection/managed-rulesets/http/) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `adaptiveThresholds` | boolean | — | no | — | inherited |
| `advancedDdosProtection` | boolean | — | no | false | inherited |
| `alwaysOn` | boolean | — | no | — | **true** |
| `managed` | boolean | — | no | false | **true** |
| `mitigationAction` | enum | `block`, `managed-challenge`, `force-connection-close`, `log` | no | — | inherited |
| `originErrorRateThreshold` | integer | — | no | 1000 | inherited |
| `protectedResourceCount` | integer | — | no | — | inherited |
| `scope` | enum | `network`, `application`, `both` | no | — | **"both"** |
| `sensitivity` | enum | `high`, `medium`, `low`, `essentially-off` | no | "high" | inherited |
| `telemetry` | 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 · 10

- [Anti-DDoS Origin](https://localhost:3000/catalogue/components/alibaba-anti-ddos-origin.md) `alibaba-anti-ddos-origin` — alibabacloud
- [Anti-DDoS Pro](https://localhost:3000/catalogue/components/alibaba-anti-ddos-pro.md) `alibaba-anti-ddos-pro` — alibabacloud
- [Game Shield](https://localhost:3000/catalogue/components/alibaba-game-shield.md) `alibaba-game-shield` — alibabacloud
- [AWS Shield](https://localhost:3000/catalogue/components/aws-shield.md) `aws-shield` — aws
- [Azure DDoS Protection](https://localhost:3000/catalogue/components/azure-ddos-protection.md) `azure-ddos-protection` — azure
- [Cloudflare Magic Transit](https://localhost:3000/catalogue/components/cloudflare-magic-transit.md) `cloudflare-magic-transit` — cloudflare
- [Generic DDoS protection plan](https://localhost:3000/catalogue/components/ddos-protection.md) `ddos-protection` — default
- [NETSCOUT Arbor DDoS](https://localhost:3000/catalogue/components/netscout-arbor.md) `netscout-arbor` — default
- [Radware DefensePro](https://localhost:3000/catalogue/components/radware-defensepro.md) `radware-defensepro` — default
- [DigitalOcean DDoS Protection](https://localhost:3000/catalogue/components/digitalocean-ddos-protection.md) `digitalocean-ddos-protection` — digitalocean

## Use it in a design

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

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Cloudflare DDoS Protection: the HTTP and network-layer managed rulesets are always enabled for
# every zone and prefix ("HTTP DDoS Attack Protection managed ruleset"); rule sensitivity defaults
# to high and the origin-error rule trips at 1,000 errors per second.
schemaVersion: "1"
type: "component"
id: "cloudflare-ddos-protection"
kind: "ddos-protection"
provider: "cloudflare"
docs: "https://developers.cloudflare.com/ddos-protection/managed-rulesets/http/"
defaults:
  managed: true
  scope: "both"
  alwaysOn: true
  telemetry: true
properties:
  sensitivity:
    type: "enum"
    values: ["high", "medium", "low", "essentially-off"]
    default: "high"
  mitigationAction:
    type: "enum"
    values: ["block", "managed-challenge", "force-connection-close", "log"]
  originErrorRateThreshold:
    type: "integer"
    default: 1000
  advancedDdosProtection:
    type: "boolean"
    default: false
```

Human page: https://localhost:3000/catalogue/components/cloudflare-ddos-protection
