How to bypass Akamai Bot Manager when scraping public pages
Akamai Bot Manager protects many airlines, banks, retailers and ticketing sites. Its block page is plain and unhelpful: "Access Denied. You don't have permission to access ... on this server. Reference #18.xxxx". There is no CAPTCHA to look at, just a refusal.
This guide covers how to tell you are dealing with Akamai, what its sensor collects, and what it takes to read public Akamai-protected pages.
How to tell a site uses Akamai
Akamai's bot product is identified by its cookies; the CDN by its headers and error page.
| Signal | Where | What it means |
|---|---|---|
| _abck | Cookie | Bot Manager's main cookie. Its value changes once the browser's sensor data is accepted. |
| bm_sz | Cookie | Set early in the session, used together with _abck. |
| ak_bmsc / bm_sv | Cookie | Further Bot Manager session cookies. |
| Reference #18.… | 403 body | Akamai's edge refused the request. The reference identifies the edge decision. |
| server: AkamaiGHost | Response header | Served by Akamai's edge. |
| sec-cpt / bm-verify | Interstitial script | A browser challenge page that runs and reloads (Akamai's crypto challenge). |
How Akamai decides you are a bot
Akamai combines what its edge sees on each request with telemetry a script collects in the browser, then decides on the session.
HTTP/2 and TLS fingerprinting
Akamai's researchers published some of the original work on fingerprinting HTTP/2 clients from their SETTINGS frames, window sizes and pseudo-header order. A client that claims Chrome must speak HTTP/2 exactly like Chrome.
Sensor data
On protected pages a script collects browser and device properties plus input events, encodes them, and posts them back. The _abck cookie is only validated once acceptable sensor data has been received, and later requests to protected endpoints check it.
Crypto challenge
Some configurations answer with a short page that makes the browser solve a computational challenge and reload (sec-cpt, bm-verify). Plain HTTP clients never get past it.
IP and rate
Datacenter ranges and IPs with bad history start with low trust. Bursts of requests to one path are flagged quickly.
What people try, and why it breaks
Plain HTTP with Chrome headers
Breaks quicklyThe HTTP/2 fingerprint gives it away, and protected endpoints refuse requests without a validated _abck.
Generating sensor data yourself
Helps, not enoughSome scrapers reverse-engineer the sensor script and generate the payload offline. It works until the script changes, which it does regularly and per site. It is a maintenance job, not a solution.
Copying _abck from a browser
Helps, not enoughValid for a short time and tied to the session that earned it.
Real browser on datacenter IPs
Helps, not enoughThe sensor is happy, the IP is not. Many Akamai sites refuse hosting ranges.
What actually gets through
The reliable approach is to let a real browser produce real sensor data on a trusted IP, and to give Akamai's challenge pages time to do their work.
- 1
Speak HTTP/2 like Chrome
For plain requests, use a client that reproduces Chrome's HTTP/2 settings and header order as well as its TLS handshake. Some Akamai sites let that through for public pages.
- 2
Run the sensor in a real browser
When plain requests are refused, a real engine with patched automation traces generates genuine sensor data and gets _abck validated the normal way.
- 3
Let sec-cpt and bm-verify finish
These pages answer with a blocking status and reload once their script has run. Waiting a few seconds turns many apparent 403s into the real page.
- 4
Residential exits, homepage first
Start sessions on the homepage, keep cookies within the session, and rest an exit after it is refused on a site.
Getting past Akamai 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/en/product/123" \
--max-time 180import os, requests
r = requests.get(
"https://api.unblockingapi.com/unblock",
params={"url": "https://www.example.com/en/product/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 Akamai site goes straight to whatever worked.
What happens for Akamai specifically
- —Plain fetches use Chrome's TLS and HTTP/2 fingerprint, including SETTINGS and header order.
- —When refused, the request goes to a real browser on a residential exit, which runs Akamai's sensor script as any visitor's browser would.
- —Akamai's
sec-cptandbm-verifychallenge pages are recognised and given time to reload into the page before the blocking status is believed. - —Sessions start on the site's homepage, and an exit refused on a site rests from it for 30 minutes.
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 Akamai configuration every time, and anyone who promises 100% is guessing. The honest limits:
- —Endpoints that require a validated session from a sequence of user actions (search forms, checkouts). Those are interactions, not page reads.
- —Sites that refuse all traffic from outside their market. Use
locationto fetch from the right country. - —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
Frequently asked questions
Akamai's edge refused your request. The reference number identifies the decision for the site owner; it does not tell you why. Usually it is the IP, the HTTP/2 or TLS fingerprint, or a missing validated session cookie.
Akamai Bot Manager's main cookie. It is issued early and becomes valid once the browser has sent acceptable sensor data. Protected requests without a valid _abck are refused.
It has been done by reverse-engineering the script, but the script changes regularly and differs per site, so it is a constant maintenance burden. Running it in a real browser is far more durable.
For most protected sites, yes. Datacenter IPs start with low trust and many Akamai customers refuse them for any sensitive path.
Try a Akamai-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.
Other anti-bot systemsHow anti-bot systems work
Cloudflare
"Just a moment...", error 1020, Turnstile and cf_clearance, and what actually gets through.
DataDome
captcha-delivery.com, the datadome cookie, device checks and why deep links get blocked.
PerimeterX (HUMAN)
"Press & Hold", _px3 and _pxhd cookies, and why a vendor tag is not a block.
Kasada
x-kpsdk headers, ips.js and proof-of-work: a defence with no CAPTCHA to look at.
AWS WAF Bot Control
aws-waf-token, challenge.js and the 202/405 responses AWS WAF sends instead of the page.
CAPTCHAs (reCAPTCHA, hCaptcha, Turnstile)
Why the best way past reCAPTCHA, hCaptcha and Turnstile is not to be shown one.
