Skip to main content
datadomereverse engineeringarchitecture8 min readBy Catmouse Engineering

DataDome Architecture: ddjskey, cid, and Cookie Lifecycle

Last reviewed
Short answer

DataDome is a cookie-centric bot management architecture that issues a single session cookie, evaluates background telemetry via /js/ (ddjskey), and serves interstitial (t: "it") or slider (t: "fe") challenges through window.dd. Below: how to inspect these flows in HAR captures versus Kasada.

Who this is for

Security researchers and protocol engineers analyzing HAR captures who want to decode window.dd parameters, x-dd-b headers, and session cookie rotation—and avoid sending non-Kasada challenge HTML to POST /Solver/solve.

On this page
  1. How does the edge module structure its window.dd challenge object?
  2. What is the difference between interstitial, slider, and bv blocks?
  3. How does the background /js/ tag rotate the session cookie?
  4. How can you separate these challenges from Kasada in a HAR file?
  5. Key takeaways
  6. Conclusion and scope
  7. Evidence and sources
  8. Frequently asked questions

How does the edge module structure its window.dd challenge object?

When the edge module intercepts a request, it returns an HTML page embedding a configuration object that selects the challenge delivery route.

Over a trusted TLS session, the protected origin seeds an initial session cookie via Set-Cookie (according to IETF RFC 6265). If the edge module decides to challenge the client (for example, on a checkout or ticket search route), it responds with HTTP 403 Forbidden (RFC 9110), an x-dd-b diagnostic header, and an HTML document or JSON wrapper declaring var dd = {...} on window.dd.

In contrast to Kasada's /fp challenge page—which loads ips.js from a first-party UUID path—the window.dd dictionary directs the browser to construct a script or iframe URL on geo.captcha-delivery.com using the keys below:

cid (Cookie / Session Identifier)
The current session cookie value or correlation token associated with the challenged HTTP request.
hsh and ddjskey (Site Hash / Customer Key)
The 32-character hexadecimal site key identifying the customer account on the vendor's edge network.
t (Challenge Type Selector: "it", "fe", or "bv")
Determines which challenge flow the client must execute (for example, "it" for interstitial device check, "fe" for slider/captcha, or "bv" for a hard block).
s, e, and host
Challenge script integer ID (s), encrypted request context blob (e), and challenge delivery hostname (typically geo.captcha-delivery.com).

What is the difference between interstitial, slider, and bv blocks?

The single-letter t field inside the challenge configuration determines whether the client loads a background interstitial, an interactive slider, or a hard block.

Inspecting the t property inside window.dd before attempting any replay is essential. When t is "bv" (banned visitor), the edge has already rejected the IP address, TLS fingerprint, or tarnished cookie; fetching the /captcha/ URL will render a static block notice with no puzzle to complete.

Comparing challenge modes versus Kasada /fp and /tl

The table below compares the three window.dd modes and background /js/ tag against Kasada's challenge lifecycle:

Table 1. Challenge modes and /js/ telemetry compared with Kasada
Flow / SignalVendorWire TriggerClient Outcome & State Carrier
t: "it" (Interstitial)DataDomegeo.captcha-delivery.com/interstitial/Automated JS device check posts payload and returns a rotated session cookie
t: "fe" (Slider / Captcha)DataDomegeo.captcha-delivery.com/captcha/Interactive puzzle verification returns a new cookie JSON response
t: "bv" (Hard Block)DataDome403 with t: "bv" in window.ddSession or proxy exit is blocked; requires a clean connection and fresh cookie jar
/fp and /tlKasadaips.js + binary POST /tlReturns {"reload":false} and x-kpsdk-ct + x-kpsdk-r headers
Four-step architecture diagram comparing window.dd challenges with Kasada: 1. Edge returns HTTP 403 with x-dd-b header and window.dd containing cid, hsh, t (it, fe, or bv), s, and e. 2. Client requests geo.captcha-delivery.com (/interstitial/ or /captcha/) or posts background telemetry to /js/ with ddjskey. 3. Response returns JSON rotating the session cookie. 4. Comparison showing single-cookie rotation versus Kasada x-kpsdk-* headers, and why sending HTML block pages to POST /Solver/solve returns 400 invalid ipsBody.
Figure 1. How window.dd (cid, hsh, t), /js/ telemetry tags, and session cookie rotation compare with Kasada. Diagram by Catmouse Engineering.

