Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i want to browse my application on specific computers , if other will try to browse it will redirect to index page.
1.i donot like to use cookies
2.i donot like block the ip address
for example i want application browse on ceo and gm system only.

what will be the best option for this purpose.
Posted
Comments
ZurdoDev 12-May-14 9:13am    
You could use FormsAuthentication and check who the user is.
entiresol 12-May-14 9:15am    
i am not talking about user.
ZurdoDev 12-May-14 9:17am    
Then what are you talking about?
Thanks7872 12-May-14 9:23am    
This type of system will not work perfectly all the time. For such purposes, Usernames and passwords were developed.
Kornfeld Eliyahu Peter 12-May-14 13:09pm    
It sound like a problem out of wrong design! Why you should block devices? Block people!!!

You can try using Request.ServerVariables["REMOTE_HOST"]. But, be warned, this doesn't work all the time.

Also, unless those machines have physical security anyone on those machines can see the website.

Also, when those machines are changed out and replaced with new machines, they will probably have different machine names, so you'll have to update your site accordingly.
 
Share this answer
 
Comments
Nandakishore G N 15-May-14 2:30am    
Good point...My 5
Hi,

There are several ways to do the same.

As you required within your organization so you can use LDAP (AD)

How to use AD : http://msdn.microsoft.com/en-us/library/ms180890(v=vs.80).aspx[^]

If you try to use it global purpose then this will not work you can issue some certificate using which you may identify user and apply policy according to that, as certificate is a physical file so you will just sent that certificate to particular user she/he will authenticate them self using that.

Thanks
Suvabrata
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900