Home  >  Article  >  Backend Development  >  如果记录爬虫

如果记录爬虫

WBOY
WBOYOriginal
2016-06-06 20:17:311240browse

看到ecshop有个爬虫记录插件,记录哪个搜索引擎爬了哪个页面,但我对ECSHOP又不了解,又样知道这功能实现方式。
某个页面,如何判断是用户访问还爬虫访问?是哪个爬虫?

----------已解决,通过 HTTP_USER_AGENT ----------

"Baiduspider",
"Googlebot",
"360Spider",
"Sosospider",
"sogou spider"

回复内容:

看到ecshop有个爬虫记录插件,记录哪个搜索引擎爬了哪个页面,但我对ECSHOP又不了解,又样知道这功能实现方式。
某个页面,如何判断是用户访问还爬虫访问?是哪个爬虫?

----------已解决,通过 HTTP_USER_AGENT ----------

"Baiduspider",
"Googlebot",
"360Spider",
"Sosospider",
"sogou spider"

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