Skip to content

fix(browser-plugin-bot-detection): exclude BotD's spurious plugins-le… - #1499

Merged
Peter Perlepes (igneel64) merged 2 commits into
release/4.10.1from
bot-d-patch
Aug 18, 2026
Merged

fix(browser-plugin-bot-detection): exclude BotD's spurious plugins-le…#1499
Peter Perlepes (igneel64) merged 2 commits into
release/4.10.1from
bot-d-patch

Conversation

@stanch

Copy link
Copy Markdown
Contributor

…ngth detector

BotD's detectPluginsLengthInconsistency reports any non-Android Chromium browser with navigator.plugins.length === 0 as headless Chrome. Chrome's --headless=new mode now reports plugins like a headed browser, while privacy-focused browsers legitimately report none, so the check only yields false positives.

Rather than patch the dependency, compose BotD's exported collect/detect with our own detector set. A pnpm patch would only reach the UMD build, since the ESM build keeps @fingerprintjs/botd external and npm consumers would resolve their own unpatched copy.

Mirrors fingerprintjs/BotD#194, which is approved upstream but unmerged and so absent from botd 2.0.0.

…ngth detector

BotD's `detectPluginsLengthInconsistency` reports any non-Android Chromium
browser with `navigator.plugins.length === 0` as headless Chrome. Chrome's
`--headless=new` mode now reports plugins like a headed browser, while
privacy-focused browsers legitimately report none, so the check only yields
false positives.

Rather than patch the dependency, compose BotD's exported `collect`/`detect`
with our own detector set. A pnpm patch would only reach the UMD build, since
the ESM build keeps `@fingerprintjs/botd` external and npm consumers would
resolve their own unpatched copy.

Mirrors fingerprintjs/BotD#194, which is approved
upstream but unmerged and so absent from botd 2.0.0.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@igneel64
Peter Perlepes (igneel64) merged commit 2b9a376 into release/4.10.1 Aug 18, 2026
7 of 9 checks passed
@igneel64
Peter Perlepes (igneel64) deleted the bot-d-patch branch August 18, 2026 13:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants