Akamai Bot Manager is Akamai's bot-detection layer: an obfuscated sensor script collects browser and device signals, posts them back as sensor_data, and Akamai only treats requests as human once the _abck cookie reaches a validated state. Bypassing it means getting a validated cookie jar (_abck, bm_sz, ak_bmsc) and replaying it from the same IP, the same User-Agent and a client whose TLS and HTTP/2 fingerprint matches that browser.
You can do that by driving a real browser, by maintaining your own sensor generator, or by asking an API for the cookies. This guide explains how Bot Manager decides, why the do-it-yourself routes keep breaking, and how to use the NSLSolver Akamai API, which is in beta, from Python and Node.js. Only automate sites you own or are authorised to access.
Quick answer: symptom → fix
Find what you see on the Akamai-protected site, then apply the fix on the right.
- 403 "Access Denied" with a "Reference #" on the very first request
- The Akamai edge refused the client before any cookie mattered. Move to a clean residential or mobile sticky proxy and a client with a Chrome-like TLS and HTTP/2 fingerprint, then get cookies.
- _abck stays at ~-1~ after the sensor runs
- The sensor data was not accepted. Fix IP, User-Agent and client consistency first (see the sensor_data guide), or get validated cookies from a solver.
- Works in Chrome, 403 in python-requests, Node fetch or Go
- Your HTTP client does not look like the browser named in the User-Agent. Replay with a Chrome-impersonating client such as curl_cffi, with the same User-Agent and IP.
- Cookies work for a few requests, then 403 again
- The _abck cookie was burned or invalidated by the server. Solve again for a fresh cookie jar; keep one cookie set per IP and do not share it across workers on other IPs.
- Blocked right after rotating the proxy
- Akamai cookies are bound to the exit IP that earned them. Use a sticky session and re-solve whenever the IP changes.
- NSLSolver: "user_agent is required for akamai type" or "Proxy is required"
- Both fields are mandatory for type akamai. Send the exact User-Agent you will replay with and a proxy (http://, https:// or socks5://).
- NSLSolver: "Could not find Akamai script tag"
- The URL you sent does not load the Akamai sensor on the first GET. Send the page that actually serves the sensor script, often the login or product page.
Akamai does not document the _abck format or the sensor protocol; cookie behaviour above comes from the public write-ups listed under Sources (checked 2026-12-01). The NSLSolver error strings are the ones listed in the Akamai API reference on docs.nslsolver.com.
How Akamai Bot Manager decides who gets through
On a protected site the page loads a first-party script from a path made of random segments on the site's own host. The script collects browser, device and behaviour signals, encrypts them into a payload widely called sensor_data and POSTs it back, usually several times during the first seconds of the visit. Each accepted post can update the _abck cookie, and protected endpoints only answer normally when _abck is in a validated state.
Akamai also looks below the page. Akamai researchers published a white paper on passive HTTP/2 fingerprinting (Black Hat Europe 2017) showing that SETTINGS values and order, WINDOW_UPDATE, PRIORITY frames and pseudo-header order identify the client library whatever the User-Agent says. A python-requests or Node fetch call is recognisable before any cookie is read.
| Cookie | What it is used for | What it means for you |
|---|---|---|
| _abck | Long-lived cookie used for behavioural tracking and risk scoring (Bright Data); its state reflects whether the sensor was accepted | The one that must be validated; send it with every protected request |
| bm_sz | Session cookie set early in the visit; Hyper Solutions' SDK uses it as an input to sensor generation | Must belong to the same session as the sensor and _abck |
| ak_bmsc | Short-lived session cookie that expires within a few hours (Bright Data) | Keep it in the jar; expect to refresh it |
| bm_sv and other bm_* | Listed by Akamai as first-party cookies without a public description | Let your cookie jar carry whatever the site sets |
Akamai's cookie notice lists _abck, bm_sz, ak_bmsc and bm_sv but does not describe their contents; the roles above come from third-party write-ups.
The flow, step by step
- Your first GET sets bm_sz, ak_bmsc and an unvalidated _abck (commonly read as ~-1~ in the second field).
- The page loads the sensor script from its random-looking first-party path.
- The script POSTs sensor_data to that path one or more times.
- When a post is accepted, Akamai updates _abck to a validated state.
- Protected API calls then succeed as long as the cookie jar, the IP and the client stay consistent.
- The server can invalidate the cookie later; another accepted sensor post or a fresh session restores it.
Why do-it-yourself Akamai bypasses break
Every route has to produce the same thing, a validated cookie jar replayed consistently, and this is where home-made bypasses break:
- The sensor script is heavily obfuscated and changes over time, so a home-made generator needs ongoing reverse engineering.
- The payload is scored together with the client that sends it: a correct sensor posted from a non-browser TLS or HTTP/2 stack still fails.
- Cookies are bound to the exit IP. Scrappey lists _abck or bm_sz sent from a different IP than the previous response as a sign of shared cookies.
- Sensor, bm_sz and _abck must come from the same visit; replayed or stale sensors do not fit a real timeline.
- Real browsers are scored too: headless mode, automation flags and datacenter IPs lower the score, and each browser costs memory and seconds per page.
- A validated cookie can still be burned after some traffic, so a bypass needs a re-solve path, not a one-off.
Your options compared
If your _abck never validates, the detailed diagnosis is in our guide to Akamai sensor_data invalid and _abck stuck at -1; for recognising Akamai and replaying cookies, see Akamai Bot Manager and the _abck cookie. Here is how the main routes compare:
| Approach | What you maintain | Typical failure |
|---|---|---|
| Real browser automation (Playwright, Puppeteer, Selenium) | Browsers, stealth patches, proxies | Headless and automation signals; memory and time per page |
| Anti-detect or stealth browser | Browser builds and fingerprint profiles | Profiles drift from what Akamai expects; still one browser per session |
| Your own sensor generator + TLS-impersonating client | Reverse engineering of every sensor update, per-site differences | Breaks when the script changes; TLS/HTTP2 mismatch |
| Scraping / unlocker API | Nothing on your side; you get page bodies | Per-request cost; you do not control the session |
| Solver API (NSLSolver Akamai, beta) | Your HTTP client and a sticky proxy | Beta variability; cookies must be replayed from the same IP and User-Agent |
Bypass Akamai with the NSLSolver API (beta)
The NSLSolver Akamai solver API returns a validated Akamai cookie jar from one HTTP call. No browser is used: solving is server-side and request-based. The solver fetches your URL through your proxy, finds the Akamai sensor script in the HTML, runs that script in an isolated JavaScript environment, posts the resulting sensor data back to the site and returns the cookies once _abck is valid.
Akamai support is in beta. Expect more variability than on the Cloudflare and Kasada solvers, and build a retry path. It costs $2.00 per 1,000 successful solves, a solve averages about 15 seconds, failed solves are not billed, and sign-ups with Google, Gmail or Proton get $0.10 of free credit (about 125 Turnstile solves). POST to https://api.nslsolver.com/solve with your key in the X-API-Key header:
| Field | Required | Notes |
|---|---|---|
| type | Yes | "akamai" (alias "akamai-bypass") |
| url | Yes | The Akamai-protected page that loads the sensor script |
| user_agent | Yes | The exact User-Agent you will replay the cookies with |
| proxy | Yes | http://, https:// or socks5://; the cookies are bound to its exit IP |
| Response: cookies | - | _abck, bm_sz, ak_bmsc and any other cookie the site set |
| Response: success, type, cost | - | true, "akamai" and the USD charged (0.002) |
# akamai_bypass.py (pip install requests curl_cffi)
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/144.0.0.0 Safari/537.36"
PROXY = "http://user:pass@sticky-proxy.example.com:8080" # sticky: one exit IP for the whole session
PAGE = "https://www.example.com/login" # a page that loads the Akamai sensor script
API = "https://www.example.com/api/products" # the protected endpoint you actually want
def solve_akamai() -> dict:
r = requests.post(
"https://api.nslsolver.com/solve",
headers={"X-API-Key": os.environ["NSLSOLVER_API_KEY"]},
json={"type": "akamai", "url": PAGE, "user_agent": UA, "proxy": PROXY},
timeout=180,
)
data = r.json()
if r.status_code != 200 or not data.get("success"):
raise RuntimeError(f"solve failed: {r.status_code} {data}")
return data["cookies"] # _abck, bm_sz, ak_bmsc, ...
def new_session() -> cffi.Session:
# Same User-Agent and proxy as the solve, Chrome-like TLS and HTTP/2.
s = cffi.Session(impersonate="chrome")
s.headers["User-Agent"] = UA
s.proxies = {"http": PROXY, "https": PROXY}
for name, value in solve_akamai().items():
s.cookies.set(name, value)
return s
s = new_session()
resp = s.get(API, timeout=30)
if resp.status_code == 403: # cookie burned or invalidated: solve once more
s = new_session()
resp = s.get(API, timeout=30)
print(resp.status_code)Node.js example
The request is the same from any language. The important part is what happens after: every returned cookie goes back to the site through the same proxy and with the same User-Agent.
// akamai-bypass.mjs (Node.js 18+)
const UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/144.0.0.0 Safari/537.36";
const PROXY = "http://user:pass@sticky-proxy.example.com:8080";
const r = await fetch("https://api.nslsolver.com/solve", {
method: "POST",
headers: { "Content-Type": "application/json", "X-API-Key": process.env.NSLSOLVER_API_KEY },
body: JSON.stringify({
type: "akamai",
url: "https://www.example.com/login", // page that loads the sensor script
user_agent: UA, // required for akamai
proxy: PROXY, // required for akamai
}),
signal: AbortSignal.timeout(180_000),
});
const data = await r.json();
if (!r.ok || !data.success) throw new Error(`solve failed: ${r.status} ${JSON.stringify(data)}`);
// Send every returned cookie, through the SAME proxy, with the SAME User-Agent.
// Node's built-in fetch has its own TLS fingerprint and no proxy option, so use an
// HTTP client that supports your proxy (and, for strict sites, Chrome-like TLS).
const cookie = Object.entries(data.cookies).map(([k, v]) => `${k}=${v}`).join("; ");
console.log({ cookie: cookie.slice(0, 60) + "...", cost: data.cost });Replay rules that keep the cookies valid
- Same exit IP: use a sticky proxy session for the solve and every request that follows.
- Same User-Agent, byte for byte, and headers that belong to that browser.
- A client whose TLS and HTTP/2 look like that Chrome version (curl_cffi with impersonate="chrome" in Python).
- Send all returned cookies, not only _abck, and let the jar keep any cookie the site updates.
- On a 403 or a challenge page served with 200, solve once more; if it fails again, stop and check the IP.
- One cookie jar per IP. Do not share cookies between workers on different proxies.
Related guides
- Akamai solver API (beta): request fields, response and pricing.
- Akamai sensor_data invalid and _abck stuck at -1: what each _abck state means and how to fix the 403.
- Akamai Bot Manager and the _abck cookie: recognise Akamai and replay its cookies in Python and Node.js.
- curl_cffi still getting 403: what TLS impersonation fixes and what it does not.
- Kasada bypass guide: the same approach for the other big bot manager.
Sources (checked 2026-12-01)
- NSLSolver API reference: Akamai (request fields, response, troubleshooting)
- Akamai: cookies and similar technologies on akamai.com (_abck, bm_sz, ak_bmsc, bm_sv)
- Akamai white paper: Passive Fingerprinting of HTTP/2 Clients (Black Hat EU 2017)
- Bright Data: Akamai bot detection (_abck and ak_bmsc lifetimes)
- Hyper Solutions: akamai-sdk-go docs (bm_sz as sensor input, cookie validity)
- Scrappey: how Akamai detects bots (IP changes, IP reputation)
- Scrapfly: Akamai Bot Manager, _abck cookies and sensor data