> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudflare

> Cloudflare is a company that provides a content delivery network, internet security services and distributed domain name server services, sitting between the visitor and the Cloudflare user's hosting provider, acting as a reverse proxy for websites. Its services protect websites from various attacks, such as distributed denial of service (DDoS), and by ensuring the website is available by serving it from a network of global data centers. Cloudflare's services also include SSL/TLS, performance optimization, and a content distribution network.

## Creating a Cloudflare connection

Create the connection by using one of the following methods:

* [API Key](#using-api-key)
* [API Token](#using-api-token)

### Using API Key

To create the connection you need:

* An Email
* A Global API Key

#### Obtaining the credentials

1. Login to [Cloudflare](https://dash.cloudflare.com/login).

2. Navigate to [API Tokens](https://dash.cloudflare.com/profile/api-tokens).

3. Under **API Keys**, click **View** on the **Global API Key** row.

4. Enter your password to unlock the secret API key.

   <img src="https://mintcdn.com/blinkops-2/LTL4io7BmEAPsFrF/img/Cloudflare/APIKeys.png?fit=max&auto=format&n=LTL4io7BmEAPsFrF&q=85&s=bda18dd61734b5ba2c5fcb461b8f7283" alt="API Tokens" width="2848" height="1526" data-path="img/Cloudflare/APIKeys.png" />

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.

2. Select the **Cloudflare** icon. A dialog box with name of the connection and connection methods appear.

3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.

4. Select **API Key** as the method to create the connection.

5. Fill in the parameters:

   * The Email
   * The Global API Key

6. (Optional) Click **Test Connection** to test it.

7. Click **Create connection**. The new connection appears on the **Connections** page.

### Using API Token

To create the connection you need:

* An API Token

#### Obtaining the credentials

1. Login to [Cloudflare](https://dash.cloudflare.com/login).
2. In the top-right corner click on **My Profile** > **API Tokens**.
3. Select **Create Token**.

#### Creating your connection

1. In the Blink platform, navigate to the **Connections** page > **Add connection**. A New Connection dialog box opens displaying icons of external service providers available.
2. Select the **Cloudflare** icon. A dialog box with name of the connection and connection methods appear.
3. (Optional) Edit the name of the connection. At a later stage you cannot edit the name.
4. Select **API Token** as the method to create the connection.
5. Fill in the parameters:
   * The API Token
6. (Optional) Click **Test Connection** to test it.
7. Click **Create connection**. The new connection appears on the **Connections** page.
