Cloudflare
The Cloudflare "checking your browser" wait, then and now
Many developers still call it "the five second page": the Cloudflare screen that appears before a site loads. It has changed a lot over the years, and knowing what it does today explains how automation should handle it.
Where the name came from
For years, sites under heavy attack could switch on Cloudflare's "I'm Under Attack" mode. Every visitor then saw an interstitial saying "Checking your browser before accessing..." for about five seconds. During that pause, a JavaScript challenge ran in the browser, computed an answer, and submitted it. If the answer was right, Cloudflare set a clearance cookie and redirected to the page. Owners could also apply the same JS challenge through firewall rules to selected traffic.
The logic was simple: a browser runs JavaScript, while most attack tools and simple scrapers did not. The five seconds were the cost of proving that you could. Because the check was predictable, tools appeared that reimplemented it outside a browser, and Cloudflare responded by making the challenge more complex and changing it often.
What replaced it
Today the same screen usually reads "Just a moment..." or "Verifying you are human. This may take a few seconds." Behind it is in most cases a managed challenge. Instead of one fixed JavaScript puzzle, Cloudflare chooses what to run based on what it knows about the visitor: a non interactive check that finishes on its own, a short proof of work, or, when it is less certain, an interactive check where the visitor clicks a box. The same technology powers the Turnstile widget that sites embed in their own forms.
Several things are evaluated during that wait, according to Cloudflare's public descriptions: whether the browser executes the challenge code correctly, signals about the browser environment, and the visitor's network and history. The details are not published and change frequently, which is why reimplementing the challenge outside a real browser is no longer a practical approach.
Owners decide when the screen appears. It can be all traffic (the successor of Under Attack mode), traffic matching a WAF rule, traffic scored as likely automated, or visitors from specific networks. The challenge action is "managed challenge" in most setups; the older "JS challenge" action still exists for owners who choose it.
What a passing visitor receives
When a browser passes, Cloudflare sets the cf_clearance cookie for the site's domain and reloads the page. Later requests with the cookie skip the check until it expires, after the period the owner set in the Challenge Passage setting. The clearance is tied to the visitor who earned it: the IP address and the user agent.
That binding is the most important practical fact for automation. A clearance is not a portable token. It works for one client on one network, and only as long as that client keeps looking the same.
How automation gets through today
There are two workable patterns, and they differ mainly in whether you keep a browser around.
A real browser passes the check itself
Playwright or Puppeteer driving a current Chrome can often pass the non interactive variants on its own: the browser runs the challenge code and receives the cookie like any visitor. Headless defaults and automation flags can make the browser look automated, which pushes Cloudflare towards the interactive variant or repeated challenges. Running a real browser is the most faithful approach, at the cost of memory and speed.
Obtain the clearance from a solving task
The second pattern separates passing the check from collecting data. A solving task passes the challenge through your proxy and returns the cookie and the user agent it used. Your lightweight HTTP client then sends requests through the same proxy, with the same user agent and the cookie. This is how the GateSolver Cloudflare Challenge task works; the guides for Python and Node.js show the full flow. It is efficient when one clearance can carry many requests, and it needs a proxy that keeps one IP for the life of the cookie.
Why the wait sometimes never ends
A screen that loops, reloading itself without ever showing the page, is a common complaint. The usual reasons:
- Cookies blocked or discarded. If the client does not keep cf_clearance, every request starts over.
- IP changes between requests. Rotating proxies or flaky VPNs invalidate the clearance on the next request.
- User agent changes. Tools that rotate user agents break the binding.
- Strong automation signals. Cloudflare keeps challenging a client it does not trust, for example one whose TLS handshake does not match its claimed browser. The glossary entry on TLS fingerprinting explains this layer.
- Rate. A clearance obtained and then used for a burst of requests can be revoked quickly.
What the wait is not
The waiting screen is a check that the site offers to pass. It is different from the Access denied pages with error codes such as 1020, which are blocks with nothing to pass. It is also different from Turnstile inside a form, which returns a token rather than a cookie. Mixing these up leads to wasted effort: solving does nothing for a block, and a clearance cookie does nothing for a form that expects a Turnstile token. The guide on how to tell Cloudflare protections apart separates them by headers and page markers.
A short timeline
| Period | What visitors saw | What it checked |
|---|---|---|
| Under Attack mode era | "Checking your browser" for about five seconds | A fixed JavaScript computation |
| Interactive challenges added | Sometimes an image based CAPTCHA | JavaScript plus a visual puzzle for uncertain cases |
| Managed challenge | "Just a moment" or "Verifying you are human", often with no interaction | Varying non interactive checks, interactive only when needed |
The exact dates differ by product and plan, and Cloudflare continues to change the details, so treat this as an outline rather than a precise history.
Good practice
Whatever pattern you use, the habits that keep clearances alive are the same: one identity per IP, the same user agent throughout, cookies kept, moderate pacing and no needless refetching. These also reduce the load on the site, which is the reason the wait exists. Use the approach for public data collection, monitoring and testing your own configuration; where an owner has chosen to block rather than challenge, respect that. A solved challenge task costs $0.84 per 1,000, and the cf_clearance reuse guide explains how to make each one last.
Common questions
Does the Cloudflare check still take five seconds?
Not necessarily. Modern managed challenges often finish faster and pick their checks per visitor; the five second wait was typical of the older JS challenge.
What cookie does passing the check set?
cf_clearance, for the site's domain. It is tied to the IP and user agent that passed and expires after the owner's Challenge Passage period.
Why does the page keep reloading?
Usually cookies are not kept, the IP or user agent changes between requests, or the client looks strongly automated.
Is the waiting screen the same as Turnstile?
They share technology, but the waiting screen guards a whole page and returns a cookie, while Turnstile sits in a form and returns a token.
Can a solving task handle the waiting screen?
Yes. The Cloudflare Challenge task passes it through your proxy and returns the clearance cookie and user agent to reuse.
Keep reading
- Managed challengeCloudflare's full-page check that picks between a silent test and an interactive one, ending in a cf_clearance cookie.
- Get past the Cloudflare challenge page in PythonGet a cf_clearance cookie with AntiCloudflareTask and your own proxy, then reuse it from Python with the matching user agent.
- cf_clearance cookieThe cookie Cloudflare sets after a passed challenge, why it only works from one IP and user agent, and its lifespan.
- Challenge pageInterstitial pages that run checks before the real content loads, the status codes they return, and how to detect one.