问题
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