# How To Whitelist Better Stack IPs and User Agent in Cloudflare

If you are using a [Cloudflare](https://www.cloudflare.com/en-gb/) firewall with
your system it is a best practice to whitelist Better Stack IPs and User Agent.
This will prevent Cloudflare from blocking Better Stack's monitoring requests
and prevent any false incident alerting.

In this quick tutorial, we will guide you through each step.

## Where can I find Better Stack IPs?

The official documentation provides list of
[all used Better Stack IPs as well as the User Agent](https://docs.betteruptime.com/frequently-asked-questions#what-ips-does-better-uptime-use).
They are split into regions for easier navigation.

### Step 1

Log into your Cloudflare account and find the **_Security_** tab in the left
menu. Click on the **_WAF_**.

![Cloudflare WAF](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/fa69b0f4-e0b7-4db6-bb32-42147d4a9400/public =267x250)

### Step 3

This will open the WAF (Web Application Firewall) security options. Navigate to
the **_Firewall rules_** tab.

### Step 4

Click on **_Create firewall Rule_**

![Cloudflare Firewall Rule](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/fc600b3b-cd92-444e-d4e4-204ba340cf00/public =1034x699)

### Step 5

Name your new Firewall rule.

### Step 6

Set **_Field_** to _User Agent_, **_Operator_** to _Equals_ and **_Value_** to

`Better Uptime Bot Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 Safari/537.36`

This value can be found in the
[Better Stack official documentation](https://docs.betteruptime.com/frequently-asked-questions#what-user-agent-does-better-uptime-use).

Finally, set the **Then..**. to _Allow_

Your screen should look like this:

![Cloudflare user agent](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/66a9c06b-55c4-4384-98a8-a6085680c400/public =1046x668)

### Step 6

Once you fill out the form, click **_Deploy_** in the bottom-right corner.
