ASP.NET web.config security


/ Published in: ASP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. Goes in order until first match found
  2.  
  3.  
  4. <location>
  5. <system.web>
  6. <authorization>
  7. <allow roles="Admin"/>
  8. <deny users="*"/>
  9. </authorization>
  10. </system.web>
  11. </location>
  12.  
  13. allow, deny
  14.  
  15. users, ex: users="Jeff"
  16.  
  17. "*" = all "?" = anonymous

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.