issue when run code in RDP or VPS while bypassing cloudflare #3334
Replies: 1 comment 4 replies
-
update
use cdp and for vps you have to use xvfb |
Beta Was this translation helpful? Give feedback.
-
update
use cdp and for vps you have to use xvfb |
Beta Was this translation helpful? Give feedback.
-
i have issue when i try to run simple code that, for example
`from seleniumbase import SB
with SB(uc=True, test=True, incognito=True, locale_code="en") as sb:
url = "https://ahrefs.com/website-authority-checker"
input_field = 'input[placeholder="Enter domain"]'
submit_button = 'span:contains("Check Authority")'
sb.uc_open_with_reconnect(url) # The bot-check is later
sb.type(input_field, "github.com/seleniumbase/SeleniumBase")
sb.reconnect(0.1)
sb.uc_click(submit_button, reconnect_time=4)
sb.uc_gui_click_captcha()
sb.wait_for_text_not_visible("Checking", timeout=12)
sb.highlight('p:contains("github.com/seleniumbase/SeleniumBase")')
sb.highlight('a:contains("Top 100 backlinks")')
sb.set_messenger_theme(location="bottom_center")
sb.post_message("SeleniumBase wasn't detected!")
`
In RDP or VPS, it is not able to bypass cloudflare, and when I run the same code in local, it will work properly.
I am not able to find what the issue is. Can anyone guide me to find the issue?
I run this code savral time in my local system, and it will work fine but not in VPS.
also same like if i run
`
from seleniumbase import Driver
driver = Driver(uc=True)
url = "https://gitlab.com/users/sign_in"
driver.uc_open_with_reconnect(url, 4)
driver.uc_gui_click_captcha()
driver.quit()
`
in local system without uc_gui_click_captcha, it is able to bypass, but in VPS it is not working.
Beta Was this translation helpful? Give feedback.
All reactions