r/WebScrapingInsider • u/LudaxProxy • 12d ago
Blocked Again Why your scraper gets a 403 before a single header is read: JA4 numbers for Python, curl and Chrome
Disclosure: we're a team at a residential proxy provider. No product names or links, just measurements.
If your scraper sends perfect Chrome headers from a clean residential IP and still gets a 403 or a challenge page, the block often happened before your headers were read: at the TLS handshake. JA3/JA4 hash the ClientHello (cipher list, extensions, ALPN), and different clients look nothing alike. Same machine, same target:
- Python urllib (3.14): 18 cipher suites, no ALPN at all
- curl 7.87 (OpenSSL build): 31 cipher suites, offers h2
- Chromium: 15 cipher suites plus GREASE, offers h2
So "Chrome UA + Python TLS" is a mismatch before a single header is read. A few things we learned the hard way:
- A residential IP doesn't fix it. A normal HTTP/SOCKS proxy just tunnels your bytes (CONNECT), so the target sees your client's ClientHello, not the proxy's. The IP and the handshake are separate signals.
- JA4 is harder to dodge than JA3. Chrome shuffles its extension order on every connection, which broke JA3 (one browser, endless hashes). JA4 sorts before hashing, so shuffling no longer hides you, and a non-browser handshake stays recognizable.
- HTTP/2 is the next fingerprint. SETTINGS values, window update size and pseudo-header order (Chrome sends :method, :authority, :scheme, :path) all identify the client. Matching TLS but not HTTP/2 still stands out.
- HTTP/3 is easy to get backwards. Some libraries now impersonate h3/QUIC too, and QUIC has its own fingerprint (JA4 starts with "q" instead of "t"). But Chrome doesn't use h3 through an HTTP or SOCKS proxy, since those can't carry UDP, so it falls back to h2. Behind a proxy, h2 is what a real browser looks like; h3 impersonation only matters on direct connections.
Real example: on a Cloudflare-protected site a plain client got the 403 "Just a moment" page, and the same page with a Chrome-like TLS + HTTP/2 fingerprint came back 200, no headless browser.
Quick way to check your own stack: point it at any TLS echo service (browserleaks has a TLS page) and compare the JA4 with what your real browser shows on the same page.
Curious what others see: has anyone measured how often sites actually block on JA4 alone vs. JA4 combined with HTTP/2 or behavior?
2
u/Imaginary-Formal7581 11d ago
I was facing a similar issue recently with an Akamai-protected website. The same residential proxy worked consistently in Chrome, but Python kept getting blocked. Even after matching the TLS and HTTP/2 fingerprint parameters as closely as possible with Chrome, Python still failed while Chrome worked. It made me wonder if Akamai was looking at other signals beyond TLS and HTTP/2. Have you seen similar behavior with Akamai, or is it mostly with Cloudflare?
1
u/Fickle-Elephant-2000 8d ago
rarely see blocks on JA4 alone unless the hash is on a hard blocklist for default scripting libraries. usually its the mismatch between the User-Agent header and the TLS/H2 signature that actually triggers the challenge.
1
u/Alternative-Ruin275 4d ago
A Chrome-versus-Python comparison changes several variables at once: TLS, HTTP/2, JavaScript execution and session state. Using the same exit removes one variable, but doesn't isolate JA4. A 403 by itself also doesn't tell you which signal triggered the decision.
For a site you control or have permission to test, correlate a small set of requests with the server/WAF decision logs: same endpoint, method and timing, with a request ID for each attempt. Separate TLS connection failures from HTTP refusals, then change one variable at a time. Without those logs, I'd label the cause a hypothesis rather than conclude it's JA4 or the sensor cookie.