问:www.lyliansou.com 我想屏蔽127.0.0.1这个ip应该怎么弄 ,www.lyliansou.com 我想屏蔽ip应该怎么弄
答:您好,
请参看https://www.west.cn/faq/list.asp?unid=681 教程windows2008部分屏蔽IP,非常感谢您长期对我司的支持!
问:<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="band ip" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(127.0.0.1)" />
</conditions>
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
我直接这样写可以吗
答:您好,
是的,屏蔽127.0.0.1 IP,非常感谢您长期对我司的支持!
问:想屏蔽几个指定IP 咋弄
答:您好,可以参考教程https://faq.myhost.net/faq/listagent.asp?unid=681 windows2008下规则去屏蔽的,非常感谢您长期对我司的支持!
问:你好,我在根目录的web.config文件中禁止几个ip其中127.0.0.1是我的服务器ip,但是我服务器用浏览器仍然可以打开。请问还有其他方法吗
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="band ip" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}&%{HTTP_X_Real_IP}" pattern="(127.0.0.1|127.0.0.1|127.0.0.1|127.0.0.1|127.0.0.1|127.0.0.1|127.0.0.1)" />
</conditions>
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuratio
答:您好,这个规则是生效的,现在能访问是您使用了第三方CDN有缓存,单独访问http://www.dfjdyy.com/x.php 都是提示访问不到,同时您屏蔽错误了,屏蔽了我司对接港台地址的IP,这样会导致访问不了,现在给您取消,您可以在网站上安装访问统计,通过访问统计查看真实的访问IP去屏蔽,非常感谢您长期对我司的支持!