Password protect ASP.NET web application in IIS 7.5

后端 未结 2 1559
醉酒成梦
醉酒成梦 2021-02-13 05:06

I use IIS 7.5 on windows 7 to serve my asp.net websites for testing purposes. In order to stop random people viewing my websites I want IIS to require a username and password be

2条回答
  •  情深已故
    2021-02-13 05:53

    You need "Basic Authentication":

    1. Open Internet Information Services (IIS) Manager:

      • If you are using Windows Server 2008 or Windows Server 2008 R2:

        On the taskbar, click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager.

      • If you are using Windows Vista or Windows 7:

        On the taskbar, click Start, and then click Control Panel. Double-click Administrative Tools, and then double-click Internet Information Services (IIS) Manager.

    2. In the Connections pane, expand the server name, expand Sites, and then click the site, application or Web service for which you want to enable basic authentication.

    3. Scroll to the Security section in the Home pane, and then double-click Authentication.
    4. In the Authentication pane, select Basic Authentication, and then, in the Actions pane, click Enable.
    5. In the Authentication pane, select Anonymous Authentication, and then click Disable in the Actions pane.

    Screenshot of above settings

    quoted from Basic Authentication How To

提交回复
热议问题