I have an website hosted in our own server?
I have an website hosted in our own server and it can be accessed through public IP. I want to restrict users to browse this website other than organization computers. I tried with MAC address and CPU ID but its not success. How it can be done?
Suthish NairPosted Jul 2, 2012, 1:04 PM
ASP.NET supports various authentication modes, including Windows authentication, Forms authentication, Passport authentication, and custom authentication.
You should choose Windows authentication if your user accounts are maintained by a Active Directory.
The main benefit of using Windows authentication is that it can be coupled with IIS authentication so that you don't have to write any custom code.
Compared to other authentication mechanisms, Windows authentication does not pass the user credentials over the wire. Windows authentication also provides a seamless user experience. Therefore Windows authentication should be used wherever possible.
Refer:
How to implement Windows authentication and authorization in ASP.NET :-
http://support.microsoft.com/kb/323176
hussain baigPosted Jul 4, 2012, 5:07 AM
Thanks for your reply.
I followed the link http://support.microsoft.com/kb/323176 and done one sample application and hosted in server.
The problem i am facing is, the website can be accessed if it is in same domain as server.
The website is not accessing even machine name is correct but in different domain.
Following is the code i had included in web.config.
<authorization>
<allow users="crs\ITD3"/>
<deny users="*"/>
authorization>
Any suggestions please...