当前位置:网站首页>如何识别假爬虫?
如何识别假爬虫?
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 查询这个工具,精准识别假爬虫。
边栏推荐
- Flutter set the background color of the statusbar status bar and APP method (AppBar) internal consistent color.
- 【luogu P8326】Fliper (Graph Theory) (Construction) (Eulerian Circuit)
- Flutter gets the height of the status bar statusbar
- ML.NET related resources
- flutter设置statusbar状态栏的背景颜色和 APP(AppBar)内部颜色一致方法。
- IP protocol from 0 to 1
- 单细胞测序流程(单细胞rna测序)
- Design and Implementation of Compiler Based on C Language
- go图书管理系统
- arm按键控制led灯闪烁(嵌入式按键实验报告)
猜你喜欢
【7.29】Code Source - 【Arrangement】【Stone Game II】【Cow and Snacks】【Minimum Number of Spawns】【Sequence】
使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
The new BMW 3 Series is on the market, with safety and comfort
认识异常 (看完这篇你就懂了)
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
After Effects tutorial, How to adjust overexposed snapshots in After Effects?
【pytorch】1.7 pytorch与numpy,tensor与array的转换
研发过程中的文档管理与工具
Unity 之 图集属性详解和代码示例 -- 拓展一键自动打包图集工具
6-22 Vulnerability exploit - postgresql database password cracking
随机推荐
Multi-datacenter operation and detection of concurrent writes
How to switch remote server in gerrit
SHELL内外置命令
Masterless replication system (1) - write DB when node fails
智能垃圾桶(八)——红外对管传感器(树莓派pico)
复杂高维医学数据挖掘与疾病风险分类研究
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
adb shell 报错error: device unauthorized
JS基础小练习
使用 Postman 工具高效管理和测试 SAP ABAP OData 服务的试读版
tooltips使用教程(鼠标悬停时显示提示)
C语言-函数
牛客 HJ16 购物单
多数据中心操作和检测并发写入
Premiere Pro 2022 for (pr 2022)v22.5.0
无主复制系统(1)-节点故障时写DB
Character pointer assignment [easy to understand]
go图书管理系统
MySQL常用语句整理
多主复制下处理写冲突(3)-收敛至一致的状态及自定义冲突解决逻辑