undetected-chromedriver icon indicating copy to clipboard operation
undetected-chromedriver copied to clipboard

[NODRIVER] Bot detected in headless mode by user agent

Open FRIKIdelTO opened this issue 5 months ago • 4 comments

nodriver is easily detectable in headless mode because the user agent is not patched:

browser.info.get("User-Agent")
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/127.0.0.0 Safari/537.36

How to fix this without setting a specific user agent in browser_args?

Also, I would like to know if there is any equivalent method to execute_script()

FRIKIdelTO avatar Sep 02 '24 12:09 FRIKIdelTO