问:如何加IP让访问是空页面,,我忘记了,,我记得是上传一个文件
,加IP让访问是空页面
答:您好,虚拟主机不支持通过ip访问,如您需要屏蔽某个ip的访问,可以参考http://faq.myhost.net/faq/listagent.asp?unid=681 设置屏蔽,非常感谢您长期对我司的支持!
问:我现在用的这个空间是不是用这个
windows2008下 规则文件web.config (手工创建web.config文件到站点根目录)<?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|8.8.8.)" /> </conditions> <action type="AbortRequest" /> </rule> </rules> </rewrite> </system.webServer> </configuration>
答:您好,
不清楚您指的“加IP让访问是空页面”具体是什么意思,请您详细说明下您想要实现的效果,
查看该主机为windows系统,如果您是要屏蔽某个ip访问该站点,可以使用该规则;请您将pattern="(127.0.0.1|8.8.8.)" 屏蔽ip修改为自己想要屏蔽的ip或者ip段;非常感谢您长期对我司的支持!