Skip to content
Firewall
Visit Firewall on GitHub
Set theme to dark (⇧+D)

Manage list items (IP addresses)

View items in a Firewall Rules list

To view the items in a Firewall Rules list, follow these steps:

  1. Access the Lists interface in the Configurations > Lists page of your Cloudflare account.

  2. To view items in a list, click the Edit link associated with the list you want to view.

The list of items displays sorted by IP address, ascending:

View items in a list

Add items to a list

Rules Lists support:

  • Individual IPv4 addresses
  • IPv4 CIDR ranges with a prefix from /8 to /32
  • IPv6 CIDR ranges with a prefix from /4 to /64

You can combine individual addresses and CIDR ranges in the same list.

You can use uppercase or lowercase characters for IPv6 addresses in lists. However, when you save the list, uppercase characters are converted to lowercase.

To add items to a Firewall Rules list, follow these steps:

  1. Access the Lists interface in the Configurations > Lists page of your Cloudflare account.

  2. Click the Edit button associated with the list that you want to edit.

    The list of IP items displays.

  3. Click Add items.

    The Add items to list page displays:

    Add items to list page

  4. To add items to the list manually, use the text inputs in the Lists interface.

  5. To add items in CSV format, click Upload CSV.

Add items to a list manually

  1. In the Add items to list page, add an IP Address and an optional description in the text inputs.

    Enter list items manually

  2. As you enter information into a text input, a new row of inputs displays below the current one.

    To delete any of the IP addresses that you have entered, click X.

  3. Click Add to list to add the new items.

    The updated list displays.

Add items in CSV format

Use valid CSV file format

When uploading a CSV file containing a list of IP addresses and optional descriptions, be sure that each item is on its own line, as in this example:

IP-address,description
IP-address

Upload a CSV file

To add items to a Firewall Rules list by uploading a CSV file, follow these steps:

  1. In the Add items to list page, click Upload CSV.

    Your operating system's file browser dialog displays.

  2. Browse to the location of the CSV file, select it, and click Open.

    The Add items to list page updates to include the items from the CSV file:

    CSV items shown in Add items page

  3. You can continue to edit the items in the list before adding them:

    • To delete any of the IP addresses that you have entered, click X.
    • To add extra IP addresses manually, enter the information in the text inputs.
  4. Click Add to list to add the new items to your list.

    The updated list displays.

Delete items from a list

To delete items from a Firewall Rules list, follow these steps:

  1. Access the Lists interface in the Configurations > Lists page of your Cloudflare account.

  2. Click the Edit link associated with list from which you want to delete.

  3. Select the checkboxes next to the items that you want to delete. To select all of the items, use the checkbox in the column header:

    Delete items from list

  4. Click Remove to delete the selected items from the list.

  5. Click Remove in the confirmation dialog.

    The updated list displays.