A middle-man for clients, versus a middle-man for servers.
A proxy is a middle-man server that passes requests and replies between two sides.
Normally a client talks straight to a server. With a proxy, the client talks to the proxy, and the proxy talks to the server on its behalf. The word “proxy” means “someone who acts for another”.
| Place | Kind | What it does |
|---|---|---|
| Company or school network | Forward | Filters websites, logs traffic, caches downloads |
| Privacy tools (VPN-like, anonymous browsing) | Forward | Hide your IP from sites |
| Web scrapers and testers | Forward | Send requests from different IPs or regions |
| Website front door (Nginx, HAProxy, Envoy) | Reverse | Route, balance and secure traffic |
| CDN (Cloudflare, CloudFront, Akamai) | Reverse | A global reverse proxy with caching |
| API gateway | Reverse | Auth, rate limits and routing for APIs |
| Kubernetes ingress | Reverse | Routes outside traffic to services in a cluster |
| Name | Meaning |
|---|---|
| Transparent proxy | Clients do not need settings. The network sends traffic through it. Often used for filtering. |
| Anonymous / high-anonymity proxy | Hides the client IP, and tries to hide that a proxy is used. |
| SOCKS proxy | A general proxy that passes any kind of traffic, not only web. |
| API gateway | A reverse proxy built for APIs: auth, rate limits, versions. |
| Load balancer | A reverse proxy whose main job is to share traffic. |
| CDN | Many reverse proxies placed around the world. |
| Term | Meaning in easy words |
|---|---|
| Proxy | A server that passes traffic between two sides on their behalf |
| Forward proxy | Acts for the clients |
| Reverse proxy | Acts for the servers |
| Origin server | The real server behind the proxy that owns the content |
| Upstream / backend | The servers a reverse proxy sends traffic to |
| TLS termination | Ending the HTTPS tunnel at the proxy |
| X-Forwarded-For | A header that carries the original client IP |
| Caching | Keeping a copy of a response to reuse |
| Rate limiting | Allowing only a number of requests in a time window |
| Health check | A regular test to see if a backend is alive |
| Gateway | An entry point that routes and controls traffic |
| VPN | A secure tunnel for all of a device’s traffic. Often confused with a proxy, but it works at the network level |
| Choice | We gain | We lose |
|---|---|---|
| Add a reverse proxy | Security, balance, one entrance | One more part to run and watch |
| Cache at the proxy | Speed, less load | Old data may be shown |
| End TLS at the proxy | Simple servers, central certificates | Inner traffic is plain unless you encrypt it again |
| Use many proxies | No single point of failure | More cost and setup |