INTEGRITY Cloudflare Docs

Lists

Lists allow you to group items such as IP addresses, hostnames, or autonomous system numbers (ASNs), and reference them by name in Cloudflare rule expressions. Instead of adding each item individually to every rule that needs it, you define the group once and reuse it across rules and zones.

You can create your own custom lists or use Managed Lists maintained by Cloudflare, such as Managed IP Lists that provide threat intelligence data.

Lists have the following advantages:

When you update the content of a list, any rules that use the list are automatically updated, so you can make a single change to your list rather than modify rules individually.

Cloudflare stores your lists at the account level. You can use the same list in rules of different zones in your Cloudflare account.

Supported lists

Cloudflare supports the following lists:

Refer to each page for details.

You can also use inline lists in rule expressions. Inline lists allow you to include values directly in an expression without creating a separate list first. However, any changes to the values require editing the rule itself.

List names

The name of a list must comply with the following requirements:

Work with lists

Create and edit lists

You can create lists in the Cloudflare dashboard or using the Lists API.

After creating a list, you can add and remove items from the list, but you cannot change the list name or type.

Use lists in expressions

Both the Cloudflare dashboard and the Cloudflare API support lists:

Search list items

You can search for list items in the dashboard or via API.

For IP lists, Cloudflare returns IP addresses or ranges that start with your search query. For example, searching 192.0.2 matches 192.0.2.1 and 192.0.2.0/24, but searching for 192.0.2.100 does not match a CIDR range like 192.0.2.0/24 that contains that address.

For Bulk Redirect Lists, Cloudflare returns entries where the source URL or target URL contains your search query.

Availability

List availability varies according to the list type and your Cloudflare plan and subscriptions.

Free Pro Business Enterprise
Availability Yes Yes Yes Yes
Number of custom lists (any type) 1 10 10 1,000
Max. number of list items (across all custom lists) 10,000 10,000 10,000 500,000
IP lists Yes Yes Yes Yes
Other custom lists (hostnames, ASNs) No No No Yes
Managed IP Lists No No No Yes

Notes:


User role requirements

The following user roles have access to the list management functionality:

Final remarks

You can only delete a list when no rules (enabled or disabled) reference it.

Cloudflare will apply the following rules when you add items to an existing list (either manually or via CSV file):

To replace the entire contents of a list at once, format the data as an array and use the Update all list items operation in the Lists API.

The Cloudflare dashboard does not support downloading a list as a CSV file. To export list contents, use the Get list items API operation.