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.57k stars 1.14k forks source link

Cloudflare detecting UC immediately #672

Open ENUM1 opened 2 years ago

ENUM1 commented 2 years ago

Only recently have I been unbale to load the following website

import undetected_chromedriver.v2 as uc

    CH_option = uc.ChromeOptions()
    #CH_option.add_argument("disable-popup-blocking")
    CH_option.add_argument("--window-size=1920,1080")
    CH_option.add_argument('--no-sandbox') 
    CH_option.add_argument('--disable-gpu')
    CH_option.add_argument('--disable-dev-shm-usage')

    # instantiate the driver 
    driver = uc.Chrome(options=CH_option)

    url = 'https://www.oddschecker.com/horse-racing/'

    driver.get(url)

image

sebdelsol commented 2 years ago

Except it works like a charm for me... Your IP (or profile) has very probably been flagged. Please be aware that undetected-chromedriver won't prevent sites detecting your script behaving like a bot.

ENUM1 commented 2 years ago

interesting, thanks @sebdelsol

I've tried on two machines along with some VPNs and still the same issue.

ThomasTrovon commented 2 years ago

Here open normally.. I just do:

import undetected_chromedriver as uc

def conectar():
    url = 'https://www.oddschecker.com/horse-racing'

    driver = uc.Chrome()
    driver.get(url)

And worked...

image

It worked with v2 too:

image

RestOp commented 2 years ago

Only recently have I been unbale to load the following website

import undetected_chromedriver.v2 as uc

    CH_option = uc.ChromeOptions()
    #CH_option.add_argument("disable-popup-blocking")
    CH_option.add_argument("--window-size=1920,1080")
    CH_option.add_argument('--no-sandbox') 
    CH_option.add_argument('--disable-gpu')
    CH_option.add_argument('--disable-dev-shm-usage')

    # instantiate the driver 
    driver = uc.Chrome(options=CH_option)

    url = 'https://www.oddschecker.com/horse-racing/'

    driver.get(url)

image

As i know it is just fixed geo ip block from cloudflare. With normal browser and same ip you will be also blocked. Try it. I use proxy as workaround.