<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<clear />
<add value="index.html" />
<add value="index.asp" />
</files>
</defaultDocument>
<httpErrors errorMode="DetailedLocalOnly">
<remove statusCode="404"/>
<error statusCode="404" path="/404.asp" responseMode="ExecuteURL"/>
</httpErrors>
<rewrite>
<rules>
<rule name="WWW Redirect" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^baidu.com$" />
</conditions>
<action type="Redirect" url="http://www.baidu.com/{R:0}" redirectType="Permanent" />
</rule>
<rule name="band ip" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="%{HTTP_X_FORWARDED_FOR}&%{REMOTE_ADDR}" pattern="(8.8.4.4|8.8.8.)" />
</conditions>
<action type="AbortRequest" />
</rule>
</rules>
</rewrite>
<directoryBrowse enabled="false" />
</system.webServer>
</configuration>
/etc/httpd/httpd.conf放在第一个站点
<VirtualHost 127.0.0.1:80>
ServerName 服务器ip地址
<Directory />
Order Allow,
Deny Deny from all
</Directory>
</VirtualHost>
1 可以用瑞星防火墙屏蔽IP 2 找到你路由器的管理IP地址进入路由 然后找到安全设置--防火墙设置--开启IP过滤功能 最后进入下面的IP过滤功能下面 输入你要过虑的IP就行了 路由管理IP地址在说明书上有欢迎分享,转载请注明来源:夏雨云
评论列表(0条)