How to find the $cdc_ (chromedriver params) in website?

女生的网名这么多〃 提交于 2020-11-25 03:43:58

问题


About this post: Can a website detect when you are using selenium with chromedriver?

Some website could detect chromedriver using $cdc_xxxxxxxxxx. 

I have ever found this parameter on website through Chrome DevTools (maybe document,network,etc.) when I used selenium to open browser.

But I forgot where it appeared.

I want to know how the website get this parameters of chromedriver?


回答1:


The question Can a website detect when you are using selenium with chromedriver? doesn't mentions about $cdc_xxxxxxxxxx anyway. However there are a couple of answers which does refers to $cdc_xxxxxxxxxx

From the answers referring to $cdc_xxxxxxxxxx it is quite apperant it is a variable within ChromeDriver executable code and Chromium / ChromeDriver team will be in the best position to answer about the usage of this variable.


Selenium perspective

As far as Selenium is concerned:

  • Selenium automates browsers. That's it!
  • What you do with that power is entirely up to you.

Finally, I would recommend you, instead of looking into the $cdc_xxxxxxxxxx variable you can look at some other aspects like, the user-agent or the Navigator interface. You can find a couple of relevant discussions in:

  • Can a website detect when you are using selenium with chromedriver?
  • Selenium webdriver: Modifying navigator.webdriver flag to prevent selenium detection


来源:https://stackoverflow.com/questions/63228073/how-to-find-the-cdc-chromedriver-params-in-website

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!