Allow only one user in ASP.NET using web.config

 

Put the domain in the code below and the user name that you want to give the permission to. This works fine for me. You can add multiple user if you want to by adding the allow tag multiple times.

 

<authentication mode="Windows" />
<authorization>
<allow users="domainname\username" />
<deny users="*" />
</authorization>

Comments

Popular posts from this blog

Sending SMS using HQSMS API in asp.net

Artwork using GIMP 2.6