Skip to main content

Problem

Security teams need predictable control over app and web usage to reduce policy bypass and data-risk exposure.

Benefits

You can enforce policy decisions consistently with SafeSquid while preserving legitimate business workflows.

Advantages

You keep actionable policy control close to operations, with verifiable outcomes in logs and policy behavior.

Call to action

Use the steps in this guide to implement the control, then validate behavior with a real user-flow test.

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

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