How to enable Dynamic Categorization

Seeking assistance on enabling Dynamic Categorization . Are there specific settings or steps to follow for a seamless implementation?

Overview
In SafeSquid, requested URL is normally considered for categorization purposes.
However, when accessing a web page, Internet Browsers may require connecting to various other URLs to complete the portrayal of the web-page.
Requests to these dependency URLs may thus get differently categorized than the originally requested web-page.
Thus, even if the initially requested URL is included in a “Custom Category” created by you, and permitted for access, the proxy users may witness “broken pages”.

Providing a satisfactory web-experience to the users, thus requires identification and explicit access permission for each of such dependency URL.
Dynamic Categorization determines requests made by Internet Browser to serve a web-page included in a Custom Category.
Custom Categories applicable to the “Referring Web-Page” are added to the list of categories determined for the requested URL.
Dynamic Categorization enables a holistic web-experience to the users, when accessing permitted web-sites.
For example, General users are permitted to access website www.example.com, it belongs to a private category missionCritical Websites.
www.example.com loads custom fonts from fonts.google.com which is a dependency website for www.exaple.com.
google.com is not permitted for general users, which will result in fonts.google.com to be denied access.

But, due to dynamic categorization fonts.google.com is allowed, as fonts.google.com is referrer to www.example.com and added to the private category missionCritical Websites along with its own category which is google.

Below are the steps on how you can enable Dynamic Categorization.
To enable dynamic categorization, open SafeSquid web interface (http://safesquid.cfg)

image

Go to “Configure”
image

Select “Application Setup”

image

Go to “System configuration”

image

Edit global policy

image

Set “Dynamic Categorization” as “TRUE”

image

image

To validate dynamic categorization search https://safesquid.com and open dev tools using (Ctrl + Shift + I or F12)
(NOTE: Here we have categorized safesquid.com into a private/ custom category. If you are unknown on how to categorize website please check our post How categorize websites )
image

www.safesquid.com belongs to private category “SafeSquid”

image

Check web category for api.hubspot.com which is a dependency website for www.safesquid.com.
api.hubspot.com belong to custom category “SafeSquid” along with its own category.

api.hubspot.com was added to “SafeSquid” because it was referred by www.safesquid.com
image

Search for the URL https://api.hubspot.com/livechat-public/v1/… in a different tab and look for its category.
Category for api.hubspot.com is just “Business”.

image

You can create custom web category with ‘.’ .custom_category to exclude dynamic categorization.

Advantage of excluding dynamic categorization is when for example you have your webmail which is in a custom category and has full access which and if users receive an email which has suspicious link in it will be excluded from dynamic categorization if the webmail is in the .custom_category.