Skip to content
AnswerWell geo Documentation

Research · 10 min read · Answerwell

Custom Lists and Managed Lists: Types, Limits, and Rule Expressions

How Cloudflare Lists group IPs, hostnames, and ASNs for WAF and firewall rules—create them, reference them in expressions, and avoid plan and API limits.

This page summarises Cloudflare’s documentation on Lists: account-level groups of identifiers (IP addresses, hostnames, ASNs, or URL redirects) that you name once and reuse in rule expressions across zones. If you are building Gateway or Access policies, Cloudflare One uses a separate list product with different types and validation—covered briefly below so you do not mix the two.

Lists let you group items such as IP addresses, hostnames, or autonomous system numbers (ASNs) and reference them by name in Cloudflare rule expressions instead of pasting long enumerations into every rule.

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.

— Cloudflare, Lists

When the content of a list changes, any rule that references it picks up the change automatically. Lists live at the account level, so one list can appear in rules for multiple zones in the same account.

Typical situations include office or data-center IP allowlists, shared hostname sets for WAF catch-all logic, threat blocking with Managed IP Lists on Enterprise, and large-scale URL forwarding via Bulk Redirect Lists.

List families: account Lists, Zero Trust lists, and Bulk Redirect Lists

Section titled “List families: account Lists, Zero Trust lists, and Bulk Redirect Lists”

Cloudflare uses several “list” concepts. They are not interchangeable.

Family Where it lives Typical contents Referenced in
Account Lists (WAF Lists) Account Settings → Configurations → Lists IP, hostname, ASN (kind: ip, hostname, asn) WAF custom rules, many Rules expressions ($list_name)
Managed Lists Same account Lists area (Enterprise) Cloudflare-maintained threat intel ($cf.malware, etc.) Rule expressions on eligible plans
Bulk Redirect Lists Rules / Lists API (kind: redirect) Source/target URL pairs Bulk Redirect Rules
Cloudflare One lists Zero Trust → Reusable components → Lists URLs, hostnames, emails, device IDs, serial numbers, and more Gateway and Access policies (often by list UUID)

The lists described in this page are not the same as custom lists defined at the account level. The two types of lists support different data types and have different validation rules.

— Cloudflare, Lists (Cloudflare One)

Bulk Redirects use Bulk Redirect Lists, a different type of list covered in the Rules documentation.

— Cloudflare, Lists

For security rule authoring at the account/WAF layer, the rest of this page focuses on Custom Lists, Managed Lists, and Bulk Redirect Lists. For Zero Trust policy building, see Lists (Cloudflare One) and Create a list of IPs or domains.

Custom list types: IP, hostname, and ASN items

Section titled “Custom list types: IP, hostname, and ASN items”

A custom list holds one or more items of the same type that you reference collectively by name.

A custom list contains one or more items of the same type (for example, IP addresses, hostnames, or ASNs) that you can reference collectively, by name, in rule expressions.

— Cloudflare, Custom lists

List item type Expression pattern Example fields
IP address <FIELD> in $<LIST_NAME> IP-type fields per Fields reference
Hostname <FIELD> in $<LIST_NAME> http.host
ASN <FIELD> in $<LIST_NAME> ip.src.asnum

Hostname and ASN custom lists are Enterprise-only for account Lists. IP lists are available on all paid tiers subject to quotas in the table below.

IP entries may be individual IPv4/IPv6 addresses or CIDR ranges (/8–/32 for IPv4, /12–/128 for IPv6) in the same list. Cloudflare normalises IPv6 when stored (lowercase, no leading zeros in segments).

