IIS 基本授权 ala .htaccess/.htpasswd in apache

Dmi*_*try 7 iis authentication .htaccess htpasswd http-basic-authentication

我如何实现页面保护(asp.net mvc 应用程序),所以当我点击主页或应用程序中的任何其他页面时,我会在浏览器中弹出登录对话框

我正在寻找类似于 Apache.htaccess并且.htpasswd正在做的事情。

我有 IIS 7.5/Windows Server 2008 R2 网络版。

Ola*_*laf 2

在 IIS 管理器中的“站点”->“您的站点”->“身份验证”中,您可以禁用“匿名身份验证”并启用“基本身份验证”或任何适合您网站的 HTTP 401 质询。