Anti-bot protection

How to bypass Kasada bot protection when scraping public pages

Kasada takes a different approach from most anti-bot vendors: there is no CAPTCHA and no button. A browser runs an obfuscated script, does some proof-of-work, and gets tokens; anything that cannot run the script simply gets refused.

That makes it invisible to people and opaque to scrapers. This guide covers how to recognise it and what works.

Developer guide 9 min read

How to tell a site uses Kasada

Kasada shows up in request headers and its challenge script rather than in cookies with an obvious name.

SignalWhereWhat it means
x-kpsdk-ct / x-kpsdk-cdRequest and response headersKasada's client token and proof-of-work answer, attached to protected requests.
x-kpsdk-vRequest headerThe client SDK version.
ips.jsScript URLThe obfuscated challenge script.
429 on the first loadStatus codeOften the first response to a new client: run the script, then retry.

How Kasada decides you are a bot

Kasada assumes every client is a bot until it proves otherwise by running its code.

Obfuscated, changing challenge

The script runs in a custom virtual machine and is re-obfuscated often, which makes reverse-engineering it expensive and short-lived.

Proof-of-work

The client must spend some compute per token. Negligible for one visitor, a real cost at bot scale.

Environment checks

The script inspects the browser for automation and inconsistencies, like the other vendors.

Tokens on protected calls

Protected requests, often API calls the page makes, must carry fresh x-kpsdk tokens.

What people try, and why it breaks

Plain HTTP clients

Breaks quickly

They cannot run the script, so they never get tokens.

Reverse-engineering the VM

Helps, not enough

Has been done, and has to be done again every time the script changes.

Copying tokens from a browser

Breaks quickly

Tokens are short-lived and bound to the client that produced them.

What actually gets through

The practical answer to Kasada is to let a real browser run its script.

  1. 1

    Use a real browser engine

    It runs ips.js and the proof-of-work like any visitor's browser and gets valid tokens without anyone reverse-engineering anything.

  2. 2

    Read the page, not the protected API

    Where the data is in the rendered page, take it from there instead of calling the page's protected API endpoints directly.

  3. 3

    Residential exits, low rate

    The script is not the only signal; IP and rate still count.

  4. 4

    Wait for the content

    The first response may be a 429 and a script; wait for the selector of the content you need, not for the first load.

Getting past Kasada with UnblockingAPI

Send the URL you want. You do not pick a proxy type, a browser or a "premium" mode: the API tries a fast plain fetch with a real Chrome TLS and HTTP/2 fingerprint first, and switches to a real browser on a residential exit when the answer is a block, a challenge or an empty shell. A request that fails is not charged.

curl -G "https://api.unblockingapi.com/unblock" \
  -H "X-Api-Key: $UNBLOCKINGAPI_KEY" \
  --data-urlencode "url=https://www.example.com/event/123" \
  --max-time 180
import os, requests

r = requests.get(
    "https://api.unblockingapi.com/unblock",
    params={"url": "https://www.example.com/event/123"},
    headers={"X-Api-Key": os.environ["UNBLOCKINGAPI_KEY"]},
    timeout=180,
)
result = r.json()

if result["status"] == "succeeded":
    print(result["http_response_code"], result["render_reason"])
    html = result["response"]   # the page itself, not the challenge
else:
    print("failed, not charged:", result.get("error"))

render_reason in the response says how the page was fetched: plain, fallback:challenge (the plain fetch hit a wall, so a browser took over), replay (a plain fetch carrying the session a browser earned earlier) and so on. What a site needs is learned per site, so the second request to a Kasada site goes straight to whatever worked.

What happens for Kasada specifically

  • —A refused plain fetch moves to a real browser on a residential exit, which runs Kasada's script and proof-of-work like any visitor.
  • —Use wait_for with a CSS selector of the content you need, so capture waits for the real page rather than the first response.
  • —Retries inside a request go out on exits the request has not used.
Pages that fill in after load need a wait: wait_for with a CSS selector of the content, or scroll_steps for lists that grow as you scroll. See the API docs for every option.

When it still fails

No tool gets through every Kasada configuration every time, and anyone who promises 100% is guessing. The honest limits:

  • —Data that only comes from Kasada-protected API calls made after user interaction. Those are interactions, not page reads.
  • —Anything behind a sign-in. If a page needs an account, it is not a public page and is out of scope, both technically and under the Acceptable Use Policy.
  • —If every attempt inside the request's budget is blocked, you get status: "failed" and the request costs nothing. You only pay for pages that came back.

Responsible use

This guide is about reading public pages that a person can open in a browser without signing in. It is not about getting into accounts, skipping paywalls or overloading a site. Keep request rates reasonable, respect the law where you and the site operate, and follow the Acceptable Use Policy.

Frequently asked questions

Kasada's design is to make every client prove itself by running obfuscated code and doing proof-of-work. People never see anything; clients that cannot run the code are refused.

Tokens produced by Kasada's script: x-kpsdk-ct is the client token, x-kpsdk-cd the proof-of-work answer. Protected requests need fresh ones.

That is often Kasada's way of handing a new client its challenge script. A browser runs it and retries; a plain HTTP client just sees the 429.

Try a Kasada-protected URL.

Test the fetching layer before building your parser. Start with 500 free credits and no credit card. See pricing for credits from €5, with no subscription.

One successful request is one credit. No multipliers for rendering, proxies or retries.

Rasmus Kjellberg

Rasmus Kjellberg

Founder & Developer at UnblockingAPI

Last updated November 2026