标签:
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。
标签:
原文地址:http://www.cnblogs.com/osfipin/p/5155359.html