Glossary
Reverse proxy: the layer in front of the website
A reverse proxy is a server that receives requests on behalf of one or more websites and decides what to pass to the origin servers behind it.
Definition
A forward proxy works for the client; a reverse proxy works for the website. Visitors connect to it as if it were the site itself. It terminates TLS, applies rules, serves cached content when it can, and forwards the rest to one or more origin servers that the public never talks to directly. Nginx, HAProxy, Envoy and the edge networks of CDNs are common examples.
What reverse proxies do
- Load balancing across several application servers.
- Caching of static files and even full pages close to the visitor.
- TLS termination, so origins can run plain HTTP on a private network.
- Security filtering: rate limits, IP rules, a web application firewall and bot management.
- Routing different paths to different services, such as
/apito one cluster and/shopto another.
Why the challenge comes from the reverse proxy
When a scraper hits a "checking your browser" screen, the origin server is usually not involved at all. The page was produced by the edge layer before your request was allowed through. Cloudflare, AWS WAF in front of CloudFront or a load balancer, and DataDome running as a module in the site's proxy all work this way.
This explains several things people notice:
- The challenge page looks identical across unrelated sites that use the same provider.
- Response headers such as
server: cloudflareor acf-rayid show which layer answered. - The answer is a cookie, like cf_clearance or
aws-waf-token, because the edge must recognize you on later requests without asking the origin. - Rules can change from one hour to the next with no deploy on the site itself.
Identifying the layer
Read the response headers and the HTML of the blocked page. Cloudflare challenge pages reference /cdn-cgi/challenge-platform/; AWS WAF pages load a script from an awswaf.com host and set aws-waf-token; DataDome serves its slider from geo.captcha-delivery.com. The identify Cloudflare protection guide walks through the signals for one provider.
Solving at the edge
Each edge provider maps to a GateSolver task type. Cloudflare Challenge returns the clearance cookie and requires your proxy, AWS WAF returns the token cookie with or without a proxy, and DataDome Slider returns the DataDome cookie through your proxy. In every case you replay the original request with the returned cookie, from the same IP where the task required one. GateSolver does not sell proxies, so that address comes from your own provider.
Common questions
What is the difference between a forward and a reverse proxy?
A forward proxy acts for clients and hides them from sites, while a reverse proxy acts for sites and hides their servers from clients.
Is a CDN a reverse proxy?
Yes. A CDN edge receives visitor requests for the site, serves cached content and forwards the rest to the origin.
Why do many unrelated sites show the same challenge page?
They share an edge provider, and that provider's reverse proxy produces the page before the site itself sees your request.
Why do edge challenges return cookies instead of tokens?
The edge needs to recognize a cleared visitor on every following request without asking the origin, and a cookie does that.
How do I tell which provider protects a site?
Check response headers, cookie names and the script hosts on the challenge page; each provider leaves its own markers.
Keep reading
- CDNContent delivery networks cache sites near visitors and, seeing all traffic first, also run many of the bot challenges you meet.
- Challenge pageInterstitial pages that run checks before the real content loads, the status codes they return, and how to detect one.
- Web application firewall (WAF)Rule based HTTP filtering placed in front of a site, and where a CAPTCHA action sits among its options.
- 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.