---
id: "cloudflare-bot-management"
type: "component"
kind: "bot-management"
provider: "cloudflare"
category: "security"
docs: "https://developers.cloudflare.com/bots/concepts/bot-score/"
url: "https://localhost:3000/catalogue/components/cloudflare-bot-management"
---

# Cloudflare Bot Management

Scores every request from 1 to 99 to separate humans, verified bots and automated traffic.

| | |
|---|---|
| Provider | [cloudflare](https://localhost:3000/catalogue?provider=cloudflare) |
| Kind | [Bot management](https://localhost:3000/catalogue/kinds/bot-management) |
| Category | Security |
| Official docs | [https://developers.cloudflare.com/bots/concepts/bot-score/](https://developers.cloudflare.com/bots/concepts/bot-score/) |

## Properties

| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| `challengeAction` | enum | `block`, `managed-challenge`, `js-challenge`, `captcha`, `log` | no | — | inherited |
| `jsDetections` | boolean | — | no | — | inherited |
| `machineLearning` | boolean | — | no | — | **true** |
| `managed` | boolean | — | no | false | **true** |
| `perRequestBotScore` | boolean | — | no | false | inherited |
| `scoreHeader` | boolean | — | no | — | inherited |
| `scoreThreshold` | integer | — | no | — | **30** |
| `sequenceRules` | boolean | — | no | false | inherited |
| `sessionTokenLifetimeMinutes` | integer | — | no | — | inherited |
| `tier` | enum | `bot-fight-mode`, `super-bot-fight-mode`, `bot-management-enterprise` | no | "bot-fight-mode" | inherited |
| `verifiedBotsAllowed` | boolean | — | no | true | **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 · 3

- [AI Crawl Control](https://localhost:3000/catalogue/components/cloudflare-ai-crawl-control.md) `cloudflare-ai-crawl-control` — cloudflare
- [Cloudflare Turnstile](https://localhost:3000/catalogue/components/cloudflare-turnstile.md) `cloudflare-turnstile` — cloudflare
- [Generic bot management](https://localhost:3000/catalogue/components/bot-management.md) `bot-management` — default

## Use it in a design

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

## Source (`component` YAML, verbatim)

```yaml
# yaml-language-server: $schema=../../schema/component.schema.json
# Cloudflare Bot Management: every request gets a bot score from 1 to 99, where 1-29 is automated
# or likely automated and 30-99 likely human ("Bot scores"); verified bots are classified apart
# from malicious automation and JavaScript detections back the machine-learning model.
schemaVersion: "1"
type: "component"
id: "cloudflare-bot-management"
kind: "bot-management"
provider: "cloudflare"
docs: "https://developers.cloudflare.com/bots/concepts/bot-score/"
defaults:
  managed: true
  scoreThreshold: 30
  verifiedBotsAllowed: true
  machineLearning: true
properties:
  tier:
    type: "enum"
    values: ["bot-fight-mode", "super-bot-fight-mode", "bot-management-enterprise"]
    default: "bot-fight-mode"
  perRequestBotScore:
    type: "boolean"
    default: false
  sequenceRules:
    type: "boolean"
    default: false
```

Human page: https://localhost:3000/catalogue/components/cloudflare-bot-management
