wkeeling / selenium-wire

Extends Selenium's Python bindings to give you the ability to inspect requests made by the browser.
MIT License
1.9k stars 254 forks source link

selenium wire v2 undetected driver not working properly #429

Closed KhushC-03 closed 2 years ago

KhushC-03 commented 2 years ago

selenium wire v2 undetected driver cannot bypass cloudflare unlike the undetected driver found here (https://github.com/ultrafunkamsterdam/undetected-chromedriver)

wkeeling commented 2 years ago

Thanks for raising this.

Yes unfortunately undetected chromedriver + Selenium Wire is not 100% effective in preventing bot detection. The reason comes down to TLS fingerprinting. Selenium Wire works by sending traffic through an internal proxy server it starts in the background. This means that the traffic has a different TLS fingerprint when it reaches the server than that of a browser running pure Selenium or undetected chromedriver. The server (e.g. Cloudflare) can see that the fingerprint is non-standard and throws up bot detection measures. You could try running the Tor Browser which is designed to prevent websites from fingerprinting.