Skip to main content

Block Particular User Login to Facebook or Gmail

Overview

In corporation you have to restrict login usernames from Facebook and Gmail.Except selected users all can able to login into Facebook or Gmail.

Prerequisites

HTTPS Inspection should be enabled in SafeSquid. If not enabled, you can check our document - How to enable HTTPS Inspection.

Access the SafeSquid User Interface

click on configure in safesquid interface

click on search in access profiles section

Search policy: "BLOCK PARTICULAR USER LOGIN"

search for " BLOCK PARTICULAR USER LOGIN " default policy

Go to Content Modifier: Rewrite Policies

showing search results for "BLOCK PARTICULAR USER LOGIN " in Content modifier section

click on content modifier from the sidebar under Real Time content Security

Ensure Global Section with Enabled TRUE

ensuring the global section set as true

selecting true in global if it is set to false

click on submit to save the policy

Go to Rewrite Policies and make it Enable

going in "Rewriting policies " to enable "BLOCK PARTICULAR USER LOGIN" policy

editing the policy

setting true value in enabled

Enter Username inside Pattern

entering the desired username pattern

click on save to save the policy

Search policy: "BLOCK PARTICULAR USER LOGIN"

searching for policy "BLOCK PARTICULAR USER LOGIN "

Go to Access Profiles to Enable

going to access profile to enable the policy

clicking on edit policy to edit the policy

selecting true to enable it

save the policy

To test

Go to Facebook and Login

Try login to your Facebook account it will show you the below page:

testing the policy

Go to Gmail and Login

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

testing the policy by login

Feedback