# How To Whitelist Better Stack IPs in Digital Ocean

If you are using a [Digital Ocean](https://www.digitalocean.com/) firewall with
your system it is a best practice to whitelist Better Stack IPs and User Agent.
This will prevent Digital Ocean 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://betterstack.com/docs/uptime/frequently-asked-questions/#what-ips-does-uptime-use).
They are split into regions for easier navigation.

### Step 1

Open the _Droplets_ settings in the left menu.

![Digital Ocean droplets](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/fccf51e9-9b82-4bb6-45f3-62ff4405ce00/public =201x233)

Select or create a new droplet to which you want the firewall to apply.

### Step 2

Open the _Networking_ settings.

![Digital Ocean networking](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/7a50a721-cfc1-4cfd-fef8-ee090fc41600/public =208x140)

### Step 3

Click on the _Firewalls_ tab. Then, click on the _Create Firewall_ button.

![Digital Ocean firewall](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/5979e391-aa55-4e36-0b3d-19fa59f4b600/public =1208x717)

### Step 4

Name your new Firewall. Then, Create the following inbound rules:

- All TCP
- All UDP

Unfortunately, Digital Ocean doesn’t provide an option to whitelist a User-Agent
so you will need to add all
[Better Stack IPs](https://betterstack.com/docs/uptime/frequently-asked-questions/#what-ips-does-uptime-use)
manually.

The Inbound traffic settings should look like this:

![Digital Ocean ip](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/afca7119-6b25-42eb-63a3-d5b7adbe8900/public =1210x565)

### Step 5

Delete all Outbound rules and **don’t forget to select the droplet** to which
you want this firewall to apply.

### Step 6 (Final)

Finally, click the big green button _Save Firewall_.
