Akamai _abck Cookie and sensor_data Explained
What the Akamai _abck cookie and sensor_data post actually do, how to read a Reference # block, and why vanilla Playwright still fails on Akamai sites.

The Akamai _abck cookie is the record Akamai Bot Manager keeps of whether your browser session has passed its client-side checks, and sensor_data is the encoded telemetry blob your browser posts to earn that pass. If you scrape or test sites behind Akamai, those two names explain most of the 403s you'll see. This post covers what each cookie means, how the sensor post changes _abck, how to read an Akamai Reference # block page, and why a stock Playwright script still gets flagged. It explains the mechanism. It doesn't include sensor-generation code.
The Short Version
Akamai Bot Manager sits at the CDN edge in front of the site. Its own documentation lists five detection methods: Akamai-validated bots, custom-categorized bots, transparent detection (header order, browser-version mismatches, known bot frameworks), active detection ("an interaction to confirm the request is coming from a web browser"), and behavioral detection, which is limited to Bot Manager Premier.
The _abck cookie and sensor_data belong to the active and behavioral layers:
- The page loads an obfuscated Akamai script from a first-party path on the site itself.
- The script collects device, browser and interaction data, encodes it as
sensor_dataand POSTs it back to that path. - The edge evaluates the payload and responds with a new
Set-Cookie: _abck=.... - Protected requests later in the session carry that
_abck. The edge combines it with your TLS and HTTP/2 fingerprint, IP reputation and request pattern into a bot score.
So _abck isn't a password you can copy. It's a session-bound verdict that the edge re-checks against everything else about the request. If you only need the practical playbook for collecting public data from these sites, our guide on how to bypass Akamai Bot Manager covers it. This post goes one level deeper into what the cookies and payloads mean.
Scraping at scale? Skip the blocks.
Fast, unblockable datacentre proxies with unlimited bandwidth.
One Session, Step by Step
Here's the sequence a real Chrome session goes through on a typical Bot Manager deployment. Deployments differ, so treat it as the common shape rather than a spec.
- First HTML request. The edge applies transparent detection before your request reaches the origin: TLS ClientHello, HTTP/2 SETTINGS and pseudo-header order, header order, User-Agent consistency and IP reputation. A plain HTTP client often gets a 403 here and never sees a cookie.
- HTML with the sensor script. If you pass, the response sets
bm_szand an initial_abck, and the HTML references a script served from the site's own domain under an opaque, deployment-specific path. - Telemetry collection. The script runs in the page, gathers environment and event data, and builds
sensor_data. - The sensor POST. The browser sends
POSTwith a JSON body of the form{"sensor_data":". The response carries no page content. Its job is a fresh"} Set-Cookie: _abck=.... - More posts. On many sites the script posts again after mouse, key or touch events. Some deployments use a "stop signal": once the cookie is good, the script stops posting.
- Protected requests. Login, search, cart and API calls carry the updated cookies. The edge checks
_abck, the bot score and its rules, then allows, challenges, slows or denies the request.
Step 1 is why fingerprint work comes first. If the TLS or HTTP/2 signature reads as a Python library, the sensor stage never starts. Our explainer on TLS fingerprinting covers that layer.
Reading an _abck Value
An _abck value is a long string with fields separated by ~. Its usual shape looks like this (values shortened):
_abck=6A1F...C3B2~-1~YAAQ...long-encoded-blob...==~-1~-1~-1
Akamai doesn't publish the field layout, so everything in this section is community-documented behaviour, not vendor documentation:
- Field 0 is a hex identifier for the session.
- Field 1 is the one everyone watches. In the commonly cited heuristic,
-1means the sensor hasn't been accepted (or was rejected) and0means the edge accepted it. A fresh cookie from a plain HTTP client nearly always shows~-1~here. - Field 2 is an encoded blob the edge reads back. You can't usefully decode or edit it.
- The trailing fields change between states and deployments. One commercial SDK's public documentation says protected endpoints "can invalidate a session by setting a new
_abckcookie that ends in~0~-1~-1or similar". After that, a single new sensor post is supposed to restore it.
The same SDK documents the stop signal as well: on deployments that enable it, the script stops sending sensors once the cookie is valid. Its docs add the important caveat that "some applications do not activate the stop signal feature," and that on those sites you can't confirm a cookie is good without actually sending it to a protected endpoint.
That caveat matters more than the heuristic. A cookie value alone doesn't prove you're through. The real test is whether the protected request returns 200 with the content you expected. Use the field-1 check to rank retries, never as proof of success.
What sensor_data Carries (and "v3")
sensor_data is a single encoded string, and Akamai has never published its format. Public reverse-engineering write-ups agree on the general categories it covers:
| Category | Examples of what is sampled |
|---|---|
| Browser identity | User agent, `navigator` properties, language list, plugins, platform |
| Rendering | Canvas and WebGL output, screen and window geometry, colour depth |
| Automation tells | `navigator.webdriver`, injected globals, missing APIs that real Chrome has |
| Timing | Script execution timing, performance counters, timestamps relative to page load |
| Interaction | Counts and timing of mouse moves, clicks, key presses, touch and scroll events |
| Integrity | Checksums tying the payload to the specific script build that produced it |
About "Akamai v3 sensor data". Scraping forums and solver vendors label sensor generations "1.x", "v2" and "v3". Akamai publishes no version numbers, so these are community names. What people mean by v3 is that the script and its encoding change frequently per deployment, so a payload built for one site's script doesn't validate on another. That's the point of the integrity category: the edge can tell whether the payload came from the script it served.
It also explains why "sensor generator" projects break so often, and why vendors who sell them run update teams. For you, the takeaway is to avoid strategies that depend on replaying or synthesising a payload. They're fragile, they're an arms race you'll lose on maintenance alone, and on many sites they put you on the wrong side of the terms of service.
Crypto Challenges, Bot Score and Response Actions
Not every Akamai block is about _abck. Akamai's API reference for challenge actions documents three challenge types:
| `challengeType` | What the client must do | Documented settings |
|---|---|---|
| `GOOGLE_RECAPTCHA` | Solve a CAPTCHA | Site and secret key |
| `AKAMAI_WEB_CRYPTO` | Solve a proof-of-work puzzle in the browser | `cryptoChallengeDurationInSeconds` up to 120 |
| `AKAMAI_MOBILE_CRYPTO` | Same, for mobile app clients | Same |
The other fields are telling. challengeIntervalInSeconds (1 to 7200) sets how long a pass lasts before the client is challenged again. allowFullCpuUtilization lets the puzzle use 100% of a CPU core. Akamai's guidance is to set it to false "if more humans than bots see this challenge." In the field the web crypto challenge shows up as an interstitial with an iframe (id="sec-cpt-if", provider="crypto") and a sec_cpt cookie. Proof-of-work is about cost. It doesn't care whether you're a bot, only that every request you make burns real compute.
Above all of this sits the bot score. Akamai's "Handle adversarial bots" guide describes it as "an algorithmic measure from 0 to 100 which indicates the probability that a requestor is a bot," where 0 is human and 100 is a bot. Site owners map score bands to responses: a cautious band they only monitor, a strict band they challenge, and an aggressive band they deny. Akamai's own advice is to run in monitor mode "for a few weeks" before turning on mitigation. A scraper that worked for a month and then broke overnight may simply have hit the day the site switched from monitor to deny.
The response actions Akamai lists are monitor, challenge, slow or tarpit, serve alternate content and deny. Tarpit and serve-alternate are the nasty ones for scrapers, because they don't look like errors:
- Tarpit holds the connection open without answering, so you see timeouts rather than 403s.
- Serve alternate returns a different page, possibly cached or deliberately misleading, so the response looks like a 200.
Akamai also sells Content Protector, which adds detections aimed specifically at scrapers. It targets exactly the traffic in this post.
Decode an Akamai Reference Number
On 20 November 2026 we requested https://www.akamai.com/ with curl and a desktop Chrome User-Agent string. Akamai's own site returned its standard edge block:
HTTP/1.1 403 Forbidden
Content-Type: text/html
Content-Length: 368
Akamai-GRN: 0.7076cd17.1795195981.14501357
Set-Cookie: _akmCtx=...; path=/; domain=.www.akamai.com; Secure
<TITLE>Access Denied</TITLE>
You don't have permission to access "http://www.akamai.com/" on this server.
Reference #18.7076cd17.1795195981.14501357
https://errors.edgesuite.net/18.7076cd17.1795195981.14501357
Three things are worth knowing about it:
- There's no
_abckin the response. The block happened at the transparent-detection stage, before any sensor script was served. If your client gets this page, sensor work isn't the fix. Look at the fingerprint and IP first. - There's no
Server: AkamaiGHostheader. Many guides say to look for it. On this edge response it was absent, and the dependable markers were theAkamai-GRNheader, theReference #line and theerrors.edgesuite.netlink. - The reference number has structure. The third field is a Unix timestamp.
1795195981decodes to 2026-11-20 17:33:01 UTC, exactly the response'sDateheader. A second request 13 seconds later produced1795195994. TheAkamai-GRNheader carries the same identifier.
from datetime import datetime, timezone
def decode_akamai_reference(ref: str) -> dict:
"""Split an Akamai 'Reference #' like 18.7076cd17.1795195981.14501357."""
prefix, edge_hex, ts, request_id = ref.strip().lstrip("#").split(".")
raw = bytes.fromhex(edge_hex)
return {
"prefix": prefix,
"edge_hex": edge_hex,
"edge_hex_as_ipv4_le": ".".join(str(b) for b in reversed(raw)), # unconfirmed meaning
"blocked_at_utc": datetime.fromtimestamp(int(ts), timezone.utc).isoformat(),
"request_id": request_id,
}
print(decode_akamai_reference("18.7076cd17.1795195981.14501357"))
# blocked_at_utc: 2026-11-20T17:33:01+00:00, edge_hex_as_ipv4_le: 23.205.118.112
Read in reverse byte order, the second field decodes to an address inside Akamai's 23.x space, but not the IP we'd connected to (23.202.229.242). Our reading is that it identifies an internal edge server. That's unconfirmed, and nothing depends on it. The timestamp alone is useful:
- Log the full reference with every failed request.
- If you have a legitimate reason to contact the site owner, send it with the exact time. That's what their security team needs to find you in their logs.
Why Vanilla Playwright Fails on Akamai
"I'm using a real browser, so why am I blocked?" is the most common Akamai question we see. The answer is that a Playwright-launched browser is real, but it isn't ordinary. On 20 November 2026 we launched four configurations with Playwright 1.63 (Python) on a Windows server. Each one opened a local data: page, with no third-party site involved, and we read what any page script can see:
| Signal seen by page JS | Headless shell (Playwright default) | Bundled Chromium, new headless | Chrome 157, headless | Chrome 157, headed |
|---|---|---|---|---|
| `navigator.webdriver` | `true` | `true` | `true` | `true` |
| User agent token | `HeadlessChrome/151.0.7922.34` | `HeadlessChrome/156.0.0.0` | `HeadlessChrome/157.0.0.0` | `Chrome/157.0.0.0` |
| `navigator.plugins.length` | 0 | 5 | 5 | 5 |
| `typeof window.chrome` | `undefined` | `object` | `object` | `object` |
| WebGL renderer | SwiftShader (software) | Real GPU (ANGLE D3D11) | Real GPU | Real GPU |
| `languages` | `["en-US"]` | `["en-US","en"]` | `["en-US","en"]` | `["en-US","en"]` |
| Screen vs outer window | 1280x720 / 1280x720 | 1280x720 / 1280x720 | 1280x720 / 1280x720 | 1280x720 / **1296x808** |
What the table shows:
navigator.webdriverwastruein every mode, including headed real Chrome. The W3C WebDriver spec defines this flag as the signal that the browser is under automation control. Playwright drives Chrome over--remote-debugging-pipe, and the flag stays on.- Every headless mode announces itself. It sends
HeadlessChromein the User-Agent, even withchannel="chrome". Many scripts that "use real Chrome" are still headless and still say so. - Playwright's default headless mode is the separate headless shell build. Playwright's docs say it ships "a regular Chromium build for headed operations and a separate chromium headless shell for headless mode." That build lacks
window.chrome, has no plugins, and on this box rendered WebGL with SwiftShader. Playwright's launch switches include--enable-unsafe-swiftshader, so on a GPU-less server even the newer modes fall back to the software renderer, a classic server tell. - Headed mode has a geometry tell. Playwright's default 1280x720 viewport emulation set
screento 1280x720 while the real window measured 1296x808. The window was bigger than the screen it supposedly sat on.
CDP signals. For years the strongest automation tell was a side effect of the Chrome DevTools Protocol Runtime.enable command, which Playwright and Puppeteer send by default. The Rebrowser patches project says this detection is "used by all major anti-bot software." Castle's research showed that two V8 commits from 7 and 9 May 2025 ("Avoid error side effects in DevTools" and "Apply getter guard throughout error preview") broke the best-known version of the check in current Chrome. Other CDP side effects remain, and older browser builds still leak.
Behaviour. A script that calls page.goto() and reads the DOM produces no mouse, key or scroll events. On deployments that weigh interaction data, a session with zero events and machine-perfect timing looks exactly like what it is.
Network and IP. Even a perfectly configured browser running on a cloud server exits from a hosting ASN. Its _abck may validate while the bot score stays high because of IP reputation. Rotating the IP mid-session makes it worse, because the validated cookies were issued to the old IP.
Patched drivers fix individual signals. Patchright, Rebrowser and Camoufox each take a different approach, compared in our undetected-chromedriver vs Patchright vs Camoufox breakdown. None of them fixes IP reputation or missing behaviour, and Akamai scores all of it together.
Diagnose Your Own Session
You can classify most Akamai failures without touching the sensor itself. The helper below reads only what came back: status, headers, body and cookie jar.
import re
def akamai_verdict(status: int, headers: dict, body: str, cookies: dict) -> str:
h = {k.lower(): v for k, v in headers.items()}
abck = cookies.get("_abck", "")
if status == 403 and "Reference #" in body:
if not abck:
return "edge block before sensor stage: fix TLS/HTTP2 fingerprint or IP first"
return "edge block with sensor cookies: score too high (IP, behaviour or rules)"
if "sec-cpt-if" in body or "sec_cpt" in cookies:
return "crypto challenge interstitial: needs a real browser to run proof-of-work"
if status == 429:
return "rate limited: slow down, this is not a fingerprint problem"
if abck:
parts = abck.split("~")
if len(parts) > 2 and parts[1] == "-1":
return "sensor not accepted yet (heuristic): page scripts did not validate"
if status == 200 and len(body) < 2000 and not re.search(r"<(main|article|table)", body):
return "suspicious 200: possible serve-alternate page, check content"
return "looks normal: verify the content you expected is actually there"
To check your own browser setup against the signals in the table above, run this on a page you control. It's the same probe we used:
from playwright.sync_api import sync_playwright
PROBE = """() => {
const gl = document.createElement('canvas').getContext('webgl');
const ext = gl && gl.getExtension('WEBGL_debug_renderer_info');
return { webdriver: navigator.webdriver, ua: navigator.userAgent,
plugins: navigator.plugins.length, chrome: typeof window.chrome,
webgl: ext ? gl.getParameter(ext.UNMASKED_RENDERER_WEBGL) : null,
screen: [screen.width, screen.height], outer: [outerWidth, outerHeight] };
}"""
with sync_playwright() as p:
browser = p.chromium.launch(channel="chrome", headless=False)
page = browser.new_page()
page.goto("data:text/html,<p>probe</p>")
print(page.evaluate(PROBE))
browser.close()
If your session validates but dies after a few requests, check whether your proxy rotates the exit IP per request. Akamai cookies are tied to the IP that earned them, so keep one exit per browser session. A sticky session proxy on SparkProxy's port 11002 holds the same datacenter IP for the session:
import os
browser = p.chromium.launch( # inside the sync_playwright() block above
channel="chrome",
proxy={
"server": "http://gateway.sparkproxy.io:11002", # sticky: same exit for the session
"username": os.environ["SPARKPROXY_USER"],
"password": os.environ["SPARKPROXY_PASS"],
},
)
Datacenter IPs are fine for most sites and for testing your own Akamai configuration. On aggressive deployments, expect hosting ranges to score worse than residential ones whatever the browser does. That's IP reputation, and no cookie can fix it.
What a Managed Akamai API Does
People searching "akamai bypass api" usually want someone else to own the browser farm. A managed scraping API does four things you'd otherwise build yourself:
- Runs a real browser per request, so the page's own Akamai script generates genuine
sensor_datain a genuine environment. Nobody synthesises the payload. - Patches the automation tells from the table above: the webdriver flag, the headless UA, window geometry and plugin lists.
- Exits from IPs the target accepts, often residential, with retries on a fresh exit when a request scores badly.
- Adds behaviour: idle delays, scrolling and pointer movement, so interaction-weighted deployments see events.
The SparkProxy Scraping API exposes each of those as a parameter: render_js (headless Chromium, on by default), human (simulated mouse movement and random delays, on by default), premium_proxy (a residential exit from the premium pool) and stealth (homepage pre-warm, Google referrer and longer idle delays). With json_response=true you get an envelope with job_id, status_code, duration_ms and the base64 page body, which lets you run the akamai_verdict() check above on the result:
import base64, os, requests
r = requests.get(
"https://scrape.sparkproxy.io/api/v1",
headers={"X-API-Key": os.environ["SPARKPROXY_API_KEY"]},
params={
"url": "https://target.example/product/123",
"render_js": "true", # real browser runs the site's own sensor script
"premium_proxy": "true", # residential exit (25 credits with JS)
"stealth": "true", # pre-warm + referrer + idle delays (+5 credits)
"json_response": "true", # envelope with status_code and base64 body
},
timeout=120,
)
env = r.json()
html = base64.b64decode(env["body"]).decode("utf-8", "replace")
print(env["status_code"], env["duration_ms"], akamai_verdict(env["status_code"], {}, html, {}))
Know the trade-offs before you pick this route:
- Every call is a fresh browser. The docs say
session_id"does not persist cookies across requests," so each request earns its own_abck. That suits independent product pages. Multi-step flows need thecookiesparameter or a self-managed browser. - Price per request. Rendering plus a residential exit costs 25 credits per request, against 1 for a plain HTTP fetch. Run plain fetches first and escalate only the URLs that fail.
- No guarantees. A site whose rules deny every non-human pattern still denies it. Our scraping API vs self-managed proxies comparison covers the break-even point.
The Legitimate Route: Get Recognised
Everything above is about looking like a browser. The more durable fix for many teams is to stop pretending and be identified properly. Akamai offers three routes.
Custom-categorized bots. Akamai's detection docs say site owners can "create your own bot categories" and define vendor or partner bots "as friendly in order to allow them." If you're collecting data under a partnership, for price monitoring of your own listings, or for a customer's QA, ask the site owner to add your crawler. Give them your fixed IPs and a stable User-Agent, which are much easier to allowlist than a rotating pool.
Akamai-validated bots and the bot directory. Akamai keeps a directory of known bots. On 3 September 2026 it split AI bots into three categories: AI training crawlers (GPTBot, ClaudeBot, Meta-ExternalAgent), AI search crawlers (OAI-SearchBot, Claude-SearchBot, PerplexityBot) and AI fetchers and agents (ChatGPT-User, Claude-User, Perplexity-User and others). Site owners now set policy per category rather than a blanket allow or block.
Web Bot Auth. On 10 November 2025 Akamai announced support for Web Bot Auth, which lets a bot prove its identity by signing requests under RFC 9421 (HTTP Message Signatures):
- The bot publishes its public keys at a well-known URL as
application/http-message-signatures-directory+json. - It sends
Signature-InputandSignatureheaders with each request. - The Akamai edge fetches the key directory, verifies the signature and classifies the request as validated-bot traffic.
Site owners can then allow, challenge, delay or block those bots by policy. Akamai named OpenAI and Amazon AgentCore as early partners. Its announcement doesn't describe an enrollment process for smaller operators, so treat this as the direction of travel rather than a switch you can flip today.
If your use case can survive being identified, this route ends the cat-and-mouse. If it can't survive being identified, ask whether you should be collecting that data at all.
Frequently asked questions
FAQ
_abck is the cookie Akamai Bot Manager uses to record whether a browser session's sensor data has been accepted. The page's Akamai script posts sensor_data, and the edge answers with an updated _abck. Protected requests then carry it, and the edge checks it alongside your fingerprint, IP and behaviour.
In the widely used community heuristic, a -1 in the second ~-separated field means the sensor hasn't been accepted, and 0 means it has. Akamai doesn't document the format, layouts vary by deployment, and some sites don't use the stop signal. Treat the value as a hint, and the protected page returning real content as the proof.
sensor_data is an encoded string the Akamai script builds in the browser from environment details, rendering output, automation tells, timing and interaction events, then POSTs to an opaque first-party path. The payload is tied to the specific script build that produced it, which is why replayed or synthesised payloads go stale quickly.
"v3" is a community label, not an Akamai version number. It refers to the current generation of the sensor script, whose code and encoding change frequently and differ per deployment, so a payload generated for one site or script version won't validate elsewhere.
In our 20 November 2026 test, Playwright-launched Chrome exposed navigator.webdriver = true in all four launch modes, and every headless mode sent HeadlessChrome in its User-Agent. The default headless shell also had zero plugins and a software WebGL renderer. Add a hosting-provider IP and zero interaction events, and the bot score is high before _abck even matters.
Managed scraping APIs, including the SparkProxy Scraping API, run a real browser per request so the site's own Akamai script validates the session, and add residential exits and human-like behaviour. They raise success rates on public pages but can't override a site that denies automation outright, and each call starts a fresh session.
Get 20% off your first month
Premium datacentre proxies with unlimited bandwidth. Use the code at checkout.
Save up to 15% more on quarterly, half-yearly and yearly plans
Related articles

Turnstile Token Missing, Rejected or Expired: Fixes
Fix Turnstile token errors on your own forms: missing-input-response, invalid-input-response, timeout-or-duplicate, the 300-second rule and test keys.

Claude Code Web Fetch 403: Why Agents Get Blocked
Why Claude Code's WebFetch gets 403 errors: the Claude-User agent, Cloudflare agent policies, JS challenges and no JS execution, plus fixes that respect sites.

Cloudflare Error 1020 Access Denied: Scraper Fixes
Cloudflare error 1020 means a site's security rule blocked you, not a rate limit. Tell it apart from 'Sorry, you have been blocked', 1010 and 1015, and fix it.
