Example: Configuring Redirect Web Filtering Custom Objects (CLI)
![]() | Note: Rather than or in addition to custom object lists, you can use included default lists and included whitelist and blacklist categories. |
To configure redirect Web filtering using the CLI, you must first create your custom objects:
Configure a URL pattern list custom object and add values to it. The following example creates the urllist4 custom object:
user@host# set security utm custom-objects url-pattern urllist4 value [https://www.juniper.net 1.2.3.4]When entering the URL pattern, note the following wildcard character support:
- The \*\.[]\?* wildcard characters are supported.
- You must precede all wildcard URLs with http://.
- You can only use the asterisk * wildcard character if it is at the beginning of the URL and is followed by a period.
- You can only use the question mark ? wildcard character at the end of the URL.
- The following wildcard syntax IS supported: http://*.juniper.net, http://www.juniper.ne?, http://www.juniper.n??.
- The following wildcard syntax is NOT supported: *.juniper.net , www.juniper.ne?, http://*juniper.net, http://*.
Note: Because you use URL pattern lists to create custom URL category lists, you must configure URL pattern list custom objects before you configure custom URL category lists.
Configure a custom URL category list custom object by using the URL pattern list you created. The following example adds the urllist3 URL pattern list to the custurl4 custom object:
user@host# set security utm custom-objects custom-url-category custurl4 value urllist3
Related Topics
JUNOS Software Feature Support Reference for SRX Series and J Series Devices