Create a URL List

Create a list of URLs you can use to build rules in a firewall 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://".

To import several URL lists using a .json file, see Import Firewall Policy Components.

    1. Open the navigation menu, and select Identity & Security. Under Firewalls, select Network Firewall policies.
    2. Select that compartment that contains the policy that you want to create the URL list in.
    3. Select the policy.
    4. Under Policy resources, select the URL lists tab.
    5. Select Create URL list.
    6. In the Name field, enter a name for the URL list. Avoid entering confidential information.
    7. (Optional) In the Description field, enter a brief summary of the URL list.
      Use this field to provide details about the URL list to help other users understand its purpose or configuration. You can enter up to 1,000 characters and can edit this field at any time.
    8. In the URL field, enter a list of URLs that you want to allow or deny access to.
      You can enter a maximum of 1,000 URLs, one on each line.
    9. Select Create.
  • 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.