Items must be FQDNs; optional *.example.com wildcards require *. form. Schemes (https://) and URL paths are invalid.

Items are integer ASN values (for example 13335).

CSV upload formats for account custom lists are one item per line: <VALUE>,<DESCRIPTION> with optional description—see Custom lists for each type.

Managed Lists: threat intelligence by name in expressions

Section titled “Managed Lists: threat intelligence by name in expressions”

On Enterprise, Cloudflare maintains Managed IP Lists you reference like custom lists. Network Firewall documentation also exposes managed identifiers including $cf.anonymizer, $cf.botnetcc, and $cf.malware for ip.src / ip.dst expressions.

Display name Name in expressions Purpose
Cloudflare Open Proxies cf.open_proxies Known open HTTP/SOCKS proxies
Cloudflare Anonymizers cf.anonymizer VPNs, TOR, anonymising proxies
Cloudflare VPNs cf.vpn Known VPN servers
Cloudflare Malware cf.malware Malware sources
Cloudflare Botnets, Command and Control Servers cf.botnetcc Botnet C2 servers

The following lists are managed by the Cloudflare team and are regularly updated.

— Cloudflare, Configurations

In the Expression Editor, a managed list looks like any other list reference, for example ip.src in $cf.open_proxies—see Use lists in expressions.

Plan limits: how many lists and items you can have

Section titled “Plan limits: how many lists and items you can have”

Account Custom and Managed Lists quotas depend on the highest plan in the account (any paid zone raises quotas to that tier).

Plan Custom lists (any type) Max items (all custom lists) IP lists Hostname / ASN / Managed IP
Free 1 10,000 Yes No
Pro / Business 10 10,000 Yes No
Enterprise 1,000 500,000 Yes Yes

Enterprise extras: up to 40 hostname lists (10,000 hostname items total) and 40 ASN lists (30,000 ASN items total). Contact your account team if you need higher caps—see Features.

Cloudflare One reusable lists (separate product) allow up to 1,000 entries on Standard and 5,000 on Enterprise; CSV uploads must be under 2 MB—Lists (Cloudflare One).

Bulk Redirect Lists: purging more than 500,000 items cannot be done in one API call; delete at most 100,000 items per request—Bulk Redirects FAQ.

Network Firewall policy count: by default you can create a maximum of 200 policies; Cloudflare recommends IP lists to keep policies maintainable—Add custom policies.

Account list names must match ^[a-z0-9_]+$, max 50 characters. After creation you cannot change the list name or type—only description and items.

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

— Cloudflare, Lists

Roles with list management access include Super Administrator, Administrator, and Firewall—Lists.

When you add items to an existing list via the dashboard or CSV, Cloudflare merges: it does not remove existing items, updates matches, and appends new ones. To replace the entire set in one shot, use the Update all list items API operation. The dashboard does not export CSV; use Get list items via API to download contents—Lists.

Create an account custom list in the dashboard

Section titled “Create an account custom list in the dashboard”
  1. In the Cloudflare dashboard, open Settings, then Configurations → Lists (account home)—Create a list in the dashboard.

  2. Select Create new list, enter a name (per naming rules), optional description (max 500 characters), and choose Content type.

  3. Select Create, then Add items manually or Upload CSV (format depends on list type).

  4. On the add-items screen, confirm entries and select Add to list.

For Zero Trust lists, the path is Zero Trust → Reusable components → Lists with Create manual list or Upload CSV—Create a list of IPs or domains.

Use the in operator and $<list_name>:

To refer to a list in a rule expression, use $<list_name> and specify the in operator. Only one value in the list has to match the left-hand side of the expression (before the in operator) for the simple expression to evaluate to true.

— Cloudflare, Values (Rules language)

Examples from Cloudflare:

  • ip.src in $office_network
  • not ip.src in $office_network
  • ip.src in $cf.open_proxies

In the Expression Builder, choose is in list / is not in list, then pick the list from the value dropdown—Use lists in expressions.

Gateway expressions can reference a list UUID:

http.request.host in $<LIST_UUID>

Find the UUID in the browser URL when you open the list under My Team → Lists in Zero Trust—Gateway policy expressions.

You may embed literals: http.host in {"example.com" "example.net"} or IP sets with CIDR and ranges—Values (Rules language). Changing an inline list requires editing the rule itself, unlike a named list.

After creating an IP list via API, a rule can use ip.src in $iplist. Cloudflare Network Firewall currently supports only IPv4 in these lists, not IPv6—Use IP lists. Managed references in API rulesets may use expressions such as ip.src in $cf.anonymizer—Add custom policies.

Lists API: create items, async jobs, and rate limits

Section titled “Lists API: create items, async jobs, and rate limits”

The Lists API manages account custom lists and Bulk Redirect Lists under accounts/{account_id}/rules/lists. List objects use kind values ip, hostname, asn, or redirect—List JSON object.

Important behaviours:

  • Most item operations are asynchronous and return an operation_id; poll Get bulk operation status until status is completed—Create Bulk Redirects via API.
  • While a bulk operation runs, further requests on that list are queued FIFO; successful async creates return HTTP 201—Lists API endpoints.
  • Over 12 hours: at most 1,000,000 list item modifications and 30,000 modification API requests; concurrent writes while a job is processing can yield 429—retry later—Lists API.

Gateway list API (accounts/{account_id}/gateway/lists) is separate; Zero Trust tokens need Zero Trust Write—examples in Create a list of IPs or domains. That endpoint allows 600 requests per minute (120-second block if exceeded)—Lists (Cloudflare One).

Required token permissions for Bulk Redirect list management include Account Filter Lists Edit and Bulk URL Redirects Edit—Create Bulk Redirects via API.

When working with Lists or Bulk Redirects, Cloudflare returns 10xxx errors for misconfigurations such as duplicates, malformed URLs, or incompatible redirect settings—Cloudflare 10xxx errors.

Error Meaning Fix
10028 Duplicate items in one add request Deduplicate the batch before resubmitting
10056 Mixed item types in one add operation Send only items matching the list kind
10058 Items incompatible with list type IP lists: IPs only; redirect lists: redirect objects only

Additional pitfalls from Cloudflare One lists:

  • No duplicate entries; Punycode normalisation can make two hostname strings collide—Lists (Cloudflare One).
  • Hostname lists in Zero Trust do not support *.example.com wildcards (unlike Enterprise account hostname lists)—saving wildcards returns an error—same source.
  • CSV formatting: Zero Trust CSV needs a header row (value,description); no trailing whitespace on lines—Lists (Cloudflare One).
  • Deleting a list still referenced by any rule (even disabled) fails—remove references first—Lists.
  1. In the Cloudflare dashboard, open Settings → Configurations → Lists and confirm the list name, kind, and item count match what your rules expect—Create a list in the dashboard.

  2. In Security → WAF (or the relevant product ruleset), open the rule expression and verify it uses in $your_list_name or the correct managed list ($cf.malware, etc.)—Use lists in expressions.

  3. If you changed items via API, call Get bulk operation status until the job shows completed, then Get list items with the optional search query to spot-check entries.

  4. For Gateway policies, confirm the expression uses the list UUID from Zero Trust and that the list type matches the policy field—Gateway policy expressions.

  5. You can check automatically in Answerwell (our tool): https://answerwell.org/workspace

If something on this page is wrong or unclear, email yimasynthetic@gmail.com with the page URL and the exact sentence you are asking about.