Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Option to spoof window.navigator.webdriver? #1031

Open
tim-stephenson opened this issue Mar 27, 2023 · 2 comments · May be fixed by #1037
Open

Option to spoof window.navigator.webdriver? #1031

tim-stephenson opened this issue Mar 27, 2023 · 2 comments · May be fixed by #1037

Comments

@tim-stephenson
Copy link
Contributor

window.navigator.webdriver exposes if a client is "controlled by automation". Potentially sites could treat a crawler differently based on the if the window.navigator.webdriver is true, leading to a crawl less representative of a real user visiting a site. The browser parameter of bot_mitigation already exists, perhaps enabling bot_mitigation should also spoof window.navigator.webdriver to be false?

In short, should this be spoofed to be false (or have there be an option to do so?)

@Giblin91
Copy link

Giblin91 commented Apr 1, 2023

There is this pull request on the matter: #526

@bkrumnow
Copy link

bkrumnow commented Apr 12, 2023

There is this pull request on the matter: #526

Unfortunately, this solution is not ideal. At least, it is known to leave traces in the DOM.

If you are really concerned about detection, you could use changes made in this repository.
It should easily work with OpenWPM v.0.20.0. Also, you can add a recent unbranded Firefox browser from Mozilla, if you do not want to use an older Firefox version.

Details on OpenWPM and bot detection can be found here (preprint).

@vringar vringar linked a pull request Feb 7, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants