undetected-chromedriver icon indicating copy to clipboard operation
undetected-chromedriver copied to clipboard

Do Not Track and Enhanced Security

Open AeonDave opened this issue 1 year ago • 1 comments

Is possible to activate in some way the "Do Not Track" option and raise security to "Enhanced" in order to lower fingerprint profile?

Ty!

AeonDave avatar Mar 01 '24 15:03 AeonDave

Use experimental options and set enable_do_not_track to True. Keep in mind though that Do Not Track is enabled in undetected_chromedriver by default, so setting this to true won't actually change anything.

Example:

import undetected_chromedriver as uc

chrome_options = uc.ChromeOptions()

chrome_options.add_experimental_option("prefs", {"enable_do_not_track": True})

driver = uc.Chrome(options=chrome_options)

timbeh avatar Mar 03 '24 14:03 timbeh