ultrafunkamsterdam / undetected-chromedriver

Custom Selenium Chromedriver | Zero-Config | Passes ALL bot mitigation systems (like Distil / Imperva/ Datadadome / CloudFlare IUAM)
https://github.com/UltrafunkAmsterdam/undetected-chromedriver
GNU General Public License v3.0
9.15k stars 1.1k forks source link

Doesn't bypass cloudflare in headless mode #295

Open wisaac407 opened 2 years ago

wisaac407 commented 2 years ago

When in headless mode it's unable to bypass cloudflare

Not headless

import undetected_chromedriver.v2 as uc

driver = uc.Chrome()
with driver:
    driver.get('https://nowsecure.nl/')
print(driver.title)
driver.quit()

Output:

nowSecure

Headless

import undetected_chromedriver.v2 as uc

driver = uc.Chrome(headless=True)
with driver:
    driver.get('https://nowsecure.nl/')
print(driver.title)
driver.quit()

Output:

Please Wait... | Cloudflare
miladrajabi2002 commented 2 years ago

I have the same problem cant bypass cloudflare

python3.9 Google Chrome 93.0.4577.63 ChromeDriver 93.0.4577.15 centos 7

HMaker commented 2 years ago

Search issues and you will find headless works only for naive antibots, see https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/258