0

I have to make my testing script visit a website that is protected with cloudflare, but I can't get past.

Needs to review the security of your connection before proceeding

Using:

  • Browser : Firefox
  • Code : Python with Selenium

Things which I have tried:

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.service import Service

profile=""

option = webdriver.FirefoxOptions()
option.binary_location = r'C:\Program Files\Mozilla Firefox\firefox.exe'

option.set_preference("dom.webdriver.enabled", False)
option.set_preference('useAutomationExtension', False)

browser = webdriver.Firefox(options=option)

browser.get('https://nowsecure.nl/')

But I always get "needs to review the security of your connection before proceeding."

References: How can I make a Selenium script undetectable using GeckoDriver and Firefox through Python?

halfer
  • 19,824
  • 17
  • 99
  • 186
miiulzz
  • 1
  • 2
  • Don't think that's possible with firefox for now. I'd recommand you to use [Selenium-Profiles](https://github.com/kaliiiiiiiiii/Selenium-Profiles) or undetected-chromedriver for now, which both use chrome – kaliiiiiiiii Jan 30 '23 at 12:27

0 Answers0