繁体   English   中英

web.config中如何限制IP地址 IIS 10 Windows Server 2016

[英]How to restrict IP addresses in web.config IIS 10 Windows Server 2016

Windows 服务器 2016 IIS 10

我在 web.config 中有这个

<security>
    <ipSecurity allowUnlisted="true">
        <clear />
        <add ipAddress="xx.xx.x.x" />
    </ipSecurity>
</security>

我也在 ApplicationHost.config 中设置了

section name="ipSecurity" overrideModeDefault="Allow"

我还为 IIS 安装了 IP 和域限制角色

但是,它仍然不起作用。

有什么我想念的吗?

添加拒绝 IP 地址后,单击Edit Feature Settings...和 select Allow for Access for unspecified clients 单击OK

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM