Skip to main content

IP Lists

With the Lists feature in the Arvancloud CDN, you can build a list of IPs of your choice so you can easily define one or more firewall rules for a group of IPs. You can create a list of your own IP addresses or use lists managed by Arvancloud.

Defining IP lists has many benefits. For example:

  • For firewall management, using a list is easier and less error-prone than manually adding a long list of IPs to a firewall rule.
  • When updating a set of firewall rules that target a group of IP addresses, using an IP list is less error-prone than editing several rules.
  • By defining a name and description for each list and IP, you can easily manage a large number of IPs in your firewall settings.
  • When you update or change the contents of a list, every firewall rule that uses that IP list is updated automatically; so instead of several separate changes in each rule, you only change your list once.

Arvancloud stores your lists at the account level, and you can use a single list across the different domains registered in your account.

Creating a List​

To create and save an IP list in the Arvancloud panel, first go to CDN, select Lists from the settings menu, and click New List.

On the page that opens, choose a name for your list and write a description.

Entering a description is optional, but filling it in helps you manage your lists.

The list name can only contain lowercase English letters and numbers, and its length must not exceed 64 characters.

Next, add IPs to the list and, if needed, write a description for each one. You can also upload your list of IPs as a CSV file.

To create a list via API, you can use a request like the following:

curl --location --request POST 'https://napi.arvancloud.ir/cdn/4.0/dynamic-fields' \

--header 'authority: napi.arvancloud.ir' \

--header 'authorization: API KEY 1 2 3 4' \

--header 'content-type: application/json' \

--data-raw '{"name":"arvancloud","description":"","type":"ip","values":[{"value":"8.8.8.8","desc":""}]}'

Finally, after saving the list, you can see all lists in your account in the same section.