Match a real browser
A correct payload is half a solve. Before the anti-bot looks at your cookie, it fingerprints the connection. If that does not look like the browser your payload describes, you are blocked anyway.
Our payloads describe Chrome on Windows, so your client must be Chrome on Windows too.
What gets checked
Section titled “What gets checked”- TLS. The ciphers, extensions and curves in your handshake (JA3/JA4). Go’s, Python’s and Node’s default clients are easy to tell apart from Chrome.
- HTTP/2. The SETTINGS frame, window updates and pseudo-header order.
- Header order. Chrome sends headers in a fixed order. A library that sorts or reorders them gives you away.
A standard HTTP library controls none of this, so use a client built for it.
Use httpcloak
Section titled “Use httpcloak”httpcloak (docs) reproduces Chrome’s TLS, HTTP/2 and HTTP/3 fingerprints and keeps your header order. It has presets per browser version, and bindings for Go, Python, Node.js and C#. Use a Windows Chrome preset and keep it current.
import ( "context" "fmt"
"github.com/sardanioss/httpcloak/client")
c := client.NewClient("chrome-146-windows")defer c.Close()
resp, _ := c.Get(context.Background(), "https://example.com", nil)fmt.Println(resp.StatusCode, resp.Protocol)import httpcloak
r = httpcloak.get("https://example.com", preset="chrome-146-windows")print(r.status_code, r.protocol)import httpcloak from 'httpcloak';
const session = new httpcloak.Session({ preset: 'chrome-146-windows' });const r = await session.get('https://example.com');console.log(r.statusCode, r.protocol);session.close();Keep the session consistent
Section titled “Keep the session consistent”- User-Agent and client hints. Send one
User-Agentfor the whole session, withsec-ch-uaheaders for the same Chrome version. When our API returns headers (DataDome’sheaders, Incapsula’ssec_ch_ua), send those values. - Accept-Language. Send the same value on every request. Where an endpoint asks for it, pass the value you send.
- Proxy. Use one proxy for the whole flow. Where an endpoint takes
ip_addressorip, pass that proxy’s exit IP, so the payload’s timezone matches where your requests come from.
Copy the header order from a real browser
Section titled “Copy the header order from a real browser”Record a real Chrome session against the site with Charles Proxy and copy each request’s headers in order. Proxyman and Fiddler do not keep HTTP/2 header order, so they show you the wrong order.