How to enable Dynamic Categorization

General Information about how to make best use of this forum
India Pratik
Posts: 25
Joined: Fri Jun 10, 2022 7:15 am

How to enable Dynamic Categorization

Post by Pratik » Fri Jul 15, 2022 3:06 pm

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.png
image.png (109.09 KiB) Viewed 1556 times
Go to “Configure”
image.png
image.png (106.07 KiB) Viewed 1556 times
Select “Application Setup”
image.png
image.png (93.37 KiB) Viewed 1556 times
Go to “System configuration”
image.png
image.png (46.14 KiB) Viewed 1556 times
Edit global policy
image.png
image.png (46.67 KiB) Viewed 1556 times
Set “Dynamic Categorization” as “TRUE”
image.png
image.png (81.04 KiB) Viewed 1556 times
image.png
image.png (45.44 KiB) Viewed 1556 times
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.png
image.png (166.8 KiB) Viewed 1556 times
www.safesquid.com belongs to private category “SafeSquid”
image.png
image.png (203.16 KiB) Viewed 1556 times
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.png
image.png (214.11 KiB) Viewed 1556 times
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.png
image.png (103.83 KiB) Viewed 1556 times
You can create custom web category with '.' .custom_category to exclude dynamic categorization.
image.png
image.png (111.71 KiB) Viewed 1556 times
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.