Skip to content

proxy detection on selenium base  #1795

@ahmedabdelhamedz

Description

@ahmedabdelhamedz
from seleniumbase import SB
import time
from time import sleep
import random
import string



def random_char1(y):
    return ''.join(random.choice(string.ascii_lowercase) for x in range(y))
m = (random_char1(7) + '-' + random_char1(7))

with SB(uc=True, user_data_dir=f"F:\\{m}",proxy = "eqmhgmmg:oh75ju0coss2@45.72.53.102:6138") as sb:
    cdc_props = sb.driver.execute_script('const j=[];for(const p in window){'
                                         'if(/^[a-z]{3}_[a-zA-Z0-9]{22}_.*/i.test(p)){'
                                         'j.push(p);delete window[p];}}return j;')
    if len(cdc_props) > 0:
        cdc_props_js_array = '[' + ','.join('"' + p + '"' for p in cdc_props) + ']'
        sb.driver.execute_cdp_cmd('Page.addScriptToEvaluateOnNewDocument',
                                  {'source': cdc_props_js_array + '.forEach(k=>delete window[k]);'})
        
    sleep(5000)

hello please in the code above i connected seleniumbase with proxy but proxy was detected as extension on chrome browser i want to know how to do the following :

1- how can i prevent chrome from detection that i use proxy through extensions
2-in [(chrome://version/) how can disappear that i am using proxy

i want to make proxy undetectable as many anti detection software for example : multi login , go login , incogniton , morelogin,

if possible can you tell me these softwares built by which programming language ,

are there an online source how can i built like these softwares please ?

i have upload 3 pictuers to clarify the problems

[](https://ibb.co/NYqFbnL)

[](https://ibb.co/FbyCsn1)

[](https://ibb.co/C2McNzc)

Metadata

Metadata

Assignees

No one assigned

    Labels

    UC Mode / CDP ModeUndetected Chromedriver Mode / CDP ModequestionSomeone is looking for answers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions