当前位置:网站首页>如何识别假爬虫?
如何识别假爬虫?
2022-07-31 16:34:00 【oHuangBing】
我们在检查网站日志的时候,经常会遇到各种各样的爬虫。有的是正常的爬虫,例如:搜索引擎爬虫(百度搜索引擎爬虫、Google 搜索引擎爬虫,Bing 搜索引擎爬虫、YandexBot 等),还有一些各种功能的爬虫,可以在这里查看:list crawlers。
但是,互联网上并不是所有的爬虫都是有益的,有些爬虫为了极力隐藏自己,于是就会学习真实爬虫的一些特征。还有一些是假爬虫,也就是伪造那些搜索引擎的爬虫,会来抓取你网站的数据,虽然 User-agent 看起来与搜索引擎的无异,但是 IP 却不属于该搜索引擎的,这个时候据需要我们精准的识别这些假爬虫的 IP 地址。
通过爬虫 IP 查询工具,我们便可以很轻松的识别假爬虫,例如:
34.68.229.128 Mozilla/5.0 (Linux; Android 6.0.1; Nexus 5X Build/MMB29P) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Mobile Safari/537.36 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)
这个是我简化了的日志记录,前面是 IP 地址,后面是访问爬虫的 User-agent ,通过 User-agent 我们可以看出来他是一个 Google 搜索引擎的蜘蛛。
通过查询,我们可以看到这是一个假的 Google 蜘蛛,截图如下:

我们只需要输入假爬虫的 IP 地址,就可以看出来爬虫的一些信息。这样不管是真假李逵(真假爬虫)都逃不出我们的火眼金睛了。
同时如果我们想查看更多的假爬虫,可以到这里去:list crawlers fake bot,整理了互联网上常见的假爬虫。
总结
通过介绍什么是假爬虫,以及如何通过爬虫 IP 查询这个工具,精准识别假爬虫。
边栏推荐
- Golang go-redis cluster模式下不断创建新连接,效率下降问题解决
- 小程序:matlab解微分方程「建议收藏」
- Character pointer assignment [easy to understand]
- Mariabackup implements incremental data backup for Mariadb 10.3
- 研发过程中的文档管理与工具
- MySQL常用语句整理
- [7.28] Code Source - [Fence Painting] [Appropriate Pairs (Data Enhanced Version)]
- Golang——从入门到放弃
- [pytorch] 1.7 pytorch and numpy, tensor and array conversion
- 基于C语言的编译器设计与实现
猜你喜欢

你辛辛苦苦写的文章可能不是你的原创

深度学习机器学习理论及应用实战-必备知识点整理分享

gerrit中如何切换远程服务器

Automated testing - web automation - first acquaintance with selenium

i.MX6ULL driver development | 33 - NXP original network device driver reading (LAN8720 PHY)

Qt practical cases (54) - using transparency QPixmap design pictures

Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong

adb shell error error: device unauthorized

二分查找的细节坑

组合学笔记(六)局部有限偏序集的关联代数,Möbius反演公式
随机推荐
Anaconda如何顺利安装CV2
Foreign media right, apple on May be true in inventory
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)
【Yugong Series】July 2022 Go Teaching Course 022-Dictionary of Go Containers
你辛辛苦苦写的文章可能不是你的原创
在资源管理类中提供对原始资源的访问——条款15
无主复制系统(2)-读写quorum
牛客 HJ19 简单错误记录
Flutter gets the height of the status bar statusbar
6. 使用 Postman 工具高效管理和测试 SAP ABAP OData 服务
组合学笔记(六)局部有限偏序集的关联代数,Möbius反演公式
Automated testing - web automation - first acquaintance with selenium
小程序:matlab解微分方程「建议收藏」
Handling write conflicts under multi-master replication (4) - multi-master replication topology
Replication Latency Case (1) - Eventual Consistency
Smart Trash Can (8) - Infrared Tube Sensor (Raspberry Pi pico)
MySQL multi-table union query
Replication Latency Case (3) - Monotonic Read
T - sne + data visualization parts of the network parameters
Concurrency, Timing and Relativity