I am running chrome driver over selenium on a ubuntu server . behind a residential proxy network . yet my selenium is being detected . is there a way to make chrome driver and selenium 100% undetectable ?
I have been trying for so long I lost track of the many things I have done including
- trying different versions of chrome 2)adding several flags and removing some words from the chrome driver file. 3)ruining it behind a proxy . residential ones also . using incognito mode . 4)loading profiles . 5)random mouse movements . 6)randomised everything
I am looking for a true version of selenium that is 100% undetectable . if that ever existed .or another automation way that is not detectable by bot trackers .
this is part of the starting of the browser
sx = random.randint(1000,1500) sn = random.randint(3000,4500) display = Display(visible=0, size=(sx,sn)) display.start() randagent = random.randint(0,len(useragents_desktop)-1) uag = useragents_desktop[randagent] #this is to prevent ip leaking preferences = "webrtc.ip_handling_policy" : "disable_non_proxied_udp", "webrtc.multiple_routes_enabled": False, "webrtc.nonproxied_udp_enabled" : False chrome_options.add_experimental_option("prefs", preferences) chrome_options.add_argument("--disable-dev-shm-usage") chrome_options.add_argument("--no-sandbox") chrome_options.add_argument("--disable-impl-side-painting") chrome_options.add_argument("--disable-setuid-sandbox") chrome_options.add_argument("--disable-seccomp-filter-sandbox") chrome_options.add_argument("--disable-breakpad") chrome_options.add_argument("--disable-client-side-phishing-detection") chrome_options.add_argument("--disable-cast") chrome_options.add_argument("--disable-cast-streaming-hw-encoding") chrome_options.add_argument("--disable-cloud-import") chrome_options.add_argument("--disable-popup-blocking") chrome_options.add_argument("--ignore-certificate-errors") chrome_options.add_argument("--disable-session-crashed-bubble") chrome_options.add_argument("--disable-ipv6") chrome_options.add_argument("--allow-http-screen-capture") chrome_options.add_argument("--start-maximized") wsize = "--window-size=" + str(sx-10) + ',' + str(sn-10) chrome_options.add_argument(str(wsize) ) prefs = {"profile.managed_default_content_settings.images": 2} chrome_options.add_experimental_option("prefs", prefs) chrome_options.add_argument("blink-settings=imagesEnabled=true") chrome_options.add_argument("start-maximized") chrome_options.add_argument("user-agent="+uag) chrome_options.add_extension(pluginfile)#this is for the residential proxy driver = webdriver.Chrome(executable_path="/usr/bin/chromedriver", chrome_options=chrome_options)