Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Authorizing Files by Location

The location element can apply a set of authorization rules to a folder or page at a particular path. File: Web.Config <configuration>   <system.web>     <authentication mode="Forms" />   </system.web>   <location path="Secret.aspx">     <system.web>       <authorization>         <deny users="?"/>       </authorization>     </system.web>   </location> </configuration>