---
title: "Cloudflare"
slug: "cloudflare"
updated: 2024-06-06T16:00:28Z
published: 2024-06-06T16:00:28Z
canonical: "docs.safe.security/cloudflare"
---

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

# Cloudflare

## About this document

---

This document provides the step-by-step procedure to configure Cloudflare in SAFE.

## Introduction

---

SAFE integrates with Cloudflare, and fetches the security misconfiguration of the Cloudflare account in SAFE.

## Prerequisites

---

- Access required in **SAFE**:
  - SAFE Admin Access
- Access required in **Cloudflare**:
  - Cloudflare Admin
- Required User Input:
  - API URL
  - Access Token
  - Asset Name in SAFE (optional)
- Required Scope:
  - Account Settings:Read
  - Zones Settings:Read

## Generate Connection Details

---

### Generate an **Access Token**

Steps:

---

- Login to Cloudflare as Admin.
- Go to **My Profile** from the top right corner.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/1(12).png)

- Click on the **API Tokens**from the left navigation.
- Click on the **Create Token**button.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/2(11).png)
- Click on the **Get started** button next to **Create Custom Token**.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/image-1717688575436.png)
- Select the following permissions:
  - Permissions
    - Account Settings: Read
    - User Details: Read
    - Zone Settings: Read
  - Account Resources
    - Include: All Accounts
  - Zone Resources
    - Include: All Zones
- Click on the**Continue to Summary** button.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/4(35).png)
- Click on **Create Token**.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/5(35).png)
- Copy and save the API Token. You will need the API Token while configuring Cloudflare in SAFE.

It's important to regularly update the API Token in SAFE according to its expiration date.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/6(10).png)

### **Obtain API URL**

Steps:

---
- Access the Cloudflare API documentation by clicking on the provided [link](https://developers.cloudflare.com/api/).
- Upon reaching the Cloudflare API documentation page, locate the section titled **API Base URL**.
- In the exhibit provided, find the base URL highlighted as 3.
- **Copy** and **save** this *API Base URL* to use it while configuring Cloudflare in SAFE.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/7(8).png)

## Configure Cloudflare in SAFE

Steps:

---

- Log in to your SAFE account as **Admin**.
- Click on the **Integrations**option from the left navigation.
- Scroll to find the Cloudflare integration card or search for Cloudguard in the search bar.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/8(10).png)
- Hover over the **Cloudflare** integration card and click on the **Configure** button.
- Enter the****following:
  - API URL
  - Access Token
  - Asset Name in SAFE - Provide a unique identifier which can uniquely identify the asset
- Enter the **Auto Sync Frequency**.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/9(9).png)
- Click on the **Test Connection** button.
- Once the connection is successful, click on the **Save** button.
- Once the configuration is saved successfully, click on the **Sync** **Now** button to trigger an on-demand sync.
- Upon a successful sync, the system pulls the Cloudflare assets and their findings in SAFE. You can track the status of the sync in the **History** table.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/10(9).png)

## View Results

Steps:

---

- Go to the**Integrations** homepage.
- Scroll to find the Cloudflare integration card or search for Cloudflare in the search bar.
- Click on the Cloudflare integration card for **Finding View** and **Asset View**.
  - **Finding View:** This tab displays all the findings details pulled from Cloudflare.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/11(10).png)
  - **Asset View:**This tab displays all the assets pulled from Cloudflare.

![](https://cdn.document360.io/23dc20b8-a989-48c0-8653-f1d3e4abc734/Images/Documentation/12(7).png)

## History

---

Learn More about Integration History [here](https://docs.safe.security/safe-4/docs/integration-history).

## SAFE's Outgoing IP Addresses

---

Click [here](https://docs.safe.security/safe-4/docs/safes-outgoing-ip-addresses) to find the outgoing IP addresses of SAFE. All traffic to any integrations in SAFE will see one IP address as the source IP of the incoming connection.
