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.
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 :
- Create a Regex that will detect the keywords “Sport” and “Sports” in the search section. Below is an example of a sample search engine URL: https://www.google.com/search?q=sports&oq=sports&gs_lcrp=EgZjaHJvbWUqCQgAEEUYOxiABDIJCAAQRRg7GIAEMgYIARAjGCcyDAgCECMYJxiABBiKBTIGCAMQRRg8MgYIBBBFGDwyBggFEEUYQDIGCAYQBRhAMgYIBxBFGEDSAQgxNDc4ajBqN6gCALACAA&sourceid=chrome&ie=UTF-8
To validate the regex you can use Regex Tester Tools
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
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
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
Now, when a user tries to search with the keywords “Sport” and “Sports”, the action will be blocked
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'.