What Is a Proxy Server? β Definition and How It Works
Learn what a proxy server is, how forward and reverse proxies differ, how HTTP and SOCKS compare, and what a proxy can and cannot see.
A proxy server is an intermediary that forwards requests on your behalf. The destination sees the proxy's address instead of yours β which is the whole basis for how proxies are used, in both directions.
1. What Is a Proxy Server?
It receives a request from a client, makes that request onward, and returns the response.
- Key idea: requests arrive at the destination from the proxy, not from you.
- Mechanism: the client is configured to send traffic to the proxy, which relays it.
- Goal: control over where a request appears to originate, or over what enters a network.
2. Forward vs. Reverse
The same technology, pointed in opposite directions β and the distinction that clears up most confusion.
| Forward proxy | Reverse proxy | |
|---|---|---|
| Sits in front of | Clients | Servers |
| Chosen by | The client | The site owner |
| Hides | The client from the server | The servers from the client |
| Typical job | Routing, geo-targeting, filtering | Load balancing, TLS, caching, WAF |
| Examples | Corporate egress proxy, scraping proxy | nginx, Cloudflare, a load balancer |
When people say "proxy" unqualified they usually mean forward. But every large site you visit is served through a reverse proxy, and the anti-bot layer you encounter while scraping is one.
3. The Protocols
| Type | Layer | Handles | Notes |
|---|---|---|---|
| HTTP proxy | Application | HTTP | Can read and modify plain HTTP |
| HTTPS via CONNECT | Application | Any TCP over a tunnel | Cannot read the encrypted payload |
| SOCKS5 | Session | Any TCP or UDP | Protocol-agnostic, no content awareness |
| Transparent | Network | Whatever is routed to it | Client is not configured, and may not know |
For HTTPS, an HTTP proxy issues CONNECT host:443 and then blindly relays bytes. It learns the hostname; it does not learn the contents.
SOCKS5 is lower level and carries anything β mail, databases, arbitrary TCP β which is why it appears wherever traffic is not only web traffic.
4. What a Proxy Can and Cannot See
A persistent misconception, worth being precise about.
It can see: your IP address, the destination host and port, connection timing, and traffic volume. With plain HTTP, it can see and alter everything β URLs, headers, bodies.
It cannot see (for HTTPS): the path, headers, cookies, request or response bodies. TLS terminates at the destination, not at the proxy.
So "the proxy can read my traffic" is true for HTTP and false for HTTPS β unless the proxy performs TLS interception with a certificate your device trusts, which is exactly what corporate inspection proxies do, and why they must install a root certificate first.
5. Why They Are Used
By clients:
- Geographic targeting. Seeing what users in a given country see.
- Distributing requests across many addresses, so no single one carries an implausible load.
- Access control. Corporate egress through a filtering, logging gateway.
- Caching. Serving repeated resources from a local copy.
By servers (reverse):
- Load balancing across a backend pool.
- TLS termination in one place.
- Caching and compression at the edge.
- Security β rate limiting, WAF rules, bot management.
6. Proxy Types by IP Origin
For data collection, where the address comes from matters more than the protocol:
- Datacenter. Hosting-provider ranges. Fast, cheap, easily identified as non-residential.
- Residential. Addresses assigned by consumer ISPs. Indistinguishable from home users, slower, priced per gigabyte.
- ISP / static residential. Residential-classified addresses hosted in datacenters β residential appearance with datacenter stability.
- Mobile. Carrier addresses, shared by many subscribers behind CGNAT, which makes blocking them costly for the site.
7. Real-World Examples
- Checking localised pricing in twelve markets from one process, one proxy per market.
- A corporate proxy logging every outbound connection and blocking categories of site.
- Cloudflare in front of an origin server, terminating TLS and filtering traffic β a reverse proxy doing the anti-bot job.
- A scraper blocked identically across a whole datacenter pool, because the block keyed on the ASN, not the individual address.
- A
CONNECTtunnel carrying HTTPS through a proxy that logged the hostname and nothing else.
8. Summary
A proxy server relays requests so the destination sees its address instead of the client's. Forward proxies sit in front of clients and are chosen by them; reverse proxies sit in front of servers and are chosen by the site owner. Most infrastructure involves both.
HTTP proxies understand web traffic and tunnel HTTPS blindly via CONNECT; SOCKS5 relays any TCP or UDP without inspecting it. For encrypted traffic, a proxy sees the destination and the timing, not the contents β absent deliberate TLS interception with a trusted certificate.
For data collection the decisive property is not the protocol but the origin of the address: datacenter, residential, ISP or mobile, each with a different cost and a different level of scrutiny.