ResidentialIPs.org

Glossary Internet infrastructure

Reverse proxy

By the ResidentialIPs Editorial TeamUpdated

Reverse proxy: A reverse proxy sits in front of one or more web servers and receives visitors' requests on their behalf, adding caching, load balancing, TLS termination and security filtering.

Also called: server-side proxy, edge proxy

Key takeaways

  • A reverse proxy acts for the website: visitors connect to it, not to the origin server.
  • It balances load, caches content, terminates HTTPS and filters attacks and bots.
  • CDNs such as Cloudflare, Akamai and Fastly are large distributed reverse proxies.
  • When you scrape a site, the reverse proxy is usually where bot checks and rate limits happen.
  • Reverse proxies pass the visitor’s IP to the origin in headers like X-Forwarded-For.

What is a reverse proxy?

A reverse proxy is a server that stands between the public internet and a website’s own servers (the origin). Every visitor request arrives at the reverse proxy first. It decides whether to answer from cache, pass the request to an origin server, challenge the visitor or block them. The visitor never connects to the origin directly and usually cannot see its IP.

What reverse proxies do

FunctionWhat it means
Load balancingSpreads requests across several origin servers
CachingServes static files and pages without touching the origin
TLS terminationHandles HTTPS encryption so origins do not have to
CompressionShrinks responses with gzip or Brotli
SecurityRuns a WAF, blocks attacks and floods
Bot managementScores visitors, issues JavaScript challenges and CAPTCHAs
Rate limitingCaps requests per IP, per path or per session

Popular software includes Nginx, HAProxy, Envoy, Caddy and Traefik. A CDN is a reverse proxy spread across hundreds of locations.

Reverse proxy vs forward proxy

A forward proxy works for the client and hides the client. A reverse proxy works for the server and hides the server. Proxy services you buy are forward proxies; the systems they run into are often reverse proxies.

Why this matters for proxy users

  • The first gatekeeper: most blocks and challenges you see while scraping come from the target’s reverse proxy or CDN, which evaluates your IP, TLS fingerprint, headers and request rate before the website code runs.
  • Vendor-branded errors: a 403 page or “checking your browser” interstitial branded by a security vendor tells you which system you need to satisfy.
  • IP forwarding: the reverse proxy tells the origin your IP in X-Forwarded-For or a similar header, so the origin’s logs show the proxy IP you used, not the CDN’s.

How a reverse proxy handles a request

  1. A visitor’s browser looks up the website’s domain. DNS returns the reverse proxy’s address, not the origin server’s.
  2. The reverse proxy receives the request and checks it: TLS, headers, rate limits, bot signals and any WAF rules.
  3. It serves a cached copy if it has one. Otherwise it forwards the request to one of the origin servers.
  4. It adds headers such as X-Forwarded-For so the origin knows the visitor’s real IP.
  5. It returns the origin’s response to the visitor, often compressed and cached for the next person.

Common reverse proxy software and services

TypeExamplesTypical role
Self-hosted server softwareNginx, HAProxy, Traefik, Caddy, ApacheLoad balancing, TLS, routing to apps
CDN and security edgeCloudflare, Akamai, FastlyCaching, DDoS protection, bot management
Cloud load balancersProvider-managed load balancersSpreading traffic across servers

Why reverse proxies see so much about you

Because a reverse proxy sits in front of thousands of websites, large edge networks see traffic patterns across the whole internet. When an IP misbehaves on one site, the network can use that knowledge on others. They also see your TLS fingerprint, HTTP/2 fingerprint and header order before the website does. That is why a scraper with a clean residential IP can still get a challenge page: the reverse proxy judged the client, not just the address.

Reading reverse proxy responses

When you test proxies, look at response headers and body text to see who blocked you. A challenge or error page from an edge network has a distinctive layout and often a reference ID. A block from the origin website looks like the site’s own design. Knowing which layer blocked you tells you whether to change the IP, the client fingerprint or the request rate.

Frequently asked questions

Is Cloudflare a reverse proxy?

Yes. When a site uses Cloudflare’s proxied DNS, visitors connect to Cloudflare’s edge servers, which then fetch content from the site’s origin.

Does a reverse proxy hide the website’s IP?

It hides the origin server’s IP from visitors, as long as the origin does not leak it elsewhere, for example in DNS records or email headers.

Why do I get blocked by a reverse proxy when scraping?

Because it scores every request on IP reputation, fingerprints, headers and rate. Fix mismatches in your client and slow down before changing proxies.

Can a reverse proxy and a forward proxy be used together?

Yes, and that is the normal case for proxy users. Your forward proxy sends the request out, and the website’s reverse proxy receives it. Each one only acts for its own side.

Sources and further reading

Browse all 40 glossary terms Markdown version