0

I am trying to access a site that is asking to verify that it is human accessing the site the tool used by the site is cloudflare

I use the user-agent to access the sites and so far I haven't had any problems, but with the current site I'm facing this barrier and there's a detail I configured a 100 second sleep to do the recognition manually and even so the site recognizes that webdrive is a robot.

options.add_argument('--user-agent="Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; Microsoft; Lumia 640 XL LTE) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Mobile Safari/537.36 Edge/12.10166"')

Felipe
  • 195
  • 6
  • 2
    There were some attempts to bypass cloudflare (and maybe are successful, e.g. [this](https://stackoverflow.com/questions/71518406/how-to-bypass-cloudflare-browser-checking-selenium-python)), but the process is still painful and should not be considered as reliable for automating purposes – sudden_appearance Jan 14 '23 at 22:30
  • Okay, you look into it, thanks for the feedback. – Felipe Jan 15 '23 at 18:23

2 Answers2

0

Maybe changing your public IP address would work. I had this issue before and struggled with headers and drivers. But this varied from website to website though.

  • 1
    I believe this does not work, as they detect that the connection is made through an optimized browser. – Felipe Jan 29 '23 at 14:43
0

Try undetected-chromedriver pip package which is designed to be undetected to the most of antibot services:

Optimized Selenium Chromedriver patch which does not trigger anti-bot services like Distill Network / Imperva / DataDome / Botprotect.io Automatically downloads the driver binary and patches it.

Jurakin
  • 832
  • 1
  • 5
  • 19
  • Thanks at first everything went well, this library works on the systematic table of selenium basic from what I noticed. – Felipe Jan 29 '23 at 14:52