How to block a search term or word in a URL
search cancel

How to block a search term or word in a URL

book

Article ID: 166291

calendar_today

Updated On:

Products

ProxySG Software - SGOS

Issue/Introduction

You want to block a search term and prevent users from seeing related search results.

You can block a search term before the search engine returns results so that users receive an exception page. These steps apply to both both transparent and explicit proxy for HTTP traffic. For HTTPS traffic, the proxy must perform SSL interception.

  1. In the Management Console, select Configuration > Policy > Policy Files.
  2. Beside Install Local File from, select Text Editor and click Install.
  3. In the dialog that opens, enter the following CPL:

     <Proxy>
            url.regex="sex[^a-zA-Z]" FORCE_DENY

    where sex is the search term you want to block.

     
  4. Click Install. The appliance indicates that policy was installed.
  5. Click Close.

Note: This policy blocks any search for the entire word “sex”, but not partial strings such as “sexual”, “sexy”. In addition to blocking the search for the word “sex”, policy blocks any other request that contain the term, such as links that contain the term "sex".