# Cloudflare WAF

Cloudflare WAF integrations allows you to actively block attacker IP by using Cloudflare WAF infrastructure.

### Authentication

Cloudflare WAF connector support authentication via Account API Token or User API Token

#### Account API Token

To create the Account API Token, go to the **Manage Accounts** > **Account API Tokens**, click on "Create Token". On the next screen, select the "Create Custom Token" option.

Name the token and select the permission:

* Account | Rule Rulesets | Edit

![Account API Token](https://802996127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIAGKHlIqVKJe9agnFr14%2Fuploads%2Fgit-blob-3f091aa1a8dbe673e867c4120092a3b059d8de65%2Fcloudflarewaf_1.png?alt=media)

#### User API Token

To create the User API Token, go to the **Profile** > **API Tokens**, click on "Create Token". On the next screen, select the "Create Custom Token" option.

Name the token and select the permission:

* Account | Rule Rulesets | Edit

![User API Token](https://802996127-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIAGKHlIqVKJe9agnFr14%2Fuploads%2Fgit-blob-bb3d663039ed37198ebcdaa8e88e3374ecafeea7%2Fcloudflarewaf_2.png?alt=media) In the Cloudflare connector authentication window, use your API Token to log in.
