Glossary
Challenge page
A challenge page is an interstitial response that a protection layer returns instead of the requested content, so it can test the client before letting it in.
Definition
When a request reaches a site protected by a CDN, firewall or bot management product, the protection can answer it in three ways: pass it to the origin, block it, or put a challenge page in front of it. The challenge page is a small, self-contained HTML document with scripts that inspect the browser, sometimes show a puzzle, and on success set a cookie and reload the original URL. Real visitors see a brief "checking your browser" screen; most never notice more than a flash.
The important difference from a widget inside a form is scope. A widget protects one action, such as a login. A challenge page protects every URL the rule covers, including the HTML, images and API calls behind it.
Status codes and other signs
| Protection | Typical status | Telltale signs |
|---|---|---|
| Cloudflare challenge | 403 or 503 | cf-mitigated: challenge, scripts under /cdn-cgi/challenge-platform/ |
| AWS WAF challenge or CAPTCHA | 202 or 405 | gokuProps in the page, scripts from awswaf.com |
| DataDome | 403 | iframe from geo.captcha-delivery.com, datadome cookie |
Status codes alone are not enough, since an ordinary error page also returns 403. Combine the status with a body check for the vendor's markers before deciding you face a challenge.
Detecting a challenge in code
MARKERS = ("/cdn-cgi/challenge-platform/", "gokuProps",
"geo.captcha-delivery.com")
def looks_challenged(resp):
if resp.status_code not in (202, 403, 405, 429, 503):
return False
text = resp.text[:20000]
return any(m in text for m in MARKERS) or \
resp.headers.get("cf-mitigated") == "challenge"
Run a check like this on every response, not only on the first page. Protection can start challenging halfway through a crawl when your request rate or pattern changes.
Getting past a challenge page
A full browser can often pass the lighter checks on its own, as long as it looks consistent and is not running in an obviously automated mode. When it cannot, or when you use plain HTTP clients, the standard approach is to solve the challenge as a task and reuse the resulting cookie:
- Cloudflare Challenge returns a cf_clearance cookie, solved through your proxy.
- AWS WAF returns an
aws-waf-tokenvalue. - DataDome Slider returns a
datadomecookie, also through your proxy.
In each case, send follow-up requests with the cookie, the same user agent and, where the task used one, the same IP.
Challenge pages versus blocks
A block is final: Cloudflare error 1020, a DataDome hard ban, a WAF rule that returns 403 with no script. No solve changes those. If a page has no challenge script and no puzzle, look at what caused the block, such as the IP range, the country, headers or request rate, rather than at solving. The Cloudflare identification guide and the 403 help answer separate the two cases in detail.
Keeping challenges rare
Challenge pages are triggered by signals, and many of those signals are under your control. Keep request rates moderate per domain, reuse cookies and sessions rather than starting fresh each time, send headers a real browser sends in the order it sends them, and prefer reputable IPs. Each challenge you avoid is a solve you do not need and a page that loads faster.
Logging challenge pages
Record every challenge you detect with the URL, status, vendor marker, exit IP and time. After a day of runs, the log shows patterns that are hard to see live: one proxy range that is always challenged, one path that is protected more strictly, or an hour of the day when rules tighten. Those patterns tell you where solving is worth paying for and where a change of approach is cheaper.
Common questions
How is a challenge page different from a CAPTCHA widget?
A widget guards one form action; a challenge page stands in front of whole URLs and must be passed before any content loads.
Is every 403 a challenge?
No. Check the body for vendor markers such as challenge scripts; a plain 403 with no script is usually a block.
Can a headless browser pass challenge pages?
Sometimes, for lighter checks. Many protections detect default headless setups, which is where a solving task helps.
What do I keep after passing a challenge?
The cookie it set, the user agent and, for IP-bound protections, the same proxy for later requests.
Why do challenges start halfway through a crawl?
Protection reacts to rate and pattern changes, so a burst of requests can move a session from allowed to challenged.
Keep reading
- Managed challengeCloudflare's full-page check that picks between a silent test and an interactive one, ending in a cf_clearance cookie.
- Tell Turnstile, managed challenges and blocks apartStatus codes, headers, page markers and cookies that separate a Turnstile widget, a challenge page and a hard Cloudflare block.
- What does HTTP 403 mean when scraping?A 403 means the server understood the request and refused it, usually because of IP, headers, missing cookies or a challenge.
- DataDomeDataDome bot protection, the slider page it serves to suspicious clients, and the datadome cookie that clears it.