【发布时间】:2014-11-07 15:39:09
【问题描述】:
我需要通过配置文件阻止一个巨大的 IP 列表
<security>
<ipSecurity allowUnlisted="true">
<clear />
<add ipAddress="1.0.1.0" subnetMask="255.255.255.0" />
<add ipAddress="1.0.2.0" subnetMask="255.255.254.0" />
<add ipAddress="1.0.8.0" subnetMask="255.255.248.0" />
<add ipAddress="1.0.32.0" subnetMask="255.255.224.0" />
...
</ipSecurity>
</security>
是否可以将 web.config 中的安全部分添加到外部文件?
【问题讨论】:
-
是的,你可以,谷歌
configSource。 -
@tweray 是的,但它不适用于安全部分
标签: asp.net asp.net-mvc web.config-transform