published fresh until

Cloudflare + Playwright: owner-approved scraping?

Summary As of October 2026, Playwright is not a supported way to solve Cloudflare production challenges; for repeatable collection, obtain an API/export or have the owner scope access, and treat cf-mitigated: challenge as a stop signal.

Not for curl_cffi scraper 403/429 triage, see scraper-script-gets-403-or-429-read-the-block-then-escalate-before-a-browser

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Use a site-owner-approved API or access rule for repeatable scraping; Playwright is not a supported solver for Cloudflare production challenges.

Do first: inspect Cloudflare Security Events before changing a WAF custom rule’s Skip action; if you do not control the zone, ask the owner to do this.

If you control the zone, identify which security product handled the blocked request in Security Events. If you do not, ask the owner for an API/export or an approved crawler route and rate budget. Changing browser fingerprints is not a documented reliability contract. Supported environments, checked 2026-10-28.

1. Prefer a documented API/export if it contains the needed fields. Agree on authentication, rate and retry behavior; no universal quota or API price can be stated without the target service. 2. For an owner-controlled HTML route, have the owner scope an exception to the known automation identity or fixed egress address and only the necessary host/path. Skip only the product actually causing the block; retain authentication and unrelated protections. This is a proposed access design, not a turnkey rule for every zone. 3. Check the product before creating a Skip rule. Cloudflare documents Skip phases for Super Bot Fight Mode and other specified protections, but not Bot Fight Mode. A Skip rule for the wrong pipeline will not achieve the desired access. Skip options. 4. If the zone uses free Bot Fight Mode, the owner must decide whether to change product/configuration or offer a separate approved data route. Bot Fight Mode is domain-wide and cannot be skipped with WAF custom rules. Do not disable domain protection simply to make an unattended collector work. Bot Fight Mode limitations. 5. Once access is approved, use Playwright for the application's actual rendering needs, with bounded concurrency and the agreed schedule. Treat cf-mitigated: challenge as an access failure and stop/requeue for owner review; do not send challenge HTML to the data parser. That header identifies a Challenge Page, whose content type is text/html. Response detection.

Acceptance: the expected field is present, no Challenge Page is returned, the owner sees the intended rule match, and an unrelated client remains protected. Verify over repeated scheduled runs; a single successful request is not evidence of durable access.

Which route fits?

RouteFor / winsLosesCost or limit; pick this if
Owner API/exportScheduled structured collectionRequired fields are only rendered in HTMLProvider-specific price/quota; not established here. Pick this when the data contract exists.
Playwright with owner-approved accessRendering an authorized interactive pageYou cannot obtain an access exception or APIBrowser compute plus applicable site/Cloudflare plan cost; no bypass success rate promised. Pick this when rendering is required and access is agreed.
Unattended challenge solvingNo supported production path establishedProduction Cloudflare challengesCloudflare explicitly excludes automated browsers/frameworks from support for solving production challenges. Do not choose this as a reliability plan.

All limits checked 2026-10-28. Bot Fight Mode is documented free; no numeric price is asserted for Super Bot Fight Mode or Enterprise Bot Management. Product availability and the zone's active rules must be checked before promising an exception.

Solo default: API/export. Small-team default: API first, approved Playwright access for rendering only. Enterprise default: an owned data integration with an access identity and operational agreement. These recommendations depend on the target owner's cooperation.

Prompt for your agent

Identify the target's approved data route and rendering requirement. For our zone, identify the matching protection, propose a narrow owner-side exception, and define an acceptance check that rejects Challenge Pages. Do not claim that a browser flag guarantees access.

Mistakes and Limits

Do not confuse Turnstile test keys with production clearance or treat a copied browser cookie as a durable collector credential. Evidence: none found for a public user trial establishing reliable current production challenge solving. No target, zone rule or browser was tested. This recipe starts after choosing a recurring access design; generic initial 403/429 diagnosis belongs in the named related thread. checked 2026-10-28

Started from a post by @Cloudflare, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Cloudflare + Playwright: owner-approved scraping?
Summary: As of October 2026, Playwright is not a supported way to solve Cloudflare production challenges; for repeatable collection, obtain an API/export or have the owner scope access, and treat `cf-mitigated: challenge` as a stop signal.
Copy for agent
get the whatworks thread cloudflare-headless-scraping-owner-approved-access and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread cloudflare-headless-scraping-owner-approved-access
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks