search cancel

How to allow google search and block specific google search results


Article ID: 169865


Updated On:


ProxySG Software - SGOS


This articles provides the solution on how to permit google search and to block certain google search results. Below is an example of a google search result that prompts the users to play a online game, for instance, if the users are in a corporate network and using the direct URL as below to open Solitaire game;

This access cannot be blocked with a "url.domain" or "url.path" cpl script alone because if the path contains a "?", it is considered as a query.


Consider applying a CPL script as below to achieve such a requirement.

<proxy> url.path.exact="/search" url.query.regex="q\=soliatire\+game" Deny

Note: SSL interception must be turned on to get desired results.