我想澄清webconfig文件中的安全标签 [英] I want to clarify security tag in webconfig file
本文介绍了我想澄清webconfig文件中的安全标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在我的应用程序中,仅允许基于IP地址的用户列表.我在web.config文件中编写代码为
In my application, I am allow only list of users based on IP address. I am writing a code in web.config file as
<system.webServer>
<security>
<ipSecurity allowUnlisted ="false" >
<!--blocks every one unless the ip address in list-->
<clear/>
<add ipAddress ="192.0.0.110" allowed ="true"/>
<add ipAddress ="192.168.78.0" subnetMask ="255.255.255.0" allowed="true" />
<add ipAddress ="193.167.89.0" subnetMask ="255.255.255.0" allowed ="true"/>
</ipSecurity>
</security>
但它不起作用,它允许每个用户使用.我不知道为什么会这样?
谁能使我满意?或也建议我不同的想法.
在此先感谢您.
but it is not working.It allow every users. I don''t know why it is happened?
Can Any one explian me? or suggest me different idea also.
Thanks in advance.
推荐答案
您是否已将IP安全性作为站点的一部分启用?
见本页; http://www.iis.net/configreference/system.webserver/security/ipsecurity/add [^ ]
Have you enabled IP Security as part of the site?
See this page; http://www.iis.net/configreference/system.webserver/security/ipsecurity/add[^]
这篇关于我想澄清webconfig文件中的安全标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文