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

Cloudflare detecting UC immediately

Open ENUM1 opened this issue 2 years ago • 4 comments

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

ENUM1 avatar Jun 09 '22 13:06 ENUM1

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.

sebdelsol avatar Jun 09 '22 14:06 sebdelsol

interesting, thanks @sebdelsol

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

ENUM1 avatar Jun 09 '22 14:06 ENUM1

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

ThomasTrovon avatar Jun 12 '22 15:06 ThomasTrovon

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.

RestOp avatar Aug 14 '22 09:08 RestOp