Creating a URL List

Create a list of URLs you can use to build rules in a Network Firewall policy.

Before you can create a URL list in a policy, you must first create a policy.

Create URL lists to allow or deny traffic to a group of URLs. You can create up to 1,000 URL lists in a policy. Each list can contain a maximum of 1,000 URLs. The total maximum number of URLs allowed in a policy is 25,000. Each URL is entered on its own line within the list. You can use wildcards like asterisks (*) and caret (^) in a URL to customize matching. Don't enter protocol information like "http://" or "https://". See Creating Network Firewall Policy Components for more information.

You can create URL lists one at a time using the following instructions, or you can import many at once using a .json file. See Bulk Importing Network Firewall Policy Components more information.

    1. Open the navigation menu and click Identity & Security. Under Firewalls, click Network Firewall Policies.
    2. Click on a policy in the list.
    3. In Policy resources, click on URL lists.
    4. Click Create URL list.
    5. Enter a friendly name for the URL list. Avoid entering confidential information.
    6. Enter a maximum of 1,000 URLs, one on each line.
    7. Click Create URL list.
  • Use the network-firewall url-list create command and required parameters to create a URL list:

    oci network-firewall url-list create 
    --network-firewall-policy-id network firewall policy OCID --compartment-id compartment OCID
    --total-urls integer --urls '["URL_1", "URL_2"]' [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the CreateUrlList operation to create a URL list.