# Adding IP Addresses to the Whitelist in Cloudflare

1. Log in to your [Cloudflare dashboard](https://dash.cloudflare.com/).
2. In the "**Account Home**" section, click on the domain name for which you want to create an IP address whitelist.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-5ee5762ec186fdd5b3075e323e77e3e889743fd3%2Fimage%20(2)%20(1)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

3. Navigate to "**Security**" ➔ **"Security rules"** ➔ click the **"Create rule"** button ➔ select "**IP access rules**."

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-c6d53345c8a2a50331dad75a4fc7a7baf92e9429%2Fimage%20(2)%20(1)%20(1)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>

4. Specify the IP address, range of addresses, country, or [ASN (**Autonomous System Number**)](https://blog.browserscan.net/ru/docs/what-is-an-asn) (used for specific organizations) that you want to whitelist. Then, choose the action to apply to the specified object—allow access, block access, or display a CAPTCHA for requests from the specified IP range. Next, select your site in the "**Zone**" field and save the rule by clicking the "**Create**" button.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/image%20(3)_eng.png" alt=""><figcaption></figcaption></figure>

The created rule will appear in the list of all rules.

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/image%20(4)_eng.png" alt=""><figcaption></figcaption></figure>

## Using ASN

When adding rules by **ASN** instead of an IP address range (for example, in the case of Telegram), you can search for the ASN associated with the desired IP address. To do this, find the ASN (there may be several) associated with the IP address (e.g., 91.108.6.73) using [Cloudflare's Radar service](https://radar.cloudflare.com/ip).

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/image%20(5)_eng.png" alt=""><figcaption></figcaption></figure>

**Telegram's ASN**: **AS44907, AS59930, AS62014, AS62041, AS211157** — these need to be added as separate rules in the "**Security**" ➔ **"Security rules"** section:

<figure><img src="https://github.com/armydrawer/premium-translate/blob/main/en/.gitbook/assets/image%20(6)_eng.png" alt=""><figcaption></figcaption></figure>

The created rules will be displayed in the list of rules.

<figure><img src="https://3137668309-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwgP5ZE7DnnlT9DQMSCQz%2Fuploads%2Fgit-blob-b5507d995bdd6e1e0546c502a583e5e7af9667c1%2Fimage%20(2233)_eng.png?alt=media" alt=""><figcaption></figcaption></figure>
