Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 8th, 2012  |  syntax: None  |  size: 0.50 KB  |  hits: 11  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ASP.Net MVC 3 what folders are web visible
  2. <!-- Block access to Admin directory -->
  3. <location path="Admin">
  4.     <system.web>
  5.         <authorization>
  6.             <deny users="*" />
  7.         </authorization>
  8.     </system.web>
  9. </location>
  10.        
  11. <?xml version="1.0"?>
  12. <!-- This web.config blocks access to any directory it is put in,
  13.      and its subdirectories -->
  14. <configuration>
  15.     <system.web>
  16.         <authorization>
  17.             <deny users="*" />
  18.         </authorization>
  19.     </system.web>
  20. </configuration>