/claim #852 Overview This PR adds anti-fingerprinting capabilities to the browser-use library to help avoid bot detection mechanisms like those used by Cloudflare and DataDome. The implementation applies JavaScript patches that modify browser behavior to make automation less detectable by fingerprinting tools like CreepJS. Changes Added anti_fingerprint flag to BrowserConfig (default: False) Implemented methods to load and apply anti-fingerprinting scripts Created scripts that: Override navigator properties to hide automation indicators Create realistic browser plugins and mime types Modify WebGL parameters to mimic a real device Add subtle noise to canvas operations to prevent canvas fingerprinting Add subtle noise to audio operations to prevent audio fingerprinting Ensured patches are applied to all pages in a context Added event listener to apply patches to new pages Usage Users can enable anti-fingerprinting by setting anti_fingerprint=True in their BrowserConfig:
browser = Browser(
config=BrowserConfig(
headless=False,
anti_fingerprint=True
)
)
Testing Tested against CreepJS fingerprinting detection and observed significant improvement in fingerprinting scores. Related Issues Resolves #852 - Avoid fingerprint bot detection
Kunal Darekar
@Kunal-Darekar
Browser Use (YC W25)
@browser-use
the.bishop
@bishopBethel