Apache配置文件代码。xwamp:Windows下搭建Apache + PHP + MySQL环境
<Location /> SetEnvIfNoCase User-Agent ".*(ZmEu|BLEXBot|MJ12bot|AhrefsBot|ChinasoSpider|DotBot|megaindex)" BADBOT Order allow,deny Allow from all deny from env=BADBOT </Location>
经过测试是有效的,大家可以试一下。这个是直接放在配置文件里的。以上代码资源来自:http://www.xwamp.com/learn/9。
时间: 2024-10-06 19:36:49