Skip to main content

AD_4nXd-L7W-ESTZMrwTPFx1D372LEcuW-hCdW-uOvr4u7Lr44qI9SgMs66lYUD1IvUJn9LvzWFcL6B9h2PEBS-oePu3CsAY2pBAkt-sfu8uJ7giXxwxuU3I7n653LqwxGagCtxdSPYKQhY_LU4uJmFnc_M?key=uCZEFOiSXf49scj2GsVMbz1l

Netskope Global Technical Success (GTS)

Setting Up Keyword-Based Blocking on Search Engines

 

Netskope Cloud Version - 121

 

Objective

This document provides guidance around configuring keyword based blocking on search engines

 

Prerequisite

Netskope SWG Entitlement is required

 

Context

Many customers have specific requirements about blocking search of specific keywords on Search engines.

This use case is around such a requirement and will demonstrate how to configure keyword based blocking on search engines.

 

Lab Recreate

For this example, we will create a policy that will block the search of keywords - “Sport” and “Sports” on a search engine like google.

AD_4nXftWYW-BtzS1OO10T_mTXIUJ7unHtP3H90ZK5XO7SkqreF-8VaDXo0A03qFNKB3CcxfDavbGlye1BPy0cLhVHuQDqH_Gzdk2DGBEldc4v_pksOZqzkLRLiG5fo9lDi2xzrP21dV8Hmh7hojCXRXeUI?key=uCZEFOiSXf49scj2GsVMbz1l

This can be done by creating a regex that matches the keywords “sport” and “sports” in the search panel of Search engine.

However, the regex should also ensure that a keyword such as “Sportland” should not get blocked.

To create a Regex and understand the supported syntax, you can leverage this document from Netskope Knowledge base

 

Below steps can be followed to accomplish this use case : 

AD_4nXe5Yl9fW0GuYEKDs6ZF7W53-lmUlA8AxySNQbAjW1ugCj1PmQQTyjvC9eKImKSOmVBOQ5d-TcS5cGZEoLDmXNAdw70yozIu93EBDlmJWQVj4vhRLiBfmCHyxmKIXrjFqVZPMWE51JD6XCvoSY9PKA?key=uCZEFOiSXf49scj2GsVMbz1l

 

 

To validate the regex you can use Regex Tester Tools

AD_4nXdmYSH4vX9izFtadCaZf2FxfM1CyTrdXWdrptLcMQ2HYlRYaEjVEYTiJKv5klc4nKtJNMWEw9FvK0GOZpHpTbwhHpE7HjhU3dO1rGnkJlvsgOO14EU9NX4tviUoZSHRNa3lx1kJnONGKNCZjZANfwc?key=uCZEFOiSXf49scj2GsVMbz1l

 

Step 1 : Create a custom URL list under Policies - Web - URL List - New URL List with the first regex that will match “sport” and “sports” : Regex : .*search.*\bsport(?:s)?\b.*|^.*\bsport(?:s)?\b.*search.*

Path: Netskope Tenant UI >>> Policies >>> Profile --- URL List >>> New URL List

AD_4nXeluPlbRve56fGYUXvhyC5_L1NG-6jKAvYB6eNEyH690O-4kVTuOOncvoW9GEUWH4aGQTZVu5hPIqoa9mbnjL0T8mwZf_2QdcRlzMfs7xZoegSgMfrrxYAD4dgyTpdB3sEdslHA5f07-3-sg7jl_rc?key=uCZEFOiSXf49scj2GsVMbz1l

 

Step 2: Now create a Custom category with the URL list created in Step 1: 

Path: Netskope Tenant UI >>> Policies >>> Profile --- Custom category >>> New Category

AD_4nXcbLrt6ibIGsTFThq5YCll1ONQDiFKX0m37qVG8Cp0X1E6sO43AAwSEg-sq2-nEWWTU83B9wfi4SILi11ZdHOVMa9LZ-Htx7BEeadmjk32CJmsydge1hkQtdO5mfboLTVG8a001WsrYfB8N17PXE5w?key=uCZEFOiSXf49scj2GsVMbz1l

 

Step 3: Now go to the Real time protection policy page under Policies - Real Time protection policies - Web and create a Real time protection policy as shown below: 

Path: Netskope Tenant UI >>> Policies >>> Profile --- Custom category >>> New Category

AD_4nXd7Tn_IxNSWA8IsngUBw3zx3rh0o5raFRYsU0f85Dlpk3wBRqArXvt_2Ni686hEz6eFS_QEQF_ySyX3wjZqSg5jM6Fy8K1osYADhlI3rJJCgY2T9IG4K0_Ttf9y8naBDKBYO9zEb-IA5b4iOydtJLE?key=uCZEFOiSXf49scj2GsVMbz1l

 

 

Now, when a user tries to search with the keywords “Sport” and “Sports”, the action will be blocked

AD_4nXdkOZ-LHqigw_bKtW49N9eBYrV3qB_nARTtHDXgKXM8ymNK_9WXpvzhBvOI5FaskhAiAPEDUu2tajeKQ8kXmOzhBhgOAGLxG5KsGp0GcoUgB2wH9FZJAB4mGPDRrzzv7_g3Rd60jBnWudGaw2Og5w?key=uCZEFOiSXf49scj2GsVMbz1l
 

Notes

  • This article is authored by Netskope Global Technical Success (GTS).
  • For any further inquiries related to this article, please contact Netskope GTS by submitting a support case with 'Case Type – How To Questions'.