> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/adapters/cloudflare-waf.md).

# Cloudflare WAF

## Connection Requirements

### 1 - Domain

The base URL of the Cloudflare API. The default value is **<https://api.cloudflare.com>**.

### 2 - Token

API token created in the Cloudflare Dashboard under **My Profile → API Tokens** for user tokens. For Account Tokens, go to **Manage Account > API Tokens**. Select **Create Token**. Copy the secret to a secure place. The token must have **Zone:Read** permission and **Firewall Services Write** or **Firewall Services Read** permissions.

### 3 - Proxy

Proxy URL. (optional)

### 4 - Thread Count

This adapter works in a multi-threaded manner. This field represents the number of parallel threads that is going to be constructed for sending API requests (default: **32**, min: **1**, max: **32**)

### 5 - Sleep Time

Delay in seconds between thread batches (default: **0**). Increase if encountering rate limit errors.

### 6 - Timeout

The amount of time (in seconds) to wait for API responses. (default: 30)

{% hint style="info" %}
**Default Values**

* **Domain**: <https://api.cloudflare.com>
* **Thread Count**: 32
* **Sleep Time**: None
* **Timeout**: 30
  {% endhint %}

{% hint style="danger" %}
**Attention**

Please perform a connection test to ensure there is a valid connection to the Cloudflare WAF host. When the discovery operation is finalized you will be able to see the details on Assets page.
{% endhint %}