How can you separate these challenges from Kasada in a HAR file?

Before routing a challenge response to a solver, run an ingress check on the response headers and body so window.dd pages are never mistaken for Kasada /fp scripts:

import json
import re
import sys

with open(sys.argv[1], "r", encoding="utf-8") as f:
    har = json.load(f)

for entry in har.get("log", {}).get("entries", []):
    url = entry.get("request", {}).get("url", "")
    res = entry.get("response", {})
    headers = {h["name"].lower(): h["value"] for h in res.get("headers", [])}
    body = res.get("content", {}).get("text", "") or ""

    if "x-dd-b" in headers or "captcha-delivery.com" in body:
        m = re.search(r"'t'\s*:\s*'([a-z]{2})'", body)
        mode = m.group(1) if m else "unknown"
        print(f"[DD-Challenge] {url} -> x-dd-b={headers.get('x-dd-b')} mode={mode}")
    elif "x-kpsdk-ct" in headers or "KPSDK" in body:
        print(f"[Kasada]       {url} -> x-kpsdk-ct present")

Key takeaways

  • Inspect window.dd and x-dd-b: Challenge responses return an x-dd-b header and a window.dd object containing cid, hsh, t, s, and e.
  • Check t before retrying: t: "it" is a device-check interstitial, t: "fe" is an interactive captcha, and t: "bv" is a hard block requiring a fresh connection and clean cookie jar.
  • Guard POST /Solver/solve ingress: Validate that a fetched script is a real Kasada ips.js before calling POST /Solver/solve; sending HTML block pages or URLs returns HTTP 400 invalid ipsBody.
  • Single-cookie state vs headers: This architecture rotates a single HTTP cookie via Set-Cookie and /js/ JSON responses, whereas Kasada uses x-kpsdk-* headers.

Conclusion and scope

Following these HAR classification recommendations lets your HTTP pipeline distinguish window.dd challenge responses (it, fe, bv) from Kasada challenges cleanly and prevents accidental 400 invalid ipsBody errors on POST /Solver/solve.

Scope and limitations. This article documents client-observable wire artifacts in browser HAR captures and the 400 invalid ipsBody validation rule in the Catmouse OpenAPI 3.1 contract (/openapi.json) as of 2026-10-24. Catmouse does not provide a solver endpoint for this vendor, and no performance or pass-rate figures are claimed. Test only on systems you own or have explicit written authorization to audit.

Evidence and sources

Every HTTP header, cookie rule, and solver validation behavior described in this post is grounded in the primary sources below:

Methodology and limits. Documented: client-visible headers, cookies, and window.dd keys observed in standard HAR captures, plus verified /openapi.json ingress validation rules. Not claimed: proprietary server-side detection models or solver coverage. Reviewed 2026-10-24.

Frequently asked questions

What wire signals identify this protection in an HTTP HAR capture?

The protection is identified by the datadome cookie in Set-Cookie or Cookie headers, response headers such as x-dd-b, background telemetry POSTs to /js/ with a ddjskey parameter, and challenge HTML containing a window.dd object.

What do the t values (it, fe, bv) inside window.dd mean?

Inside the window.dd challenge configuration object, t set to "it" selects a non-interactive device-check interstitial, "fe" selects an interactive slider or captcha challenge, and "bv" indicates a hard block (banned visitor) where solving is not offered on that IP or session.

How does the background /js/ tag update the session cookie?

The in-page tag script collects browser telemetry and posts form-encoded fields (including ddjskey, cid, and jsData) to the /js/ endpoint, which responds with a JSON object containing a fresh cookie string assigned via document.cookie.

What happens if a client sends an HTML block page or captcha URL to POST /Solver/solve?

Per the Catmouse OpenAPI 3.1 contract (/openapi.json), POST /Solver/solve validates that ipsBody looks like a Kasada ips.js script. Submitting an HTML block page, a URL, or a third-party script is rejected immediately with HTTP 400 invalid ipsBody and is not charged.

How does this single-cookie session state compare with Kasada?

This vendor rotates a single HTTP cookie across edge responses, /js/ telemetry posts, and geo.captcha-delivery.com challenges, whereas Kasada binds session state to custom x-kpsdk-ct and x-kpsdk-cd HTTP headers.