Table of contents
You bought clean residential IPs, rotated them carefully, set a believable User-Agent, and the target site still answers with a challenge page on the very first request. In many of these cases the problem is not the IP at all. It is the way your HTTP client says hello. TLS fingerprinting lets a server recognise what kind of software is connecting from the first message of the encrypted handshake, before a single HTTP header is read. This guide explains how that message becomes a JA3 or JA4 fingerprint, why a proxy tunnel passes it through untouched, and what you can realistically do about it.
Our broader guide to how websites detect bots covers TLS as one layer among many. Here we zoom in on that layer: the fields that get hashed, how Chrome's extension shuffling changed the picture, how JA3 compares with JA4, and how to check your own fingerprint with a few lines of Python.
What Is TLS Fingerprinting?
TLS fingerprinting is the practice of identifying a client application from the parameters it offers when it opens a TLS connection. Every HTTPS request starts with a handshake, and the very first message the client sends, the ClientHello, lists what the client supports: protocol versions, cipher suites, extensions, key-exchange groups and more. Those choices are made by the TLS library and by how the application configures it, not by the user. Chrome, Firefox, Safari, Python's standard stack, Go's crypto/tls and a command-line curl build all make different choices, so each tends to produce a recognisable pattern.
The key detail is that the ClientHello is sent in the clear. The Salesforce engineers who created JA3 put it plainly in the project's README: because TLS negotiations are transmitted in the clear, it is possible to fingerprint and identify client applications using the details in the ClientHello. The server, a CDN or a network monitor in the path can read it without breaking any encryption.
Originally this was a security tool. JA3 was built in 2017 to spot malware families whose command-and-control servers kept changing IPs and domains while the malware's TLS behaviour stayed constant. The same property makes it useful for bot management: a script that rotates through thousands of IP addresses still presents the same handshake on every connection.
The one-sentence version
Your IP address says where a request comes from; your TLS fingerprint says what software sent it. Proxies change the first, not the second.
What a TLS ClientHello Contains
RFC 8446, the TLS 1.3 specification, defines the ClientHello as a small structure with a handful of top-level fields followed by a list of extensions. In simplified form:
- legacy_version – fixed at TLS 1.2 (
0x0303) in TLS 1.3 clients for compatibility; the real version list moves into an extension. - random – 32 random bytes, different every time, so useless for fingerprinting.
- legacy_session_id – also variable per connection.
- cipher_suites – the ordered list of encryption algorithms the client is willing to use.
- legacy_compression_methods – effectively always "null" today.
- extensions – the rich part: server name (SNI), supported_versions, supported_groups (elliptic curves), signature_algorithms, ALPN (which application protocol, such as
h2orhttp/1.1), key_share, session tickets, and many more.
Fingerprinting methods ignore the fields that change on every connection and keep the ones that reflect the client's configuration: which ciphers, which extensions, which curves, which signature algorithms, and sometimes in what order. A browser offers a long, carefully tuned list. A default Python or curl build linked against OpenSSL offers a different list, often with more legacy ciphers and a different extension set. That difference is what a fingerprint captures.
Browsers also use GREASE (Generate Random Extensions And Sustain Extensibility): reserved dummy values sprinkled into cipher and extension lists to keep servers tolerant of unknown values. Both JA3 and JA4 explicitly ignore GREASE values so that a browser still maps to a stable fingerprint.
How a ClientHello Becomes a JA3 or JA4 Fingerprint
JA3: five fields, one MD5 hash
According to the original Salesforce repository, JA3 takes the decimal values of five ClientHello fields, in this order:
SSLVersion,Cipher,SSLExtension,EllipticCurve,EllipticCurvePointFormat
Values within a field are joined with -, fields are separated with ,, and the whole string is MD5-hashed into a 32-character fingerprint. The README gives this example, quoted verbatim:
769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0 --> ada70206e40642a3e4461f35503241d5
Two things matter here. First, JA3 keeps fields in the order the client sent them, so extension order is part of the fingerprint. Second, MD5 makes the result compact but opaque: two hashes that differ tell you nothing about how the clients differ. Salesforce also defined JA3S, the matching fingerprint of the server's response.
JA4: readable prefix plus two truncated hashes
JA4 was published by FoxIO. The Salesforce JA3 repo now notes that JA3 is no longer actively maintained there and that its original creator, John Althouse, maintains the latest TLS client fingerprinting work at FoxIO. FoxIO's specification splits the fingerprint into three underscore-separated parts, usually called a, b and c:
- Part a (human-readable): transport (
tfor TLS over TCP,qfor QUIC,dfor DTLS), the two-character TLS version (taken from supported_versions when present),doridepending on whether SNI is a domain or absent, a two-digit count of cipher suites, a two-digit count of extensions, and the first and last characters of the first ALPN value (for exampleh2, orh1forhttp/1.1). - Part b: the first 12 hex characters of a SHA-256 hash of the cipher suites, sorted into hex order.
- Part c: the first 12 characters of a SHA-256 hash of the extensions, sorted, with SNI and ALPN removed, followed by the signature algorithms in their original order.
The worked example in the JA4 specification is t13d1516h2_8daaf6152771_e5627efa2ab1: TLS over TCP, TLS 1.3, a domain in SNI, 15 ciphers, 16 extensions, ALPN h2, then the cipher and extension hashes. Even without a lookup database you can read the first part and see whether a client speaks TLS 1.3, how many ciphers it offers and whether it asked for HTTP/2.

