web.config中500块ip地址 - 内部服务器错误 [英] Web.config 500 block ipaddress - Internal server error
问题描述
这是我的web.config里面有一些标签为阻止Ipaddress:显示
This is my web.config which has some tags for blocking Ipaddress
<system.webServer>
<defaultDocument enabled="true">
<files>
<clear/>
<add value="Default.aspx"/>
</files>
</defaultDocument>
<modules runAllManagedModulesForAllRequests="true"/>
<security>
<ipSecurity allowUnlisted="false">
<clear/>
<add ipAddress="21.2.22.2" allowed="true"/>
</ipSecurity>
</security>
所以,我的意图是阻止任何其他IP如上所述以外。
以上是唯一的ip地址我想要的网站从访问。
但是,这是我收到的错误
So my intention is to block any other IP except the above. The above is the only Ip address I want the website to be accessible from . But this is the error I am receiving
500 - 内部服务器错误。
存在与你正在寻找的资源的一个问题,它不能被显示。
500 - Internal server error. There is a problem with the resource you are looking for, and it cannot be displayed.
我的网站托管在月球页面。因此,按本 http://www.stokia.com /support/misc/web-config-ip-address-restriction.aspx 这我指的是,IP地址是客户端地址。所以,它不应该有任何与该托管服务提供商。
My website is hosted on lunar pages. So as per this http://www.stokia.com/support/misc/web-config-ip-address-restriction.aspx which I am refering to , the IP address is the client address. So it shouldn't have anything to do with the hosting provider.
感谢您
推荐答案
我怀疑你能做到这一点在web.config中的水平,除非IP和域限制的作用是安装在服务器本身。在这里看到的一篇文章 http://www.iis.net/configreference/system.webserver /安全性/ IPSECURITY
I doubt you can do that at the web.config level unless the "IP and Domain Restrictions" role is installed on the server itself. See an article here http://www.iis.net/configreference/system.webserver/security/ipsecurity
这篇关于web.config中500块ip地址 - 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!