Web scraping used to be simple. You fired off HTTP requests, parsed the HTML, and called it done. Those days are gone.
Many sites now run layered detection stacks — Cloudflare, DataDome, HUMAN (formerly PerimeterX), Akamai — that combine IP reputation, TLS fingerprinting, browser signals, and behavioral analysis into a single verdict: human or bot. If anything looks off, you're blocked. Sometimes you don't even get an error. You just get a fake page that looks legitimate but returns no real data.
Getting through requires understanding what these systems actually check, and then building a scraper that looks consistent at every layer. None of this is permission to ignore a site's terms or rate limits; it is about not looking broken when you are allowed to be there.
How bot detection actually works
Detection isn't one thing. It's a stack of checks, each one adds more confidence that you're not a human. Pass all of them and you're through. Fail one, and you might not know it until your data looks wrong.
Here's what sites are checking:
IP reputation. Your IP is the first thing checked. Datacenter IPs — the kind you get from AWS, DigitalOcean, or any VPS — start with less trust than residential ones, before a single byte of your request is read. Anti-bot vendors score traffic by IP and ASN reputation, and many sites challenge or block whole hosting ranges.
TLS fingerprinting (JA3/JA4). When your browser opens an HTTPS connection, it sends a ClientHello message that includes cipher suites, TLS extensions, and other metadata. This gets hashed into a JA3 or JA4 fingerprint. Python's requests library has a completely different fingerprint from a real Chrome browser, even if you copy Chrome's User-Agent header. Sites check this and challenge known automation fingerprints.
Browser fingerprinting. Once you're past the network layer, the site runs JavaScript to collect dozens of signals: canvas rendering output, WebGL GPU info, installed fonts, screen resolution, timezone, audio stack behavior, and more. Each signal alone is weak. Combined, they're a near-unique identity.
Behavioral analysis. Real humans don't move the mouse in straight lines. They don't click links at exactly 0.3 second intervals. They scroll, pause, drift, and misclick. Bot detection systems score your session based on how natural it looks.
Any one of these can get you blocked. Most modern anti-bot systems combine several of them.
Common mistakes that get scrapers blocked
Before getting into solutions, it's worth naming the specific things that blow cover most often.
- Using headless Chrome with default settings. Under automation,
navigator.webdriveristrueby default. That's an easy tell. So is theHeadlessChromestring that older headless modes put in the user agent. - Reusing the same IP for every request. Even residential IPs get flagged if one IP hits a site thousands of times.
- Skipping TLS configuration. Python's
requests,httpx, and Node's built-infetchall have TLS fingerprints that scream "automation tool." - Zero think time between actions. Hitting 200 pages in 4 seconds looks like a script because it is. A human reading a page takes 5-30 seconds minimum.
- Consistent timing intervals. Bots tend to operate on regular schedules — every 500ms, every 2 seconds, etc. That regularity is itself a signal.
- Not handling cookies or session state properly. Real browsers accumulate cookies, storage keys, and session history. A fresh browser on every request is suspicious.
Browser fingerprinting deep dive
This is where most scrapers fail and don't realize it.
When a site runs fingerprinting JavaScript, it's collecting signals at the application layer — signals your request headers can't fake. Here's what's being probed:
Canvas fingerprinting. The site draws an invisible image using the HTML5 Canvas API and reads back the pixel data. How that image renders varies by GPU, OS, font rendering stack, and graphics driver. Headless browsers running in containers without a GPU often fall back to software rendering (such as SwiftShader), which produces output that's easy to tell apart from a real desktop.
WebGL fingerprinting. Similar to canvas, but uses WebGL to render 3D scenes. The GPU renderer string, supported extensions, and rendering output all get hashed. A container with a software renderer looks nothing like a real laptop with an Intel or Nvidia GPU.
Font enumeration. Browsers expose which fonts are installed through rendering width measurements. A fresh Linux container has a completely different font set than a Windows or macOS desktop.
Timezone and locale. If your IP is in New York but your browser reports a UTC+8 timezone, that mismatch is a flag. Same for language settings that don't match your geolocation.
Screen and hardware signals. screen.width, devicePixelRatio, navigator.hardwareConcurrency, and navigator.deviceMemory all get checked. A headless browser running in a 1-CPU container reporting 16 hardware threads is suspicious.
The most robust way to change these signals is inside the browser engine — changing what the browser actually reports before page JavaScript ever sees it. JavaScript patches that wrap API calls can themselves be detected, because the wrappers leave traces.
TLS fingerprinting and why headless Chrome fails
This one catches a lot of developers off guard because it happens before any JavaScript runs.
Every time you open an HTTPS connection, your browser sends a ClientHello packet. That packet includes:
- Supported TLS versions
- Cipher suite list and order
- TLS extensions (and their order)
- Elliptic curve preferences
This data gets hashed into a JA3 fingerprint. Sites compare that hash against fingerprints of known HTTP clients and automation tools. Python's requests library has a well-known JA3, as do most other non-browser HTTP clients.
JA4 is the newer format — it's more stable because it sorts extensions, which Chrome now randomizes. Cloudflare documents both JA3 and JA4 in its bot management signals. Detection systems also check that your TLS fingerprint matches what your User-Agent claims to be. Say you're Chrome but your ClientHello looks like a Python library? That mismatch is a strong signal.
Where headless Chrome fits in: a real Chromium build sends a genuine Chrome ClientHello, so TLS alone rarely gives it away. The trouble is that TLS is only one layer: headless Chromium still has to pass the browser fingerprint and automation checks below, and those are where most detection rules for automated Chrome are focused. Firefox presents a different TLS and browser surface, which some detection rules tuned for automated Chromium handle differently.
IP reputation and rotation
Even a perfect browser fingerprint won't save you if your IP is burned.
The difference between residential and datacenter IPs matters a lot on heavily protected sites, because datacenter ASN ranges often get lower trust as a group. How big the gap is depends on the target, so measure it on your own sites rather than trusting a headline success rate.
A few practical rules:
- Rotate IPs per session or per domain, not per request. Request-level rotation looks unnatural — real users don't switch IPs mid-session.
- Match IP geography to timezone and locale. If your proxy is in Germany, your browser should report a German timezone.
- Don't reuse flagged IPs. Once an IP gets a CAPTCHA or block, retire it immediately rather than retrying.
- ISP proxies (sometimes called static residential) are a middle ground — datacenter speed with residential IP ranges. Useful for targets that don't use the most aggressive detection.
Human-like behavior
Detection systems score sessions on behavioral signals. You need to pass that scoring.
The core behaviors to simulate:
Mouse movement. Real mouse movement is curved, nonlinear, and inconsistent. Bots move in straight lines or teleport. Use Bezier curves when moving to click targets. Add random drift.
Typing. Humans type at uneven speeds with occasional mistakes. Implement variable keystroke delays — common letter pairs (th, er, in) come faster than uncommon ones. Add the occasional backspace.
Scroll behavior. Real users scroll before they click. They overshoot and scroll back. They pause at content.
Think time. Add random waits between 2-15 seconds between page loads. Never operate at a fixed interval.
Even crude changes — random delays instead of fixed intervals, fewer pages per minute — remove some of the easiest signals. More detailed simulation helps on sites that score interaction, but it can't make up for a bad IP or an inconsistent fingerprint.
Why Camoufox works where headless Chrome doesn't
Camoufox is an open-source, modified Firefox browser built specifically for anti-detection. It's fully compatible with Playwright's API.
What makes it different from regular headless browsers:
- Engine-level fingerprint changes. Camoufox modifies the browser in its C++ source, not via JavaScript patches. Navigator properties, screen, WebGL, fonts and other surfaces are changed before page JavaScript touches them, so there are no JavaScript wrappers for detection scripts to find.
- Firefox-based TLS fingerprint. Firefox's ClientHello is different from Chrome's, and it is a real browser's fingerprint rather than a library's.
- Generated fingerprints. Camoufox can generate a fresh, internally consistent device fingerprint per session, based on real-world distributions of devices and browsers.
- Automation leaks removed. Camoufox patches known automation tells, such as
navigator.webdriver, that stock automated browsers expose.
None of this is a guaranteed bypass. Results vary by site and change over time, and a stealth browser still needs a reasonable IP and sensible pacing. But on fingerprint-heavy sites it removes a whole class of signals that headless Chrome leaks by default.
Putting it together with a remote browser API
Running Camoufox in production is harder than running it locally. You need containerized, isolated browser sessions, enough memory per browser, crash cleanup, and engine updates. Managing that infrastructure yourself pulls you away from the actual scraping work.
Spectrae handles the browser layer. It runs Camoufox-powered stealth sessions and standard Chromium sessions, each in its own browser process, and exposes them over a WebSocket your existing Playwright code can connect to directly. Your scraping logic stays the same — you point Playwright at Spectrae's endpoint instead of launching a local browser.
Pricing is usage-based: $0.05/min for the stealth browser and $0.003/min for the standard browser, billed per second, with a $1 free credit to start and no plan to buy. See pricing for the details.
Code example: connecting Camoufox via Spectrae
const { firefox } = require('playwright');
async function scrapeWithCamoufox(url) {
// Connect to a remote Camoufox (Firefox) session via Spectrae.
// The stealth endpoint speaks the Playwright protocol, so use firefox.connect().
const browser = await firefox.connect(
`wss://browser.spectrae.dev/stealth/playwright?key=${process.env.SPECTRAE_API_KEY}`
);
const context = await browser.newContext({
locale: 'en-US',
timezoneId: 'America/New_York',
});
const page = await context.newPage();
// Human-like: randomized wait before navigation
await page.waitForTimeout(Math.random() * 2000 + 1000);
await page.goto(url, { waitUntil: 'domcontentloaded' });
// Simulate reading time before extracting data
await page.waitForTimeout(Math.random() * 5000 + 3000);
const data = await page.evaluate(() => {
return document.querySelector('main')?.innerText;
});
await browser.close();
return data;
}
Each connection gets its own isolated Camoufox session, cleaned up when you disconnect. Your code stays simple. For more on the Playwright side, see our Playwright stealth guide.
Putting it all together
Bot detection has gotten genuinely hard. Sites layer IP checks, TLS fingerprinting, browser signals, and behavioral scoring — and any one layer can block you even if you pass the others.
The scrapers that last handle all of this together: reputable IPs matched to browser locale, a browser whose fingerprint is consistent at the engine level, unhurried and irregular pacing, and proper session management. Not sure what a site runs? Check it with the free antibot checker first.
You don't have to build the browser infrastructure yourself. Spectrae gives you isolated Camoufox and Chromium sessions on demand, billed per second.
Get an API key — $1 free credit, no commitment.