# How To Whitelist Better Stack IPs on AWS

If you are using a [AWS](https://aws.amazon.com/) with your system it is a best
practice to whitelist Better Stack IPs and User Agent. This will prevent AWS
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 EC2 settings (you can search for EC2 in the top-left search bar).

### Step 2

Open the _Security Groups_ settings in the _Network & Security_ tab in the left
menu.

![AWS network](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/8a9c2cdc-c58f-43cc-c253-a089b25a9b00/public =199x197)

### Step 3

In the top-right corner, click the _Create security group._

![AWS security](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/ad80e407-d9a9-466c-092d-db2aedc8d400/public =705x145)

### Step 4

Set the inbound rules as follows for all
[Better Stack IPs](https://betterstack.com/docs/uptime/frequently-asked-questions/#what-ips-does-uptime-use)

- Type to All traffic
- Source to Custom

The settings should look similar to this:

![AWS ips](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/7faee463-1e9a-4ece-753f-f0a0309a9300/public =1366x523)

Optionally, add a tag to your settings to recognize them in the future. Then,
head to the _EC2 Dashboard_.

### Step 5

Select the running instance on which you want to apply new security rules.

### Step 6

In the top-right corner click on _Actions → Security → Change security group_

![AWS group](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/e11cd926-2099-41a1-dae5-e186d0fba900/public =563x297)

### Step 7

Select the security group you created and click _Save_

![AWS group save](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/cef2c1aa-eada-4f84-6a7a-d0646b8b2f00/public =599x177)
