Block specific users from logging into Facebook or Gmail
Restrict which users can log into Facebook or Gmail; only selected users can log in; all others are blocked.
Prerequisites
HTTPS Inspection should be enabled in SafeSquid. If not enabled, see the document - How to enable HTTPS Inspection.
Access the SafeSquid User Interface

Go to Search

Search policy: "BLOCK PARTICULAR USER LOGIN"

Go to Content Modifier: Rewrite Policies


Ensure Global Section with Enabled TRUE



Go to Rewrite Policies and make it Enable



Enter Username inside Pattern


Search policy: "BLOCK PARTICULAR USER LOGIN"

Go to Access Profiles to Enable




To test
Go to Facebook and Login
Try login to your Facebook account it will show you the below page:

Go to Gmail and login
Try login to your Gmail account it will show you the below page:
