When accessing driverpracticaltest website was loading fine initially. After a while, it has now lead to Error 15.
My project itself is rather long and hence will be impractical to paste below, but the code below will suffice as a valid example:
user_agent = "Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
driver = webdriver.Chrome(options=options, version_main=113)
driver.execute_cdp_cmd('Network.setUserAgentOverride', {"userAgent":user_agent })
driver.get("https://driverpracticaltest.dvsa.gov.uk/login")
When running the script, I get the error 15
But, what's more amazing is, when running the same script on another local machine. No error 15 - can browse normally. I suspect This is temporary and will get banned later after long use.
I have also tested the theory with rotating ip address, with and without user-agent and the same pattern follows.
Will running a script inside a rotating vm (different vm per day) be a solution?
update: I have tired the propose solution by #690 and #986 and as rightly pointed by #1210 it no longer works
I am experiencing the same issue. I believe we just have to wait until an update comes for undetected-chromedriver to bypass Imperva. This has happened previously.
When accessing driverpracticaltest website was loading fine initially. After a while, it has now lead to Error 15.
My project itself is rather long and hence will be impractical to paste below, but the code below will suffice as a valid example:
When running the script, I get the error 15
But, what's more amazing is, when running the same script on another local machine. No error 15 - can browse normally. I suspect This is temporary and will get banned later after long use.
I have also tested the theory with rotating ip address, with and without user-agent and the same pattern follows.
Will running a script inside a rotating vm (different vm per day) be a solution?
update: I have tired the propose solution by #690 and #986 and as rightly pointed by #1210 it no longer works