Home >php教程 >php手册 >PHP屏蔽蜘蛛访问代码及常用搜索引擎的HTTP_USER_AGENT

PHP屏蔽蜘蛛访问代码及常用搜索引擎的HTTP_USER_AGENT

WBOY
WBOYOriginal
2016-06-06 20:32:071574browse

屏蔽蜘蛛相信每一位站长都不希望这样做吧,因为蜘蛛的访问就没有用户的浏览,直接会给我们带来一定损失,不过也有例外,某些网站就不希望被蜘蛛爬行,接下来为你介绍屏蔽蜘蛛的php代码

PHP屏蔽蜘蛛访问代码代码

常用搜索引擎名与 HTTP_USER_AGENT对应值

百度baiduspider

谷歌googlebot

搜狗sogou

腾讯SOSOsosospider

雅虎slurp

有道youdaobot

Bingbingbot

MSNmsnbot

Alexais_archiver

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn