Page 1 of 1

Allow Specific Email ID To Login To Linked In

Posted: Mon Jun 24, 2019 12:22 pm
by samidha
I want, specific Email ID can only login into LinkedIn? :roll:
All other user should get block template while login into LinkedIn.

Re: Allow Specific Email ID To Login To Linked In

Posted: Mon Jun 24, 2019 12:23 pm
by samidha
Yes, we can create policies in SafeSquid where we can block all users to login into a particular website or to all websites.
As well as the other way around block specific users to login to particular website.
To do so we need to use Content Modifier feature of SafeSquid-SWG.

You want specific Email ID can only login into LinkedIn.
First you Identify the Post Request that LinkedIn use to POST Authentication Details.
Note: SafeSquid already provides a set of Application Signatures
Which can easily Identify LinkedIn Login Features.

Re: Allow Specific Email ID To Login To Linked In

Posted: Mon Jun 24, 2019 12:23 pm
by samidha
Yes, I create a policy into SafeSquid Proxy such a way that all the users will be blocked on LinkedIn except User: umashankar.gutti@gmail.com can only login to LinkedIn.

Create a Profile to Identify LinkedIn Login underRestriction Policies : Access Policies as Show below:
Select Linkedin Login from Request-Types Magic Suggest List
Request-Types: “Linkedin Login” -> This will identify the Application
Give it a Name [PERMITTED LINKEDIN LOGINS]
Policy 1
image.png
image.png (59.23 KiB) Viewed 1959 times
Create Policies under Content Modifiers >> Rewriting Policies
In first policy we forbid all users to login into LinkedIn.
For each allowed Email ID create a Rewriting Policy to re-modify the POST data.
Session_key is a field which carries users Email ID replace with SafeSquid_session_key.
Policy 2 :

In second policy we will allow user: umashankar to login to LinkedIn.
Policy 3 :

image.png
image.png (77.7 KiB) Viewed 1959 times

Re: Allow Specific Email ID To Login To Linked In

Posted: Mon Jun 24, 2019 12:23 pm
by samidha
To Allow another user to Login to LinkedIn just duplicate the s third policy and change the value for ‘safesquid_session_key’ and ‘session_key’ as the EMAIL Id
For Example :
EMAIL ID: aashish.bhandari97@gmail.com CONVERT IT TO aashish\.bhandari%40gmail.com
NOTE :
‘.’ Needs to be replaced using ‘\.’ And for ‘@’ replace with ’%40’
You can also refer the example below:

This Policy is created to Allow Login to EMAIL ID: samidha.k89@gmail.com

Enabled : TRUE
Comment : We will allow user: samidha to login to LinkedIn.
Profiles : PERMITTED FACEBOOK LOGINS
Pattern : safesquid_email=samidha\.k89%40gmail\.com
Replace : email=samidha\.k89%40gmail\.com
Applies to : POST