A proxy server accepts traffic from a client, relays it to a destination and returns responses. A typical remote forward proxy presents its exit IP to the destination, though headers and account information may still identify the client. HTTP standards distinguish a client-selected proxy, a server-side gateway and a tunnel that relays bytes without interpreting them. Products can combine these roles. The important questions are whose traffic the proxy serves, which protocols it supports, how access is authenticated and where connections exit.
How a Proxy Relays Requests
In the explicit case, the client is configured with a proxy endpoint, meaning the proxy's hostname or IP address and port, and sends its requests there instead of to the destination. For plain HTTP the client sends the full target URL in the request so the proxy knows where to forward it. The proxy opens its own connection to the destination, relays the request, receives the response and passes it back. Along the way it may cache responses, filter or log them, or alter them; RFC 9110 notes that some proxies are designed to apply transformations to selected content as it passes, and requires a proxy to add a Via header to each message it forwards so that the path can be traced and loops avoided. The real hostname in that header may be replaced by a pseudonym if it is sensitive.
For HTTPS through a conventional HTTP forward proxy, the client commonly requests a CONNECT tunnel to the destination host and port. If the proxy agrees, any 2xx response switches the connection into tunnel mode, after which the proxy forwards bytes in both directions without interpreting them. In an unintercepted tunnel, TLS runs between client and destination. An authorized inspection proxy configured with a trusted certificate authority may instead terminate TLS, inspect the traffic and establish a separate protected connection onward. RFC 9110 recommends that proxies restrict CONNECT to known ports, because a tunnel to an arbitrary destination is a convenient tool for abuse. Whether a given proxy supports CONNECT at all, and on which ports, is one of the first things to check when a configuration fails for HTTPS sites only.
Forward and Reverse Proxy Roles
A forward proxy sits on the client's side and acts on behalf of clients. The client knows about it, or the network has been arranged so that traffic reaches it, while the destination may still recognize an account, cookie or forwarded client address. Corporate web proxies, caching proxies at ISPs, and the commercial proxy services used for testing and data collection are forward proxies. MDN summarises their functions as storing and forwarding services for a group of clients, controlling bandwidth, and hiding client identities.
A reverse proxy sits on the server's side and acts on behalf of servers. To the client it looks like the origin; RFC 9110 calls this role a gateway and describes it as an intermediary that appears as an origin server on its outbound side while forwarding requests inward. Load balancers, CDN edges, TLS-terminating front ends and application firewalls are reverse proxies. They can conceal backend addresses, distribute load, cache content and filter requests. Which functions are active depends on the deployment; simply adding a proxy does not guarantee origin secrecy or attack protection. The two roles use the same forwarding mechanics; the distinction is whose requests or resources it serves.
Between these sits the intercepting proxy, which the client did not configure and does not know about, inserted by a network device that diverts connections. It has its own entry in this glossary and its own complications, notably that ordinary proxy authentication cannot work when the client believes it is talking to the origin.
Protocols, Authentication and Exit Addresses
HTTP and SOCKS
Proxy protocols define how the client talks to the proxy, independently of what the proxy then does. An HTTP proxy understands HTTP requests and the CONNECT method, which makes it suitable for web traffic and for tunnelling TLS. SOCKS, specified for version 5 in RFC 1928, works one layer lower. It describes itself as a shim between the application and transport layers, carries TCP connections and UDP associations for any application protocol, accepts IPv4, IPv6 and domain-name destinations, and negotiates an authentication method before relaying. SOCKS does not need to interpret the application’s messages. HTTP CONNECT can also tunnel non-HTTP protocols when permitted, and extensions support UDP tunnelling; the implementations and allowed destinations determine what actually works.
Proxy authentication
Proxy authentication controls who may use the relay. For HTTP proxies the mechanism is the 407 Proxy Authentication Required status: the proxy responds with a Proxy-Authenticate header naming the schemes it accepts, and the client retries with a Proxy-Authorization header carrying credentials. RFC 9110 specifies that these headers apply to the next hop in a proxy chain, not to the origin server, so they are distinct from origin authentication headers and should be handled separately. SOCKS5 negotiates its method up front; available methods depend on the implementation, so the client and server must have a compatible choice. Providers frequently offer IP allowlisting as an alternative, accepting connections from pre-registered client addresses without credentials. Authentication protects the proxy from unauthorised use; it does not grant authorization at the destination.
Exit addresses and disclosure
The exit address is the address the destination sees, and it belongs to the proxy or its network. Whether the destination can also learn the original client address depends on what the proxy chooses to disclose. RFC 7239 defines the Forwarded header, whose for parameter identifies the node that made the request to the proxy, as a standard replacement for the de facto X-Forwarded-For header. The specification treats disclosure as optional, recommends that the header be off by default and that identifiers be obfuscated, and warns that client addresses can identify users. A proxy that adds the real client address is sometimes marketed as transparent, one that omits it as anonymous; neither label is a protocol property, and the destination still observes everything else about the request, from cookies to browser characteristics.
Proxy vs VPN
The proxy vs VPN comparison concerns routing scope as much as encryption. Applications normally send only configured traffic to a proxy, leaving other connections direct. A VPN can route broad device traffic through an encrypted tunnel, but split tunnelling, DNS configuration and exceptions affect its coverage. A proxy connection can itself use TLS; an ordinary CONNECT or SOCKS relay does not add payload encryption automatically. Application HTTPS can protect content through either arrangement. Neither a proxy label nor a VPN label proves that every request and DNS lookup follows the intended path.
Common Uses and Limitations
Forward proxies support corporate access rules, caching, geographic testing and authorized data collection. Browser sessions can use distinct exits if their application settings support it. Reverse proxies commonly route requests, cache responses and protect application servers. Residential, datacenter, shared and rotating labels describe other properties of a proxy service, rather than replacing the forward/reverse distinction.
Routing alone does not clear cookies, sign out accounts or reset browser storage. A destination may therefore recognize the same session across different proxy exits. A forward proxy operator can observe connection metadata and any plaintext handled by the proxy; end-to-end TLS limits content visibility unless it is intercepted. An unencrypted client-to-proxy link also leaves local network observers able to inspect that leg. DNS or other application traffic may bypass the proxy if configured separately. Extra hops add overhead, although caching and better routing can sometimes improve overall response times. A proxy changes a communication path; it neither grants access permission nor guarantees acceptance by the destination.