Why Chrome's Extension Shuffling Changed JA3
RFC 8446 says extensions may appear in any order, except that pre_shared_key, if present, must be last. For years most clients used a fixed order anyway, and JA3 relied on it. Google worried that servers and middleboxes were hard-coding assumptions about Chrome's exact ClientHello, which would make future TLS changes risky. Its fix, listed on Chrome Platform Status as "TLS ClientHello extension permutation" and enabled by default in Chrome 110, randomises extension order on each connection (keeping the pre_shared_key rule).
Fastly's security research team, writing in February 2023, observed that the change began showing up in versions 108 and 109 as the feature rolled out, and estimated that with roughly 15 extensions the number of possible orderings is close to 15 factorial, so practically every Chrome connection gets a unique JA3 hash. The open issue on the Salesforce JA3 repo about Chrome's randomised ClientHello makes the same point.
We saw this directly when testing on the box for this article. A Chrome-impersonating client (curl_cffi, covered below) returned a different ja3_hash on each of three consecutive requests to a fingerprint echo service, while plain Python requests returned the same hash both times. The normalised JA3 value (ja3n, which sorts extensions) and the JA4 value stayed constant for both clients.
The irony is worth noting: a randomised order makes Chrome's raw JA3 unstable, and a client that always sends the same raw JA3 while claiming to be a modern Chrome is arguably more suspicious, not less. Sorting-based methods like JA4 and normalised JA3 restore a stable identifier for real Chrome, which is one reason detection vendors have been adopting them.
JA3 vs JA4 at a Glance
| Aspect | JA3 | JA4 |
|---|---|---|
| Created by | Salesforce (2017); no longer actively maintained there | FoxIO, where JA3's original creator now works |
| Fields used | TLS version, ciphers, extensions, elliptic curves, point formats | Transport, TLS version, SNI presence, cipher and extension counts, ALPN, sorted ciphers, sorted extensions, signature algorithms |
| Extension order | Kept as sent, so Chrome's shuffling changes the hash | Sorted, so shuffling does not change the hash |
| Hash | Single MD5 of the whole string | Readable prefix plus two truncated SHA-256 hashes |
| Human readable | No | Partly (the first section) |
| QUIC / HTTP/3 | Not distinguished | Marked with a q prefix |
| Licence | BSD 3-Clause | JA4 itself is BSD 3-Clause; the other JA4+ methods (JA4S, JA4H, JA4T and more) use the FoxIO License 1.1 |
A note on licensing, because it confuses people: FoxIO's README states that JA4 TLS client fingerprinting is open source under BSD 3-Clause, the same as JA3, and that FoxIO does not plan to pursue patent coverage for it. The wider JA4+ family, including JA4S (server), JA4H (HTTP), JA4X (certificates), JA4SSH, JA4T (TCP) and others, is described as patent-pending and licensed under the FoxIO License 1.1, which permits internal and academic use but requires an OEM licence for vendors that sell it as part of a product.
Why a Proxy Tunnel Does Not Change Your TLS Fingerprint
This is the part that surprises people who come from the IP-rotation side of scraping. When you send an HTTPS request through an HTTP proxy, your client first sends a plain-text CONNECT host:443 request. The proxy opens a TCP connection to the target and then simply relays bytes in both directions. Your client then performs the TLS handshake with the target server, through the tunnel. The ClientHello the target receives is byte-for-byte the one your client generated.
SOCKS5 works the same way at a lower level: the proxy relays a TCP stream and has no part in the TLS session. Neither kind of proxy can rewrite your ClientHello without terminating TLS itself, which would mean presenting its own certificate to you, something a normal forward proxy does not do and which your client would reject unless you installed the proxy's root certificate.
We confirmed this with a local test proxy on the box. Python requests produced the same JA4 (t13d3013h1_…) and the same normalised JA3 whether it connected directly or through an HTTP CONNECT proxy, and the proxy's log showed only the CONNECT tls.browserleaks.com:443 line. The same was true for curl_cffi impersonating Chrome. The only thing the proxy changed was the source IP the server saw.

