Skip to content

type: cloudflare_challenge

Get past Cloudflare's 'Just a moment' page.

Send the protected page and your proxy. You get back the cf_clearance cookie and the user agent that earned it, ready for your next requests.

Cloudflare Challenge at a glance
type
cloudflare_challenge
you send
website_url, proxy
optional
user_agent
you get
cf_clearance cookie (plus the user agent that earned it)
price
$0.000900 per solve, $0.90 per 1,000
not solved?
nothing is charged

What is the Cloudflare challenge page?

You have probably seen it. You open a website and, instead of the site, you get a plain page that says “Just a moment…” or “Verifying you are human. This may take a few seconds.” After a short wait, the real site loads. Sometimes there is a box to tick first.

That page is Cloudflare checking your browser before it lets you in. A real browser passes the check and gets a cookie called cf_clearance. From then on, every request that carries this cookie goes straight to the site.

A script that asks for the page gets the challenge instead, with the status code 403. It never gets the cookie, so it never sees the site. That is the problem this type solves. You ask us for the cookie, and then your script can load the site like a browser that passed the check.

How to solve the Cloudflare challenge with DraxonCloud

  1. Copy the address of the page that shows “Just a moment…”.
  2. Pick a proxy, and make sure it keeps the same IP for a few minutes.
  3. Send both to our API with the type cloudflare_challenge.
  4. Wait for the answer. It holds the cf_clearance cookie and the user agent.
  5. Load the site through the same proxy, with that cookie and that user agent.

What you send

  • website_url: the full address of the protected page, like https://shop.example/products. Use the page you actually want to open.
  • proxy (required): your proxy, written as user:pass@host:port, or with a scheme like http://user:pass@host:port or socks5://user:pass@host:port. We pass the check through this proxy, because the cookie only works from the IP that earned it. We turn the task down if you leave the proxy out.

You don’t need a site key for this type. The page is the whole challenge.

About rotating proxies. Many proxy providers give you a new IP every minute, or even every request. That breaks this flow. The cookie gets tied to one IP, and then your next request comes from another IP, so Cloudflare asks again. Ask your provider for a sticky session and set it to last several minutes. In our own tests, a 1-minute session switched IP during a solve and the cookie was refused. A 10-minute session worked.

What you get back

When the task is solved, the answer has:

  • solution.cookies: {"cf_clearance": "..."}
  • solution.cookie_header: the same thing, ready to paste into a Cookie header, like cf_clearance=...
  • solution.user_agent: the browser user agent that earned the cookie
  • solution.token: the cf_clearance value on its own

To use it, send every request to the site:

  1. through the same proxy you gave us,
  2. with the cf_clearance cookie, and
  3. with the same User-Agent we returned.

If one of the three is different, Cloudflare will likely show the challenge again.

A quick example

Start a task:

curl -s -X POST https://draxon.one/api/captcha/v1/tasks \
  -H "Authorization: Bearer $DRAXON_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "cloudflare_challenge",
    "website_url": "https://shop.example/products",
    "proxy": "user-session-abc123:[email protected]:8080"
  }'

Wait for it in one request:

curl -s -H "Authorization: Bearer $DRAXON_KEY" \
  "https://draxon.one/api/captcha/v1/tasks/<id>?wait=60"

The answer looks like this (some fields left out):

{
  "status": "solved",
  "solution": {
    "token": "Cq1BevBXrsMqyd22VGYT6qwW...",
    "cookies": {"cf_clearance": "Cq1BevBXrsMqyd22VGYT6qwW..."},
    "cookie_header": "cf_clearance=Cq1BevBXrsMqyd22VGYT6qwW...",
    "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X)..."
  }
}

Now load the site with it:

curl -s -x "http://user-session-abc123:[email protected]:8080" \
  -H "User-Agent: <solution.user_agent>" \
  -H "Cookie: <solution.cookie_header>" \
  https://shop.example/products

Challenge or block? Know the difference

Not every Cloudflare page is a challenge. If you see “Sorry, you have been blocked” or “Attention Required!” with a Ray ID, the site’s firewall has blocked that visitor on purpose. There is nothing to pass and no cookie that opens it. Solving won’t help there. A different IP might, or the site may simply not allow automated access.

