Skip to content

Question: Why does the README say it's best practice to not use custom UA or headers? #37

Closed Answered by Vinyzu
SuppliedOrange asked this question in Q&A
Discussion options

You must be logged in to vote

Because Chrome (or more specifically Chromium) has a bug in which UserAgents do not get applied to WebWorkers. See (for example, i think there multiple but this one was the first one i found) Chromium Bug Tracker.

If you apply a UserAgent, whether via a Command Line Flag or a CDP Command, it can cause a Leak if the Site Checks your Navigator UserAgent against a Webworker UserAgent.
This doesnt mean that there are no cases in which you shouldnt change your UserAgent, it just means that you shouldnt if you want to be completely undetected.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Vinyzu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants