Bot detection overview
Sites block automation for different reasons, and each block has a different fix. This page helps you work out which block you hit from its symptom, then points you to the Browserless feature that fixes it and the order to try them in.
The fixes work with Puppeteer or Playwright, BrowserQL, the BAP TypeScript and Python SDKs, and the Browserless MCP server. Most of them need Browserless Cloud or Enterprise and aren't in the open-source Docker image. See Cloud vs open source.
Which block did you hit?
Match what you see to a row, then apply the fix. If you're not sure, start with a stealth route and a residential proxy. Together they fix most blocks.
| What you see | Likely cause | Fix |
|---|---|---|
| A CAPTCHA or "verify you are human" challenge page | The site challenges sessions it isn't sure about | Add solveCaptchas=true. See CAPTCHA solving. |
A 403, 429, or "Access denied" page from the site, or a block on the very first request | IP reputation or rate limiting. Datacenter IPs and shared IPs get flagged first. | Add proxy=residential. See Proxies. |
| A "not available in your region" page or the wrong country's content. Or a hard block page with no challenge that appears on the very first request and stays even with a residential proxy. | The site blocks or changes content by country. Government portals often reject every IP outside the country. | Add proxyCountry (for example proxyCountry=de) with a built-in proxy. Proxy presets such as proxyPreset=px_gov01 don't pick a country, so set proxyCountry alongside them. Use proxy=residential, because the datacenter pool covers fewer countries and may not exit in the one you asked for. See Proxies. |
| The first page loads, then you're blocked after a few actions, or a login fails without an error | Sensor and behavior checks (Akamai, PerimeterX, DataDome) flag the browser fingerprint | Use a stealth route. If that isn't enough, use the Unblock API or BrowserQL, then hand off to a human through a live URL. |
| The site flags your platform or device, or serves a desktop page when you need mobile | The default Linux fingerprint, or a User-Agent that doesn't match the rest of the fingerprint | On a stealth route, set emulationOs to windows, macos, android, or ios. It has no effect on plain /chromium or /chrome. See OS emulation and supported mobile devices. |
/content or another REST API returns a "Checking your browser" page instead of the real HTML | The API returned before the site's JavaScript check finished | Add waitForSelector for an element on the real page, then check the returned HTML rather than X-Response-Code. See /content bot detection troubleshooting. |
| A site rejects your browser version or User-Agent string | User-Agent checks | Set a custom User-Agent. See User agent masking. |
Blocked only when you run with headless=true | The site detects headless mode | Remove headless=true. Stealth routes run headful by default for this reason. See running stealth routes headless. |
A 401, or a 403/429 that comes back when you connect to Browserless, isn't a site block. It's a token, plan, or concurrency problem. See the FAQ to tell the two apart.
Recommended order
IP reputation and browser fingerprint are the two main signals detection systems check. Fix the fingerprint first because it's free: changing your connection URL is all it takes. Then add the rest one step at a time, and stop at the first step that works. Each later step costs more units or more time.
- Stealth route. Connect to
/stealthinstead of/chromiumor/chrome. It masks the browser fingerprint and keeps the session headful. - Residential proxy. Add
proxy=residentialand, if the site is region-locked,proxyCountry. Stealth routes keep the same exit IP for the whole session, which matters because Akamai and DataDome tie their cookies to the IP. - CAPTCHA solving. Add
solveCaptchas=trueso Browserless solves challenges as they appear. - Unblock API or BrowserQL. For sites that still detect automation, these launch the browser without automation library traces. Connect Puppeteer or Playwright to the unblocked session afterwards.
- Live URL hand-off. For steps that need a person, such as 2FA, share a live URL and resume your script when they're done.
Steps 1 to 3 combine in one connection URL:
wss://production-sfo.browserless.io/stealth?token=YOUR_API_TOKEN_HERE&proxy=residential&proxyCountry=us&solveCaptchas=true
Pass it as browserWSEndpoint in Puppeteer or to connectOverCDP in Playwright. Add emulationOs=windows (or another OS) if the site checks the platform.
Bot detection features
Stealth routes
Stealth routes apply fingerprint mitigations at the connection level. There are three: /stealth (recommended), /chromium/stealth, and /chrome/stealth. They run headful by default, and you can opt into headless mode with headless=true when the site allows it. See Stealth Routes.
Built-in proxies
Browserless includes two proxy networks with your API token. proxy=residential routes through real residential IPs and is harder to detect. proxy=datacenter costs a third as much per MB but is easier to flag, so use it for low-cost IP rotation on sites without strict IP checks. Both support proxyCountry, and you can also bring your own proxy. See Proxies.
CAPTCHA solving
Add solveCaptchas=true and Browserless detects and solves CAPTCHAs for the whole session. For finer control, listen for the Browserless.captchaFound CDP event and call Browserless.solveCaptcha yourself. See CAPTCHA solving.
OS emulation and mobile devices
Browserless sessions run on Linux. emulationOs switches the session to a consistent Windows, macOS, Android, or iOS identity (User-Agent, client hints, navigator.platform, GPU, and more). For mobile, emulatedDevice picks a specific phone, and deviceType=tablet picks an iPad on iOS. See OS emulation and supported mobile devices.
Site unblocking
The Unblock API and BrowserQL work with the browser's native interfaces, so they leave no automation library traces. Both can return an unblocked session that you connect Puppeteer or Playwright to.
User agent masking
User agent masking sets a custom User-Agent string to match real browser traffic. If you also use emulationOs=windows or macos, the emulated User-Agent takes priority so the fingerprint stays consistent.
Using BAP
BAP wraps BrowserQL in TypeScript and Python SDKs, and it has its own bot detection pages. The same features are there, called from the SDK: stealth and humanization (including residential proxies), CAPTCHA solving with solve(), and OS emulation.
Cloud vs open source
The open-source Docker image (ghcr.io/browserless/chromium and others) runs standard browsers. It doesn't include the bot detection features on this page, so a bot detection test against the open-source image measures a standard headless browser, not Browserless stealth.
| Feature | Cloud | Enterprise (self-hosted) | Open source |
|---|---|---|---|
| Stealth routes, including headless stealth | Yes | Yes | No |
| CAPTCHA solving | Yes | Yes | No |
| OS emulation and mobile devices | Yes | Yes. The image doesn't include the licensed Windows and macOS fonts, so text rendering still looks like Linux unless you add them. | No |
| BrowserQL, and BAP (which runs on BrowserQL) | Yes | Yes | No |
| Unblock API | Yes | Yes | No |
| Built-in residential and datacenter proxies | Yes | Add-on. Contact sales for proxy access. | No |
Your own proxy (--proxy-server) and custom launch flags | Yes | Yes | Yes |
See open-source Docker deployment and the Enterprise image for what each image includes.
FAQ & Troubleshooting
Why am I getting a 403 Forbidden error?
First check where the 403 comes from.
- From Browserless, when you connect. The connection fails before any page loads, for example
Unexpected server response: 401or403. Your API token is missing, expired, or not allowed on that route or plan. Pass it as?token=in the connection URL and check it in your account dashboard. See connection URL patterns for more on handshake errors. - From the target site, after you connect. The browser connects, but
page.goto()returns a403response or an "Access denied" page. That's a site block, usually IP reputation. Go back to Which block did you hit? and start with a residential proxy.
I added a stealth route but the site still blocks me
Stealth fixes the browser fingerprint but not the IP. Add proxy=residential next, then solveCaptchas=true, following the recommended order. Make sure you aren't passing headless=true. If you use emulationOs, remember that timezone and locale follow the proxy location, not the emulated OS. Pick a proxyCountry that fits the persona and add proxyLocaleMatch=1 so the browser language matches that country.
My script works locally but fails on Browserless
Local browser settings may differ from the Browserless environment. Use launch parameters to match your local setup (viewport, user agent, timezone). See launch parameters for the full list.
Do these features work with the open-source Docker image?
No. Stealth routes, CAPTCHA solving, OS emulation, BrowserQL, and the Unblock API need Browserless Cloud or an Enterprise license. Built-in proxies come with Cloud and are an add-on for Enterprise. See Cloud vs open source.