Mega Code Archive

 
Categories / ASP.Net Tutorial / Authentication Authorization
 

Use the location element to apply configuration settings to a particular subfolder

File: Web.Config <configuration>   <system.web>     <authentication mode="Forms" />   </system.web>   <location path="SecretFiles">     <system.web>       <authorization>         <deny users="?"/>       </authorization>     </system.web>   </location> </configuration>