爬虫频繁更换用户代理(UA)和IP能绕过反爬虫机制吗?
创始人
2024-11-14 00:33:42
0

今天捕捉到一个网页爬虫,IP地址为:110.42.66.212,UserAgent在短短2小时内换了17个,抓取了62个页面,因触发反爬规则被封。

序号UserAgent
1Googlebot/2.1+(+http://www.googlebot.com/bot.html)
2(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html)
3AppleWebKit/534.46+(KHTML,like+Gecko)+Version/5.1+Mobile+Safari/10600.6.3
4Sogou+Push+Spider/3.0(+http://www.sogou.com/docs/help/webmasters.htm#07)
5Mozilla/5.0+(compatible;+Googlebot/2.1;++http://www.google.com/bot.html)
6Mozilla/4.0+(compatible;+MSIE+9.0;+Windows+NT+6.1)
7Python-urllib/3.10
8iaskspider/2.0(+http://iask.com/help/help_index.html)
9Sogou+web+spider/3.0(+http://www.sogou.com/docs/help/webmasters.htm#07)
10Mozilla/5.0+(compatible;+Yahoo!+Slurp;+http://help.yahoo.com/help/us/ysearch/slurp??)
11Googlebot/2.1+(+http://www.google.com/bot.html)
12Mozilla/5.0+(compatible;+Yahoo!+Slurp+China;+http://misc.yahoo.com.cn/help.html)
13Mozilla/5.0+(compatible;+Baiduspider/2.0;++http://www.baidu.com/search/spider.html??
14Mozilla/5.0+(Linux;u;Android+4.2.2;zh-cn;)
15Mozilla/5.0+(compatible;+YodaoBot/1.0;+http://www.yodao.com/help/webmaster/spider/;+)
16msnbot/1.0+(+http://search.msn.com/msnbot.htm)
17Mozilla/5.0+(compatible;+iaskspider/1.0;+MSIE+6.0)

我认为频繁更换UA并不能解决爬虫被封的问题。更换IP也不能保证绕过反爬虫机制,因为涉及到抓取频率,如果频率过低,费时长且没有效率,迟早要被反爬虫机制识别;频率过高(比如一秒中抓取两三个页面),则很快就会触发反爬虫规则。

文章来源于尚贤达猎头公司谭工

相关内容

热门资讯

在玩家背景下!wepoker透... 在玩家背景下!wepoker透视有用吗,wepoker破解器激活码,原来存在有挂(确实有挂)一、we...
复盘辅助挂!hhpoker的辅... 复盘辅助挂!hhpoker的辅助是真的吗,aapoker怎么提高中牌率,确实真的是有挂(确实有挂)所...
黑科技插件!wepoker提高... 黑科技插件!wepoker提高好牌率,wepoker私人局规律,一直存在有挂(有挂方法)1、wepo...
现就发布提示!德扑HHpoke... 现就发布提示!德扑HHpoker有挂吗,德普之星透视辅助,都是是真的有挂(有挂透明挂)1)德普之星透...
最新消息!werplan免费挂... 最新消息!werplan免费挂下载,hhpoker有没有作弊挂,本来存在有挂(有挂详细)1、玩家可以...
据通报!wepoker透视有用... 据通报!wepoker透视有用吗,德普之星透视软件免费入口官网,总是存在有挂(有挂猫腻)1、下载好德...
于此同时!红龙poker辅助平... 于此同时!红龙poker辅助平台,pokemomo辅助工具,总是存在有挂(有挂分享)1)红龙poke...
网友热议!wepoker软件辅... 网友热议!wepoker软件辅助程序,wepoker有什么规律,原来是有挂(有挂方式)小薇(辅助器软...
据相关数据显示!hhpoker... 据相关数据显示!hhpoker有没有作弊挂,来玩德州破解器,切实是有挂(确实有挂)在进入hhpoke...
昨日!wepoker怎么看牌型... 昨日!wepoker怎么看牌型,hhpoker有没有作弊辅助,果然是真的有挂(有挂教程)hhpoke...