A Kasada 429 is not a normal rate limit. When a response is 429 (or 403) and carries x-kpsdk-* headers, Kasada refused the request because the x-kpsdk-ct session token or the x-kpsdk-cd proof of work was missing, expired, reused, or came from a client that does not match the one that earned it. Slowing down does not fix it.
To fix it, send a fresh x-kpsdk-cd with every protected call, keep the whole session on one IP, use the exact User-Agent that produced the token, and make your HTTP client look like that browser at the TLS, HTTP/2 and header level. Or get the headers from a solver API. Kasada does not document its protocol, so this guide relies on reputable public write-ups and on what you can observe in DevTools.
Quick answer: match your symptom to the fix
These are the responses people paste into search when a Kasada-protected site stops answering. Find yours:
- HTTP 429 Too Many Requests with x-kpsdk-* response headers
- Kasada refused the request. Public write-ups agree that x-kpsdk-* headers on a 429 or 403 identify Kasada, and that this 429 is a challenge, not a rate limit. Waiting will not clear it. The client needs valid x-kpsdk-ct and x-kpsdk-cd headers for that call.
- 429 on the very first request, before any content
- A new client has no Kasada session yet. The first response carries the challenge (the ips.js script) instead of the page. Load the page in a real browser to see the flow, or get headers from a solver before calling the protected endpoint.
- First call works, the same headers get 429 on the second
- x-kpsdk-cd is a per-request proof of work and is single-use; the server rejects one it has already seen. Compute or fetch a fresh x-kpsdk-cd for every protected call. Never cache it.
- Worked for a while, now every call is 429
- x-kpsdk-ct expired or the session was invalidated. Its lifetime varies by site. Run the challenge again. Do not hard-code a lifetime.
- 429 right after switching proxy or rotating IP
- The session should stay on one IP; a new exit looks like a new client with somebody else's token. Use sticky sessions: one exit IP for the whole solve-and-replay cycle.
- Fresh headers work in Chrome, fail in Python requests or Node
- Kasada compares the TLS handshake, HTTP/2 settings and header order with the browser your User-Agent claims. Use a browser-impersonating client (curl_cffi, for example) with a matching User-Agent and Chrome-like header order.
- 403 instead of 429 on a Kasada site
- ScrapingBee reports that a TLS fingerprint mismatch results in an outright 403. Fix the client fingerprint first; new tokens will not help until the TLS layer looks like a browser.
- POST /tl returns an error, no x-kpsdk-ct in the response
- The encrypted fingerprint payload was rejected. The environment that ran ips.js looked automated or inconsistent. Fix the browser, or let a solver run the flow.
Kasada does not publish technical documentation of its protocol. The behaviour above is taken from public write-ups by ScrapingBee, Bright Data, Round Proxies and nullpt.rs, checked on 2026-12-01, and from what any client can observe in DevTools. Sources are listed at the end of the article.
This error has an entry in our anti-bot error-code reference, next to every other Cloudflare, Turnstile, Kasada, Akamai and reCAPTCHA error.
How to tell a Kasada 429 from a real rate limit
A server rate limit (HTTP 429 as defined in the HTTP spec) usually comes with a Retry-After header and goes away when you slow down. A Kasada block looks similar but behaves differently. ScrapingBee and Bright Data both describe x-kpsdk-* headers on a 429 or 403 as the reliable sign that Kasada refused the request, and Bright Data notes that "the 429 is the challenge itself, not a rate limit".
Other signals that the site uses Kasada, all visible in the DevTools Network tab with "Preserve log" ticked:
- A script whose path ends in /p.js under a random-looking, site-specific path (often two UUIDs). ScrapingBee calls requests to /p.js "unique to Kasada".
- A large, obfuscated ips.js script that sets a window.KPSDK object. nullpt.rs showed that its logic runs as bytecode inside a custom virtual machine.
- A hidden iframe loading an /fp page, followed by a POST to /tl whose response carries x-kpsdk-ct.
- x-kpsdk-* request headers on the site's own XHR or fetch calls to its API, and a KP_UIDz cookie.
# is_kasada_block.py
def is_kasada_block(resp) -> bool:
"""True when a 429/403 comes from Kasada rather than a plain rate limit."""
if resp.status_code not in (429, 403):
return False
return any(h.lower().startswith("x-kpsdk-") for h in resp.headers)
# A plain rate limit usually sends Retry-After and clears on its own.
# A Kasada 429 carries x-kpsdk-* headers and will not clear by waiting:
# the client has to run the challenge (or get fresh headers) again.The x-kpsdk headers Kasada checks
Write-ups name a family of headers rather than one token. The two that cause most 429s are x-kpsdk-ct and x-kpsdk-cd. For a deeper look at each one, see our guide to the x-kpsdk-ct and x-kpsdk-cd headers.
| Header | What public write-ups say | Reusable? |
|---|---|---|
| x-kpsdk-ct | Session token, issued after the challenge passes; "expensive to produce" | Within its session, until it expires; lifetime varies by site |
| x-kpsdk-cd | Per-request proof-of-work answer; the server keeps a seen-set | No, single-use |
| x-kpsdk-st | Server clock that the per-request work is computed against | Changes with the server time |
| x-kpsdk-v | SDK version | Yes, until the script changes |
| x-kpsdk-r, x-kpsdk-c | Related challenge headers seen on blocked responses | Treat as a signal to run the challenge again |
Kasada does not document these headers. Descriptions come from Round Proxies, Bright Data and ScrapingBee and may vary between deployments. Send every x-kpsdk-* header you receive, exactly as received.
Why requests get a 429: the flow that has to succeed
In the deployments these write-ups describe, a client earns access in this order. A 429 means one of the steps failed or its result was not valid for the request you sent:
- 1. The page loads p.js from its site-specific path, and a hidden iframe loads the /fp page.
- 2. ips.js runs and sets up window.KPSDK. Its logic is bytecode in an obfuscated VM that collects browser signals.
- 3. The result is posted, as an encrypted binary payload, to /tl. If the server accepts it, the response carries x-kpsdk-ct.
- 4. For each call to a protected endpoint, the SDK computes a fresh proof of work against the server clock and adds x-kpsdk-ct, x-kpsdk-cd and the other headers to the request.
- 5. The server checks them. A missing or expired ct, or a cd that is wrong, stale or already used, gets a 429.
Fix 1: never replay x-kpsdk-cd
The most common Kasada 429 comes from copying headers out of DevTools into a script: the first request passes, the second fails. Round Proxies explains why: x-kpsdk-cd is "the per-request proof-of-work answer: cheap, and single-use", and the server "keeps a seen-set and rejects any CD it has already accepted". ScrapingBee lists the same mistake, a reused single-use x-kpsdk-cd, in its troubleshooting table.
A valid x-kpsdk-ct is not enough on its own. Each protected call needs its own cd. Only endpoints that the site registered with Kasada need the headers; page HTML, static files and unprotected endpoints usually do not.
Fix 2: treat x-kpsdk-ct as expiring and session-bound
x-kpsdk-ct can be reused across requests in its session, but not forever. Round Proxies says "CT lifetimes vary by tenant", and the token "has to be fresh and bound to your session". A script that worked for a while and then gets only 429s has usually outlived its ct.
Do not hard-code a lifetime. Detect the block (status 429 or 403 plus x-kpsdk-* headers), run the challenge again once, retry once, and stop if the retry also fails: a loop of fresh tokens from a client Kasada already distrusts only produces more 429s. Round Proxies also notes that "an exit that just got a 429 will keep getting them for a while".
Fix 3: keep one IP and a good one
Round Proxies puts it plainly: "The session needs to stay on one IP." A token earned through one exit and replayed through another looks like a stolen session. Rotating proxies that change IP per request are therefore a direct cause of 429s on Kasada sites; use sticky sessions so the challenge and every protected call share an exit.
Reputation matters too. Bright Data says Kasada checks the reputation of the IP and its ASN, and ScrapingBee says datacenter proxies "receive a negative score, even if you appear legitimate across all other layers".
Fix 4: match TLS, HTTP/2, User-Agent and header order
Bright Data writes that Kasada "reads the TLS handshake and the HTTP/2 settings, then compares them to what a real browser sends". Round Proxies adds that your TLS fingerprint and header order "have to match the browser your User-Agent claims to be", that HTTP/1.1 is a red flag, and that missing Sec-CH-UA or Sec-Fetch-* headers cost you. ScrapingBee reports that a mismatch at the TLS layer results in a 403.
- Replace python-requests, Node fetch and Go net/http on protected calls with a client that impersonates Chrome's TLS and HTTP/2, such as curl_cffi.
- Send the exact User-Agent of the browser that produced the token, with a Chrome version that matches the impersonation profile.
- Send the headers a real Chrome sends for that request (Accept, Accept-Encoding, Sec-CH-UA, Sec-Fetch-*), in Chrome's order.
- Keep the KP_UIDz and other cookies the site sets in a cookie jar instead of dropping them between calls.
When reverse engineering stops being worth it
If you need Kasada headers from code rather than a browser, you have two choices: run the real script in a real browser for every session, or rebuild the ips.js VM, the /tl payload and the proof of work yourself. nullpt.rs showed how the VM works, and our Kasada bypass guide explains why keeping such a rebuild working is a continuous job: the script is rebuilt regularly and every site has its own configuration.
NSLSolver runs that flow on its side and returns the headers. POST to https://api.nslsolver.com/solve with type "kasada", the page url, a kasada_config object with p_js_path, fp_host and tl_host (plus cd_constant if the site needs one), the user_agent you will replay with and its Chrome major version as ua_version. proxy is optional; if you pass one, replay through the same proxy. The response holds the x-kpsdk-* headers in headers. A solve takes 3 to 10 seconds and costs $1.50 per 1,000 solves, only successful solves are billed, and sign-ups with Google, Gmail or Proton get $0.10 of free credit (about 125 Turnstile solves). See the Kasada solver API page and pricing for details.
Because cd is single-use, request one solve per protected call. Only automate sites you own or are authorised to access.
# kasada_429_fix.py (pip install curl_cffi requests)
import os
import requests
from curl_cffi import requests as cffi
UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/145.0.0.0 Safari/537.36"
PROXY = "http://user:pass@sticky-proxy.example.com:8080" # one exit IP per session
def kasada_headers() -> dict:
r = requests.post(
"https://api.nslsolver.com/solve",
headers={"X-API-Key": os.environ["NSLSOLVER_API_KEY"]},
json={
"type": "kasada",
"url": "https://www.example.com/login",
"kasada_config": {
"p_js_path": "/<uuid-1>/<uuid-2>/p.js", # the target's real p.js path (Network tab)
"fp_host": "www.example.com", # host serving /fp
"tl_host": "api.example.com", # host receiving POST /tl
},
"user_agent": UA, # the exact UA you replay with
"ua_version": 145, # its Chrome major version
"proxy": PROXY, # optional; if set, replay through the same proxy
},
timeout=180, # a solve can take up to 120 s: never time out sooner
)
data = r.json()
if r.status_code != 200 or not data.get("success"):
raise RuntimeError(f"solve failed: {r.status_code} {data}")
return data["headers"] # x-kpsdk-ct, x-kpsdk-cd and the other x-kpsdk-* headers
# x-kpsdk-cd is single-use: one solve per protected call
s = cffi.Session(impersonate="chrome") # Chrome-like TLS and HTTP/2
resp = s.post(
"https://api.example.com/v1/search",
headers={**kasada_headers(), "User-Agent": UA, "Content-Type": "application/json"},
json={"q": "..."},
proxies={"http": PROXY, "https": PROXY},
timeout=30,
)
print(resp.status_code)Related guides
- Kasada solver API: x-kpsdk-ct and x-kpsdk-cd from one HTTP call.
- NSLSolver pricing: Kasada at $1.50 per 1,000 successful solves.
- Kasada x-kpsdk-ct and x-kpsdk-cd headers explained: where each header comes from and what x-kpsdk-cd contains.
- Kasada bypass guide: end-to-end Python walkthrough with the SDK.
- curl_cffi still getting 403: TLS impersonation and its limits.
Sources (checked 2026-12-01)
- ScrapingBee: How to bypass Kasada (p.js, x-kpsdk-* headers, 403/429)
- Bright Data: How to bypass Kasada (429 as the challenge, ips.js, KP_UIDz)
- Round Proxies: How Kasada works (ct vs cd, seen-set, x-kpsdk-st, IP)
- nullpt.rs: Devirtualizing Nike.com's bot protection (Kasada ips.js VM)
- MDN: 429 Too Many Requests and Retry-After