All locations active · 99.99% uptime
Network Technology

The Difference Between a Forward Proxy and a Reverse Proxy

Both carry the name "proxy" and both step into the middle. The difference lies in whose behalf they intervene on. A forward proxy is the client's agent: it makes requests on your behalf. A reverse proxy is the server's agent: it answers requests on the server's behalf. This one-sentence distinction explains every other difference.

FIGUREThe direction of traffic in the two architectures
DIRECTIONUserForward proxyReverse proxyApplication serverrequest (configured by the user)over the internetload balancing + cacheresponseTLS-terminated response

A forward proxy sits on the user side, a reverse proxy on the server side. The same request can pass through both; they are not alternatives to each other.

Role Comparison

FIGUREForward and reverse proxy roles
ROLEForward ProxyReverse ProxyWho it representsThe clientThe serverWho configures itUser / network administratorSite ownerThe hidden partyThe client's IPThe server's IPTypical purposeAccess, anonymity, filteringLoad balancing, caching, …Example softwareSquid, 3proxyNginx, HAProxy, TraefikDoes the user notice?Yes, they configure itNo, it is transparent

All of the products on this site fall into the forward proxy category; a reverse proxy is an infrastructure component for those who publish sites.

What Does a Reverse Proxy Do?

There is almost always a reverse proxy in front of a modern website. Its duties:

FIGUREThe jobs a reverse proxy takes on
TASKTLS terminationCertificate management is gathered in a single placesecurityLoad balancingDistributes requests to healthy backendsscaleCachingReturns static content without ever reaching the serverspeedCompression and rewritinggzip/brotli, URL redirection, header editingoptimizationProtection layerRate limiting, WAF rules, bot filteringdefense

The last layer is the wall that the side using a forward proxy runs into: bot filtering rules run here.

A Simple Nginx Example

FIGUREA typical reverse proxy block
/etc/nginx/conf.d/uygulama.conf01upstream uygulama {02 server 127.0.0.1:3000;03 server 127.0.0.1:3001;04}0506server {07 listen 443 ssl;08 server_name ornek.com;0910 location / {11 proxy_pass http://uygulama;12 proxy_set_header Host $host;13 proxy_set_header X-Real-IP $remote_addr;14 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;15 }16}

X-Forwarded-For header is added here. On the forward proxy side, however, this header is expected not to be added — the same header carries opposite meanings in the two architectures.

The Same Header, Opposite Meanings

On the reverse proxy side, X-Forwarded-For is a good practice: it lets the backend server see the real visitor's IP. On the forward proxy side, however, the same header breaks anonymity: it carries your real address to the target site. You can measure which headers your proxy forwards with anonymity test ; an "Elite" result means that this header is never sent.

Commonly Confused Points

  • A CDN is a reverse proxy: services such as Cloudflare and Fastly take on exactly this role.
  • An API gateway is a reverse proxy too: it adds authentication and routing.
  • The name gateway proxy is misleading: the "gateway" at proxy providers is a single entry address and belongs to the forward proxy architecture.
  • A transparent proxy is a forward proxy: even though the user configures nothing, it works on the client's behalf.

For products on the forward proxy side, see the residential, ISP and datacenter pages; for the protocol distinction, see our HTTP–SOCKS5 article .

Frequently Asked Questions

01Can a single request pass through both a forward and a reverse proxy?

Yes, and that is exactly what happens in everyday life: a forward proxy on the corporate network, a CDN/reverse proxy in front of the target site.

02Does a reverse proxy hide my IP?

No. A reverse proxy hides the server's address; your address still reaches the target.

03Do I need a reverse proxy for my own site?

It is not mandatory, but for TLS management, serving several applications from a single port and caching, it has in practice become the standard.

Related Articles and Pages

NEXT STEP

Strengthen your proxy setup today.

Get started in minutes with a paid plan, or try our free proxy list first.

FREEPROXY.TR

Looking for a free proxy? You're in the right place

A complete proxy platform where you can browse up-to-date free proxy addresses, compare HTTP and SOCKS proxy types, and check your proxy connections with free tools.