【发布时间】:2016-02-22 15:46:12
【问题描述】:
我有一个使用 IIS 8.5 基本身份验证的简单内部站点。 在一个特定的 html 文件中,我想进一步限制某些用户/角色。
更新:这是我的 Web.config,我仍然可以使用我的 Windows (LDAP) 帐户在浏览器中访问 inhouse.html 文件。我想阻止所有用户访问它。然后只允许少数用户。
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.6" />
<httpRuntime targetFramework="4.6" />
<authentication mode="Windows" />
</system.web>
<location path="inhouse.html">
<system.web>
<authorization>
<remove users="*" roles="" verbs="" />
</authorization>
</system.web>
</location>
</configuration>
【问题讨论】:
标签: security iis web-config iis-8.5