How To Bypass webdriver navigator in python selenium and make firefox undetectable

baldeepo

Junior Member
Joined
Apr 25, 2013
Messages
119
Reaction score
28
I want to make my webdriver undetectable but everytime i run my code it detect my webdriver and giving webdriver this info.I want that it should give present to not present web driver.

i want from this status to

WebDriver (New)present (failed)

This status

WebDriver (New)pass

in https://bot.sannysoft.com/

I know how to make chrome undetectable using code but dont know how to make firefox webdriver undetectable.I only want to use firefox because it support emoji but chrome does not support and give me error.

so i tried code below, but it is not working. Please let me know how i can bypass detection of webdriver.

profilepath = 'C:\\Users\\username\\AppData\\Roaming\\Mozilla\\Firefox\\Profiles\\yl2v48kr.account6'
profile = webdriver.FirefoxProfile(profilepath)
profile.set_preference("useAutomationExtension", False)
profile.set_preference("dom.webdriver.enabled", False)
profile.update_preferences()
desired = DesiredCapabilities.FIREFOX
options = Options()

driver = webdriver.Firefox(firefox_profile=profile , executable_path=r'C:\\Program Files (x86)\\geckodriver.exe' , desired_capabilities=desired)
time.sleep(10)
driver.execute_script("Object.defineProperty(navigator, 'webdriver', {get: () => undefined})");
driver.get("https://github.com")
driver.get("https://bot.sannysoft.com/")
 
You could try reading this:
https://github.com/berstend/puppeteer-extra/tree/master/packages/extract-stealth-evasions#readmehttps://github.com/go-rod/stealth
Tried and tested on golang, works perfectly.

1674688154974.png
 
Guys.. bot.sannysoft.com is old and outdated more than a few years back..

All I can suggest, if your game is serious, don't go for selenium. Get stealth browser and use puppeteer.
Any chance of a demo full step via, step please be nice.
 
You probably need to read my post above.
https://github.com/berstend/puppeteer-extra/tree/master/packages/puppeteer-extra-plugin-stealth
I am already using that plugin. The question was, is Registration still required to be done on a Multi Login Software (like MultiLogin/GoLogin etc)
 
Back
Top