1

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?

Yun
  • 1,032
  • 7
  • 20

2 Answers2

0

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 or the Navigator interface. You can find a couple of relevant discussions in:

undetected Selenium
  • 183,867
  • 41
  • 278
  • 352
  • Thanks for your answer. I know how to prevent selenium selenium detection (your answer in another post is helpful). But I want to know how did the website detect with $cdc_? – Yun Aug 04 '20 at 02:03
  • @Yun can you post the link for how you successfully detect Selenium? – Ricky Jun 26 '22 at 12:57
0

That is quite simple.


function getCDC(){ 
    let matches = []
    for(let prop in window) {
       prop.match(/cdc_[a-z0-9]/ig) && matches.push(prop)
    }
    return matches 
}

enter image description here