Denying all users through the web.config file : authentication « Configuration « ASP.NET Tutorial






<configuration> 
    <system.web>
       <authentication mode="Windows" />
       <authorization>
          <deny users="*" />
       </authorization>
    </system.web>

</configuration>








16.6.authentication
16.6.1.Denying all users through the web.config file
16.6.2.The Node
16.6.3.Allowing a single user through the web.config file
16.6.4.Specify all users with the use of the asterisk (*)
16.6.5.To allow more than one user
16.6.6.web.config file for forms-based authentication
16.6.7.Modifying the web.config file to add username/password values