# How to integrate Cloudflare

> In this documentation, we'll show how you can easily integrate Cloudflare to FlyWP with the API token keys. Check out the guide and learn the process.

Source: https://flywp.com/docs/account/integrations/how-to-integrate-cloudflare/

**Cloudflare** is a popular application security and performance booster tool. It’s also known as the content delivery network (CDN). You can do DDoS mitigation, get quality internet security services, and distribute domain name server (DNS) services. It acts as a reverse proxy for websites, helping to improve performance, increase security, and ensure the availability of websites and web applications.

The good news is that you can now integrate this popular web and application security tool into FlyWP to protect your servers from getting hacked or compromised.

[Video: Integrate Cloudflare with FlyWP: A Step-by-Step Guide | FlyWP Tutorial](https://www.youtube.com/watch?v=gXH74GxhmuQ)

Here in this documentation, we’ll give you the basic steps to integrate this tool into FlyWP.

Let’s get started.

## **Integrating Cloudflare with FlyWP**

FlyWP’s **Cloudflare** **Integrations** feature enhances your workflow by automating key tasks and providing a centralized place to manage external services, all from a unified dashboard.

From DNS management to caching and firewall automation, integrating third-party tools with FlyWP saves time and reduces the need for manual configuration.

## **Accessing the Integrations Panel**

To view or manage integrations:

1. Go to the **FlyWP Dashboard**
2. Click the **Team Dropdown** (top-right) and select your desired team
3. In the left sidebar, click on **Integrations** under **Team Settings**

![Screenshot 3x postspark 2025 07 01 13 43 26](https://flywp.com/wp-content/uploads/2025/07/screenshot_3x_postspark_2025-07-01_13-43-26-edited-1-scaled.png)

## **Cloudflare Integration (Now with Multi-Account Support)**

FlyWP now supports **multiple Cloudflare accounts**, making it easier for agencies, freelancers, and multi-brand teams to manage DNS across various domains and projects.

### **Key Benefits:**

- **Auto-create DNS records** when deploying a site
- **Auto-update records** during site migration
- **Auto-remove DNS entries** when a site is deleted
- **Manage multiple Cloudflare accounts** from one dashboard
- **Assign specific Cloudflare accounts to specific sites**

## **Adding a Cloudflare Account**

To connect a new Cloudflare account:

1. Navigate to **Team Settings &gt; Integrations**
2. Under **Cloudflare**, click the **+ Add Account** button
3. Enter the following:
   - **Name**: A custom label for the account (e.g., “Client A”, “Staging DNS”)
   - **Account Email**: Email address tied to the Cloudflare account
   - **API Token or Global API Key**: Generate one from[Cloudflare’s API Token page](https://dash.cloudflare.com/profile/api-tokens)

![Screenshot 3x postspark 2025 07 01 13 49 29](https://flywp.com/wp-content/uploads/2025/07/screenshot_3x_postspark_2025-07-01_13-49-29-edited-scaled.png)

Each account can be managed individually via the **Manage** button beside its entry.

When deploying or migrating a site, you’ll have the option to select which Cloudflare account to use, ensuring DNS updates happen in the correct zone every time.

- To create a Cloudflare API token, you can <a href="https://dash.cloudflare.com/profile/api-tokens" target="_blank" rel="noreferrer noopener">check out this link</a>.
- You need to log in here
- After you log in, you’ll be directly redirected to the API token page. Click on “**Create Token**“.

![Image 63](https://flywp.com/wp-content/uploads/2023/11/image-63.png)

- Here you’ll find the pre-built API token templates. So go with the DNS API token to proceed with the step.

![Image 64](https://flywp.com/wp-content/uploads/2023/11/image-64.png)

- Fill out the information with some valid data. For example, permissions, zone resources, client IP address filtering, and TTL And then move on to the next step.

![Image 65](https://flywp.com/wp-content/uploads/2023/11/image-65.png)

- You’re all set; now just check the information before creating the API token.

![Image 66](https://flywp.com/wp-content/uploads/2023/11/image-66.png)

- Here you go. You can find the API tokens here. Also, you can use the given CURL in a terminal shell to test whether your token is working or not.

![Image 67](https://flywp.com/wp-content/uploads/2023/11/image-67.png)

- Now go back to the FlyWP Cloudflare configuration page and paste the API token here with the ID credentials. Once you’re done, hit the “**Save**” button.

![Image 68](https://flywp.com/wp-content/uploads/2023/11/image-68.png)

- That’s all. You have successfully integrated Cloudflare with FlyWP to secure your WordPress server management process.

![Image 69](https://flywp.com/wp-content/uploads/2023/11/image-69.png)

**Most important:**

To avoid frequent redirects or error like “**ERR\_TOO\_MANY\_REDIRECTS**“, you need to enable **SSL/TLS encryption mode to Full**. For that, navigate to **SSL/TLS** in your Cloudflare account. Then go to the overview page. After that, select **Full**.

That’s all!

![SSL/TLS encryption mode to Full](https://flywp.com/wp-content/uploads/2024/04/image-47.png)

So this is how you can integrate and configure a Cloudflare account in FlyWP.