A real challenge page answers with status 403 and the header cf-mitigated: challenge, and its title is usually “Just a moment…”. That is the page this type is for.

Looking for the small Cloudflare box inside a form instead? That is Cloudflare Turnstile, and it has its own type.

Already using another service?

  • CapSolver and Anti-Captcha style: createTask with the type AntiCloudflareTask or CloudflareChallengeTask. Give the proxy as proxy (scheme://user:pass@host:port) or as proxyType, proxyAddress, proxyPort, proxyLogin and proxyPassword. The result carries cookies, cookie (cf_clearance=...) and userAgent.
  • Point your tool at https://draxon.one/api/captcha/compat and use your DraxonCloud key as the client key.

All formats are on the Compatible APIs page.

What it costs

You pay for each solved challenge. The current price is in the box at the top of this page and on the pricing page. We hold the price from your balance when the task starts, and charge it only when you get a cookie. If the task fails or runs out of time, you get the full amount back. You never pay twice for one task.

Tips that save you time

  • Use one sticky proxy session per cookie. Same IP for the solve and for every request after it.
  • Reuse the cookie. One cf_clearance covers many requests to the site while it lasts. Don’t solve again for every page.
  • Keep the user agent the same everywhere. Copy solution.user_agent into every request.
  • Check the status code first. If the site already answers 200, there is no challenge to solve.
  • Use ?wait=60. A challenge takes longer than a small widget, so give the wait some room.
  • Watch for a block page. “Sorry, you have been blocked” is not a challenge, so don’t spend money on it.

Everything else, including code in Python and Node.js, is in the Cloudflare Challenge docs.

Questions people ask

Short, plain answers. The docs have every detail.

Why do I have to send a proxy?

Cloudflare ties the cf_clearance cookie to the IP address that passed the check. We pass it through your proxy so the cookie works from that same IP when you use it.

My proxy rotates. Is that a problem?

It can be. Use a sticky session that keeps the same IP for several minutes. A session that changes IP during or right after the solve gives you a cookie the site will reject.

What do I do with the cookie?

Send it as a cookie on your requests to the site, through the same proxy, with the user agent we returned. Then the site treats you like the visitor that passed the check.

The page says 'Sorry, you have been blocked'. Can you get past that?

No. That page is a firewall block, not a challenge. The site owner has blocked that visitor outright, and no cookie changes it. Try another IP or check that you are allowed to use the site.

What happens if it fails?

You pay nothing. We only hold the price while we work. A failed or timed-out task gives the money back to your balance.

How long does a solve take?

Longer than a small widget. Plan for roughly half a minute, and keep your proxy session alive for longer than that.

Am I allowed to do this on any site?

Only on sites you have the right to automate. Some sites are blocked on our side. Please read the Terms before you start.

Cloudflare Challenge without a browser of your own

What each way of getting a token asks of you, and the three steps this one takes.

Ways to get a Cloudflare Challenge token, compared
Approach What you run Where the token comes from What tends to break
Your own browser automation A real browser per solve, with a driver and a display You answer the puzzle yourself, or you babysit it Puzzle layouts change and the script that clicked them stops working
A solver stack of your own Recognition models, a browser, and the plumbing between them Yours, as long as the models keep up with the puzzles Puzzles that need a browser session still need a browser session
DraxonCloud One HTTPS request from anything that can send one The Cloudflare Challenge token, returned by the API Nothing you host; the response tells you why a task failed

Costs above are what each approach asks of you, not a claim about which is cheaper at every volume. The Cloudflare Challenge docs list every field and every error code.

  1. 01

    Create a key

    Make an account and create an API key from the dashboard. It starts with drx_ and carries the scopes you pick.

  2. 02

    Send the Cloudflare Challenge details

    One request with the page address, the site key and the type cloudflare_challenge. Add rqdata, a proxy or a user agent only if the site needs them.

  3. 03

    Use the token

    The answer carries the token your form expects. Submit the form through the same proxy and user agent you solved with.

Start solving Cloudflare Challenge today.

Make an account, add funds, create a key. If a captcha is not solved, you pay nothing.