Skip to content

challenges.cloudflare.com: when the check never finishes

challenges.cloudflare.com is the host a Cloudflare challenge loads its check from, on a challenge page and in a Turnstile widget. If your browser cannot reach that host, or cannot run what it serves, the page stays on the check or shows it again and again. Behind a proxy the usual reasons are a proxy or filter that does not let the host through, a browser setting that blocks the script, or a connection too unstable to finish.

Reviewed by John Hale. Last updated .

What it looks like

In the browser's address bar or network panel
challenges.cloudflare.com
/cdn-cgi/challenge-platform/...

A reachability check that should print the host name
h=challenges.cloudflare.com

What is challenges.cloudflare.com?

Cloudflare describes a challenge as a check that a visitor is a person and not an automated script. The browser is asked to run a set of checks, and sometimes the visitor is asked to tick a box. Cloudflare says most visitors pass without doing anything and that it does not use puzzle CAPTCHAs.

Challenge pages run on the Cloudflare Challenge Platform, the same technology as Turnstile, and requests to challenges.cloudflare.com and its subdomains are part of how it runs. Cloudflare's documentation notes two things that look like faults and are not: a 401 on a Private Access Token request, and failed lookups of some subdomains under challenges.cloudflare.com.

A challenge that keeps coming back is what Cloudflare calls a challenge loop. Its documentation lists the reasons: an unstable network, browser settings or extensions that block the scripts, an unsupported browser, JavaScript turned off, or signals that make the visitor look automated.

Why does the check hang or loop behind a proxy?

Most likely first.

  1. The proxy or a filter does not pass the challenge host. Company proxies, parental filters and allowlist-only setups that pass the site but not challenges.cloudflare.com leave the page waiting for a script that never arrives.
  2. The browser blocks the script. JavaScript turned off, strict tracking protection, and ad or script blocking extensions stop the check from running.
  3. The connection drops mid-check. A slow or unstable exit can time out part way. Cloudflare lists poor or unstable network connections first among the reasons for a loop.
  4. The address changes between requests. On a rotating proxy the check and the page that follows can leave from different addresses, and a site that sees a new address may challenge again.
  5. The browser itself is automated. A challenge is built to tell people from scripts. A headless or driven browser can be challenged repeatedly whatever address it uses. A proxy changes the address, not the browser.

How do you find what is stopping it?

  1. Check that the challenge host is reachable through the proxy

    This should print h=challenges.cloudflare.com. An error or a block page from your own network here means the proxy or a filter is in the way.

    Reach the challenge host through the proxy
    curl -s -x http://HOST:PORT -U "USER:PASS" https://challenges.cloudflare.com/cdn-cgi/trace | grep "^h="

  2. Run Cloudflare's compatibility check in the same browser

    Open https://debug.challenges.cloudflare.com/ in the browser profile that has the problem, with the proxy on. It is the tool Cloudflare's troubleshooting guide points to.

  3. Take things away one at a time

    Follow Cloudflare's own order: an Incognito window with extensions off, then another browser, then the same page with the proxy off, then another network. The step at which the check passes names the cause.

How do you fix it?

  • Let the challenge host through

    Allow challenges.cloudflare.com and its subdomains in the proxy, firewall or filter you control, alongside the site itself.

  • Give the check a normal browser

    Use a current version of a major browser, turn JavaScript on, and switch off blocking extensions for the site. Cloudflare supports all major browsers except Internet Explorer.

  • Hold one address while you browse

    Use a sticky session so the check and the pages after it leave from the same exit, and pick an exit with a steady connection.

  • For automated access, ask the site

    A challenge is the owner's decision to admit people and not scripts, and this page does not describe ways around it. If you need to fetch the site's data by program, use the API it offers, or ask the owner for access. Owners can exempt known clients with a rule.

  • If it still loops, send the site a trace

    Cloudflare asks for a HAR file recorded with Preserve log on, and the browser console log from the same session, sent to the site's administrator.

If you use TrueProxies

The gateway does not filter or alter pages inside a tunnel, so the check runs between your browser and Cloudflare. The curl command above shows whether the challenge host is reachable through your service.

For browsing, add a session ID to the username so every request leaves from one exit, for example USER-session-browse01-lifetime-600 for ten minutes. With the session left off, each request rotates to a new exit.

Under the acceptable use policy you are responsible for following the terms of every site you reach through the service. Automating a site that challenges visitors needs that site's permission.

Test the proxy from outside your network

The free proxy checker connects from our servers and reports the failed stage as a code, so you can tell a proxy problem from one on your computer or network.

Run the proxy checker

Questions about challenges.cloudflare.com

Is challenges.cloudflare.com safe?

Yes. It is the Cloudflare host that serves the human check for challenge pages and Turnstile widgets on sites that use Cloudflare.

Why is the Cloudflare check stuck in a loop?

Cloudflare lists the reasons: an unstable network, browser settings or extensions that block its script, an unsupported browser, JavaScript turned off, or signals that look automated.

Does a proxy or VPN cause the loop?

It can. Cloudflare's troubleshooting guide says some VPNs and proxies may interfere and suggests turning them off to test. If the check passes without the proxy, look at whether the proxy passes challenges.cloudflare.com and whether your address changes between requests.

Is a 401 from the challenge a block?

No. Cloudflare documents a 401 on its Private Access Token request as expected on devices that cannot issue a token. It falls back to a standard challenge.