Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Configure Web Filtering with Safe Search


Use this example to configure UTM Web filtering solutions and verify the safe search enhancement for UTM Web filtering.


This example uses the following hardware and software components:

  • An SRX Series device

  • Junos OS Release 20.2R1

Before you begin:


In this example, you configure the following policies and Web filtering profiles on your security device:

  • UTM policies

  • Security policies

  • Web filtering profiles

  • SSL proxy

After you've configured the policies and profiles, you generate the Web filtering statistics and verify the performance of the safe search enhancement.

Figure 1 shows the basic UTM Web filtering topology. When you enable your security device with the safe search feature, the device rewrites the search requests from the user to the safest search mode of the search engines. The cloud engine or the local engine performs Web filtering on the search requests before forwarding to the Internet or external webserver.

Figure 1: Topology for Web Filtering Basic Function
for Web Filtering Basic Function


CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Step-by-Step Procedure

The following example requires you to navigate various levels in the configuration hierarchy. For instructions on how to do that, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.

To configure UTM Web filtering:

  1. Configure UTM Web filetring solution.
  2. Configure the security policies to control HTTP or HTTPS traffic from the trust zone to the Internet zone.
  3. Configure security zones.
  4. Configure interfaces.


From configuration mode, confirm your configuration by entering the show security policies, show security utm, and show interfaces commands. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

If you are done configuring the feature on your device, enter commit from configuration mode.


Verify Safe Search Function


Verify that the safe search feature is enabled for UTM Web filtering solutions.


From operational mode, enter the show security utm web-filtering statistics command to view the Web filtering statistics. In the output, the Safe-search redirect and Safe-search rewrite fields display the enhanced safe search redirect and rewrite statistics.

user@host> show security utm web-filtering statistics


The output displays that the safe search feature is enabled and there are no safe search redirects and safe search rewrites.