Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

changed the 'navigator.langagues' to return only 'en-US'; this prevents inconsistencies between the webworker and navigatot, which, when present, are an indicator of bot activity. A more correct solution would be to set it to self.config.locale, but that could be null.

Ran Locarf34f57d26663
diff --git a/browser_use/browser/context.py b/browser_use/browser/context.py
index 8efb4335d..97b19c366 100644
--- a/browser_use/browser/context.py
+++ b/browser_use/browser/context.py
@@ -276,7 +276,7 @@ class BrowserContext:
// Languages
Object.defineProperty(navigator, 'languages', {
- get: () => ['en-US', 'en']
+ get: () => ['en-US']
});
// Plugins