
KB No. 2657: BLOCKING ADULT IMAGES IN SEARCH ENGINE RESULTS THROUGH URL REWRITING
How to force the use of safe search in search engines by rewriting URLs.
Objective
Some users display adult images using search engines. Safe search features on search engines, such as Google's SafeSearch, block these images. URL rewriting can be used to force the use of SafeSearch.
Background
URL rewriting works with proxy integration (explicit or interception) and with an ICAP connector. It does not work with WISP or OPSEC connectors, or with port mirroring or port snapping integration.
Since search engines use HTTPS by default, you will need to use Olfeo SSL decryption.
Steps
On theAdministration > Users page, add a rule in theAccess tab, clickAction, and selectURL Rewrite.

Here is an example of several search engines that force the use of the "Safe Search" option to avoid pornographic images.

Validation
To validate the operation, bypass the Olfeo proxy and perform an image search with safesearch disabled.
Next, use the Olfeo proxy and restart the search. SafeSearch should now be active, and you will no longer be able to search for pornographic images.