So a default Python stack sent through the cleanest residential IP still looks like a default Python stack. If a site's rules treat that fingerprint as automation, the IP's reputation may soften the response but will not hide what the client is. This is one of the most common reasons behind the situations described in our guide on why proxies get blocked.
Common misconception
"Premium" or "residential" describes where the exit IP lives, not how your traffic is shaped. No ordinary forward proxy can make Python look like Chrome at the TLS layer; that has to happen in the client.
What Proxies Do Change, and What They Don't
Proxies are still valuable; they just solve a different problem. Here is how the layers divide:
| Signal | Changed by a CONNECT/SOCKS5 proxy? | Notes |
|---|---|---|
| Source IP address | Yes | The target sees the proxy's exit IP. |
| ASN / network type | Yes | Residential, mobile or datacenter, depending on the exit. |
| IP geolocation | Yes | Country, region or city of the exit IP. |
| IP reputation and rate limits | Yes | Spreading requests across IPs avoids per-IP limits. |
| TLS ClientHello (JA3/JA4) | No | Generated by your client, relayed unchanged. |
| HTTP/2 settings and frame behaviour | No | Also inside the encrypted tunnel. |
| HTTP headers, User-Agent, cookies | No (for HTTPS) | Encrypted end to end; set by your client. |
| JavaScript and browser signals | No | Depend on whether you run a real browser. |
| TCP/IP stack traits | Usually yes | The target's TCP connection terminates at the proxy, so it sees the proxy host's TCP stack, which can itself be a signal if it does not match the claimed device. |
That last row is a reminder that detection works on consistency. A request claiming to be Chrome on Windows, arriving from a residential IP, with a TLS fingerprint typical of OpenSSL and an HTTP/1.1 ALPN, contains several facts that do not agree with each other. Each mismatch is a signal.
Beyond TLS: HTTP/2 Fingerprinting and Other Layers
TLS is rarely checked alone. Once the handshake negotiates HTTP/2, the client sends a connection preface that is just as revealing. Akamai researchers presented "Passive Fingerprinting of HTTP/2 Clients" at Black Hat Europe 2017, showing that clients differ consistently in:
- which SETTINGS parameters they send, in what order, and with what values;
- the increment in the initial WINDOW_UPDATE frame;
- the PRIORITY frames they send;
- the order of the HTTP/2 pseudo-headers (
:method,:authority,:scheme,:path).
Their fingerprint format joins these as SETTINGS|WINDOW_UPDATE|PRIORITY|PSEUDO_HEADER_ORDER, often called the "Akamai" HTTP/2 fingerprint. Fingerprint echo services report it alongside JA3 and JA4. (RFC 9113, the current HTTP/2 specification, has since deprecated the original priority scheme, but how a client behaves with or without PRIORITY frames is still observable.)
Above that sit header order and casing, cookie handling, and, for sites that serve JavaScript challenges, the full set of browser signals covered in our article on how anti-detect browsers work. FoxIO's JA4+ suite extends the same idea to HTTP requests (JA4H), TCP (JA4T) and latency (JA4L). A client that fixes its TLS fingerprint but sends Python-style headers has only moved the mismatch one layer up.
On the defensive side, Cloudflare exposes JA3 and JA4 fingerprints to Enterprise customers who have purchased Bot Management. Its documentation describes using them in analytics, in WAF custom rules to block or challenge a fingerprint seen in an attack (or to skip rules for a fingerprint seen on good traffic), and to recognise a site's own mobile app, whose traffic often shares one fingerprint across devices. Cloudflare also exposes aggregate "JA4 Signals" for a fingerprint, ratios, ranks and quantiles computed over the past hour such as browser_ratio_1h and ips_rank_1h, which illustrates that the fingerprint is usually judged in context rather than on a simple allow/deny list.
Fingerprints are not verdicts
A JA4 identifies a TLS library and configuration, not a person or intent. Lots of legitimate tools share the fingerprint of a scraper, which is why defenders typically combine it with rate, behaviour and reputation data rather than blocking it outright.
How to Check Your Own TLS Fingerprint
Before changing anything, measure. Public echo services read the ClientHello you send and return the computed fingerprints. The example below uses tls.browserleaks.com/json, the endpoint the curl_cffi README also uses, which returns fields such as ja3_hash, ja3n_hash, ja4 and akamai_hash. It compares plain requests with curl_cffi, each with and without a proxy. Replace the proxy URL with your own; see our guide to using proxies with Python Requests for the URL format with credentials.
import requests
from curl_cffi import requests as creq
URL = "https://tls.browserleaks.com/json"
PROXIES = {
"http": "http://user:pass@proxy.example.com:8000",
"https": "http://user:pass@proxy.example.com:8000",
}
def show(label, data):
print(f"{label:28} ja4={data.get('ja4')} ja3n={data.get('ja3n_hash')} "
f"akamai={data.get('akamai_hash') or '-'}")
show("requests direct", requests.get(URL, timeout=20).json())
show("requests via proxy", requests.get(URL, proxies=PROXIES, timeout=20).json())
show("curl_cffi chrome direct",
creq.get(URL, impersonate="chrome", timeout=20).json())
show("curl_cffi chrome via proxy",
creq.get(URL, impersonate="chrome", proxies=PROXIES, timeout=20).json())
When we ran this on 2 December 2026 (Python 3.13, requests 2.34.2, curl_cffi 0.17.0, local HTTP CONNECT proxy), the pattern was exactly as the theory predicts. Your exact values will differ with library and OpenSSL versions, so treat these as illustrative output from our run, not reference fingerprints:
requests direct ja4=t13d3013h1_1d37bd780c83_8537cf56674e akamai=-
requests via proxy ja4=t13d3013h1_1d37bd780c83_8537cf56674e akamai=-
curl_cffi chrome direct ja4=t13d1517h2_8daaf6152771_cb7bf5808d99 akamai=52d84b11737d980aef856699f885ca86
curl_cffi chrome via proxy ja4=t13d1517h2_8daaf6152771_cb7bf5808d99 akamai=52d84b11737d980aef856699f885ca86
Read the JA4 prefixes: the default stack offered 30 cipher suites and asked for HTTP/1.1 (h1), so it produced no HTTP/2 fingerprint at all. The Chrome-impersonating client offered 15 ciphers, 17 extensions and h2. The proxy made no difference to either. Interestingly, the system curl on the same box (linked to OpenSSL) produced the same b and c hashes as requests, differing only in ALPN, which shows that the fingerprint mostly reflects the underlying TLS library rather than the application on top.
You can run the same check from the command line, which is handy when debugging proxy settings as described in our guide to using proxies with cURL:
curl -s https://tls.browserleaks.com/json
curl -s -x http://user:pass@proxy.example.com:8000 https://tls.browserleaks.com/json
Making Your Client Consistent: Impersonation Libraries and Real Browsers
If your fingerprint does not match the browser you claim to be, there are two broad fixes.
Use a client that reproduces a browser handshake
curl-impersonate is a modified curl build that reproduces the TLS and HTTP/2 handshakes of major browsers, and curl_cffi is a Python binding to a maintained fork of it. Its README states that, unlike pure-Python clients such as requests or httpx, it can impersonate browsers' TLS/JA3 and HTTP/2 fingerprints, and that HTTP and SOCKS proxies are supported. Passing impersonate="chrome" tracks the latest Chrome profile the installed version ships; a pinned target such as "chrome124" keeps one version fixed. Because the impersonation happens in the client, it travels through any proxy intact, which is exactly what you want.
from curl_cffi import requests
session = requests.Session(impersonate="chrome")
resp = session.get(
"https://example.com/",
proxies={"https": "http://user:pass@proxy.example.com:8000"},
timeout=30,
)
print(resp.status_code)
Keep the rest of the request consistent with the profile. In our test, curl_cffi sent Chrome-style default headers (User-Agent, Sec-Ch-Ua, Sec-Fetch-*) for the Chrome profile; overriding the User-Agent with a different browser or an old version recreates the very mismatch you were trying to remove.
Use a real browser when the site needs one
If the target runs JavaScript challenges, no HTTP client will pass them on TLS alone. Driving an actual browser gives you a genuine browser ClientHello plus real JavaScript execution. Our guides to using proxies with Playwright covers the setup. The trade-off is cost: browsers use far more CPU and memory per request than an HTTP client. If you are choosing a framework, compare how each one handles proxies and browser versions before committing.
Pitfalls to avoid
- Mismatched claims. A Chrome User-Agent over an OpenSSL-default handshake is a stronger signal than either alone.
- Stale profiles. Browser fingerprints change as browsers update. An impersonation profile for a version that has almost disappeared from real traffic can stand out; keep libraries current.
- Assuming TLS is the only problem. Fixing the handshake often reveals the next layer: header order, request rate, missing cookies or JavaScript challenges. Each of those needs its own fix.
- Middleboxes that terminate TLS. Some corporate gateways and "SSL inspection" proxies do re-originate TLS. In that case the target sees the gateway's fingerprint, not yours, which is rarely a browser's.
Legitimate and Ethical Use
TLS fingerprinting began as a defensive technique and remains one. Security teams use JA3 and JA4 to hunt malware, flag clients that should not exist on a locked-down network, and stop credential-stuffing and scraping attacks that rotate IPs. Site owners use them to recognise their own mobile apps and to fix false positives. These are good reasons for the technology to exist, and understanding it helps you work with it rather than against it.
For people collecting public data, the practical advice is to aim for honest consistency, not deception at any cost:
- Respect the site's terms,
robots.txtwhere applicable, and data-protection law, especially for personal data. - Use official APIs or data feeds where they exist; they are cheaper and more stable than any fingerprinting arms race.
- Keep request rates modest so your traffic does not degrade the service for others.
- Do not attempt to bypass authentication, paywalls or access controls; matching a browser fingerprint does not grant permission.
- If you run an internal tool against your own sites, ask your security team to allow-list its fingerprint instead of disguising it.
Practical rule of thumb
Make your client look like what it really is, or use a real browser. If you need to pretend to be something it is not to access the data, reconsider whether you should be accessing it.
Key Takeaways
TLS fingerprinting identifies the software behind a connection from the ClientHello, the first and unencrypted message of every HTTPS session. JA3 hashes the version, ciphers, extensions, curves and point formats in the order sent, which Chrome's extension permutation made unstable; JA4 sorts ciphers and extensions, adds a readable prefix and has become the more robust option, with JA4 itself under BSD 3-Clause and the rest of JA4+ under the FoxIO License.
Most importantly for proxy users, a CONNECT or SOCKS5 tunnel relays the handshake untouched. Proxies change your IP, ASN and geolocation, which matter a great deal for reputation, rate limits and location-specific content, but they cannot change what your client looks like at the TLS or HTTP/2 layer. Measure your own fingerprint first, keep every layer of your client consistent with what it claims to be, and choose between an impersonating HTTP client and a real browser based on what the target actually checks.
Frequently asked questions
TLS fingerprinting identifies the software making an HTTPS connection from the parameters in its ClientHello, the first message of the TLS handshake. Cipher suites, extensions, supported groups and similar fields are chosen by the TLS library, so browsers, Python, Go and curl each tend to produce a recognisable pattern. The ClientHello is unencrypted, so servers and CDNs can read it without decrypting traffic.
JA3 joins the TLS version, ciphers, extensions, elliptic curves and point formats in the order sent and MD5-hashes the result. JA4 adds a human-readable prefix (protocol, TLS version, SNI, cipher and extension counts, ALPN) and uses truncated SHA-256 hashes of sorted ciphers and sorted extensions plus signature algorithms. Because JA4 sorts extensions, it stays stable when a client such as Chrome randomises extension order.
No, not with a normal HTTP CONNECT or SOCKS5 proxy. The proxy only relays the encrypted TCP stream, and your client performs the TLS handshake directly with the target, so the target sees your client's own ClientHello. The proxy changes the source IP, ASN and geolocation, not the JA3 or JA4 fingerprint.
Since Chrome 110, Chrome randomises the order of TLS ClientHello extensions on each connection to stop servers from depending on a fixed order. JA3 includes extension order, so the raw JA3 hash changes almost every time. Normalised JA3 (which sorts extensions) and JA4 remain stable for the same browser.
They can recognise the client, yes. Python requests uses an OpenSSL-based TLS stack whose ClientHello looks nothing like a browser's, and that fingerprint passes through the proxy unchanged. A residential IP may improve reputation, but if a site treats that fingerprint as automation the request can still be challenged or blocked.
Send a request to a public fingerprint echo service such as tls.browserleaks.com/json, which returns your JA3, normalised JA3, JA4 and HTTP/2 (Akamai) fingerprints as JSON. Run the check with and without your proxy and from each client you use. If the proxy is a plain tunnel, the fingerprints should be identical in both cases.
curl_cffi is a Python binding for a fork of curl-impersonate that can reproduce browsers' TLS/JA3 and HTTP/2 fingerprints. You pass an impersonate value such as "chrome" and it sends a browser-like handshake and default headers, and it supports HTTP and SOCKS proxies. It does not execute JavaScript, so sites with browser challenges may still need a real browser.
According to FoxIO, JA4 TLS client fingerprinting is open source under the BSD 3-Clause licence, the same as JA3. The other JA4+ methods, such as JA4S, JA4H, JA4X and JA4T, are licensed under the FoxIO License 1.1, which allows internal and academic use but requires an OEM licence for vendors selling them in a product.