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 application in.
    3. Select the policy.
    4. Under Policy resources, select the URL lists tab.
    5. Select Create URL list.
    6. Enter a name for the URL list. Avoid entering confidential information.
    7. Enter a maximum of 1,000 URLs, one on each line.
    8. Select 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.