当前位置: 首页 > news >正文

哪些网做网站比较好淘宝关键词优化技巧

哪些网做网站比较好,淘宝关键词优化技巧,有哪些网站可以做ppt,公司介绍模板图片背景 最近在使用selenium自动播放学习课程,相信大家也有一些类似的使用场景。 能自动化的事情,绝不自己干。 为防止被检测是机器人做题,刷视频,需要做一些小调整。 先来看作为服务方维护者,是如何检测是Selenium打…

背景

最近在使用selenium自动播放学习课程,相信大家也有一些类似的使用场景。

能自动化的事情,绝不自己干。

为防止被检测是机器人做题,刷视频,需要做一些小调整。

先来看作为服务方维护者,是如何检测是Selenium打开的浏览器,而非一般的活跃用户打开的浏览器。

测试环境

本文的测试环境如下:

Google Chrome 浏览器版本:版本 125.0.6422.77(正式版本) (64 位)

ChromeDriver版本:Chrome for Testing availability

如何检测是否是Selenium打开的浏览器页面

window.navigator.webdriver

直接的方式就是检测navigator的值。如果是selenium打开的web浏览器,则此值为true,或者为false,捉着undefined

 Selenium Page缓存

selenium自身再页面上的缓存有如下特征。

 可以用如下代码检测

function getPageCache(opt_doc) {var doc = opt_doc || document;var key = '$cdc_asdjflasutopfhvcZLmcfl_';
//  var key = 'doggie_';if (!(key in doc))doc[key] = new Cache();return doc[key];
}

如下是一些自动化测试常有的特征检测

runBotDetection = function () {var documentDetectionKeys = ["__webdriver_evaluate","__selenium_evaluate","__webdriver_script_function","__webdriver_script_func","__webdriver_script_fn","__fxdriver_evaluate","__driver_unwrapped","__webdriver_unwrapped","__driver_evaluate","__selenium_unwrapped","__fxdriver_unwrapped",];var windowDetectionKeys = ["_phantom","__nightmare","_selenium","callPhantom","callSelenium","_Selenium_IDE_Recorder",];for (const windowDetectionKey in windowDetectionKeys) {const windowDetectionKeyValue = windowDetectionKeys[windowDetectionKey];if (window[windowDetectionKeyValue]) {return true;}};for (const documentDetectionKey in documentDetectionKeys) {const documentDetectionKeyValue = documentDetectionKeys[documentDetectionKey];if (window['document'][documentDetectionKeyValue]) {return true;}};for (const documentKey in window['document']) {if (documentKey.match(/\$[a-z]dc_/) && window['document'][documentKey]['cache_']) {return true;}}if (window['external'] && window['external'].toString() && (window['external'].toString()['indexOf']('Sequentum') != -1)) return true;if (window['document']['documentElement']['getAttribute']('selenium')) return true;if (window['document']['documentElement']['getAttribute']('webdriver')) return true;if (window['document']['documentElement']['getAttribute']('driver')) return true;return false;
};

去除Selenium特征

去除window.navigator.webdriver

ChromeOptions options = new ChromeOptions();
options.addArguments("--remote-allow-origins=*");
// 移除chrome selenium 特征,window.navigator.webdriver
// chrome 125
options.addArguments("--disable-blink-features=AutomationControlled");
// 关闭界面上的---Chrome正在受到自动软件的控制
options.addArguments("disable-infobars");
WebDriver driver = new ChromeDriver(options);
// 再去打开页面
// driver.get("https://xxxxx.xx.xx.xx")

修改ChromeDriver特征

修改ChromeDriver特征,要么修改源码,再重新编译,要么直接修改二进制代码。本文选择直接修改二进制代码的方式,比较简单。

下载VIM

download : vim online

修改ChromeDriver可执行文件内容,修改之前记得备份下chromedriver.exe

vim.exe chromedriver.exe

将cdc_开头的都替换成你想要的,比如这边我是替换成了doggie 

替换完成保存

%s/cdc_/doggie_/g

当然还有一些伪装自己是活人的办法:

不再深入,后续有机会再玩。

参考文档

https://www.zenrows.com/blog/selenium-avoid-bot-detection#remove-javascript-signiture

https://datadome.co/threat-research/detecting-selenium-chrome/

http://www.yidumall.com/news/58425.html

相关文章:

  • 百度做地图的网站网站搜索关键词优化
  • 忻州 建网站南昌seo网站排名
  • 用vps刷网站流量要怎么做网店运营推广实训
  • 福建省建设厅网站官网辅导机构
  • 个人可以做外贸的网站客户资源买卖平台
  • 网站设计 书籍网络推广内容
  • 佛山做企业网站的公司爱站网seo综合查询
  • 如何制作公司内部网页百度seo优化及推广
  • 高端网站制作 上海精准营销的概念
  • 温州做网站的公司有哪些网站竞价推广都有哪些
  • 重庆科技网站建设快速优化关键词排名
  • 网站建设公司赚钱吗宁波seo推广
  • 企石做网站市场调研的五个步骤
  • 在深圳做网站查网站关键词工具
  • 如何在电影网站中做淘客网络推广 网站制作
  • 有没有免费做门面转让的网站行者seo无敌
  • wordpress给导航添加图片真实有效的优化排名
  • 开发邦app北京网站建设优化
  • 网站建设南京公司网站建设凡科建站手机版登录
  • 做网站用什么系统较好5118网站如何使用免费版
  • 手机网站建设规划书关键词完整版
  • flash建网站教程谷歌关键词排名优化
  • 环境设计案例网站线上广告推广平台
  • 上海专业网站建设公司房地产销售怎么找客户
  • python做公司网站深圳最新疫情最新消息
  • 网站设计面试问题亚马逊开店流程及费用
  • 一直能打开的网站突然打不开网站不收录怎么办
  • 三网站建设百度提交网址多久才会收录
  • 棋牌游戏网站模板下载宁波seo推广联系方法
  • 广州云购网站建设seo优化网站推广专员招聘