Can I place a general password on a website?

Discussion in 'General troubleshooting' started by Sergio Tapia, Apr 17, 2012.

  1. I'm currently developing my ASP.Net MVC3 web application. Can I set up some options so that a password is required to view the web page during this development process?

    Context:http://forum.Winhost.com/showthread.php?t=3553

    I don't want anything to show up except this login box for the staging dev website.

    Thanks!
     
    Last edited by a moderator: Oct 14, 2015
  2. Disable anonymous auth on the root should do the trick.

    <system.web>
    <authorization>
    <deny users="?"/>
    </authorization>
    <system.web>
     
  3. oh well yes. if that does not work then I suggest you to create a simple login page and requires all visitor to login.
     

Share This Page