Skip to main content

Networking and the web

What is a Proxy?

Definition

A proxy is a server that makes requests on behalf of a client, so the destination sees the proxy as the source rather than the original client.

Also known as: Forward proxy, Proxy server

Proxy in more detail

When people say proxy without qualification they mean a forward proxy: it acts for the client. Your browser or application is configured to send its traffic to the proxy, which opens the connection to the destination, receives the response and hands it back. Because it sits in the path, it can log, filter, cache or rewrite what passes through.

Organisations use them to enforce an egress policy — only these destinations, only these categories, everything logged — and to reduce bandwidth by caching shared downloads. Individuals use them to change the apparent source of traffic. A proxy is not a VPN: a proxy is usually per-application and often unencrypted, while a VPN captures all traffic from the device inside an encrypted tunnel.

The direction is the whole distinction from a reverse proxy. A forward proxy is deployed by, and configured into, the client, and the servers it contacts do not know it exists. A reverse proxy is deployed by the service owner in front of their own servers, and it is the clients who do not know. Same machinery, opposite side of the conversation.

Proxy example

Forward proxy — acts for the CLIENT

  laptop -> corporate proxy -> api.example.com
            (site sees the proxy's IP)

  export HTTPS_PROXY=http://proxy.corp:3128
  curl https://api.example.com    # goes via the proxy

Reverse proxy — acts for the SERVER

  browser -> nginx -> app server 1..N
             (browser only ever sees nginx)

Same box in the middle; who deployed it is what differs.

Proxy — common questions

What is the difference between a proxy and a VPN?
A proxy relays traffic for a single application and may not encrypt anything. A VPN creates an encrypted tunnel at the network level, so every application on the device uses it and the traffic is protected from the local network as well.
Can a proxy see my HTTPS traffic?
Not by default — it tunnels the encrypted connection with CONNECT and sees only the destination host. Corporate proxies that do inspect HTTPS must install their own root certificate on the device and re-encrypt, which is visible in the certificate chain.
Does a proxy make me anonymous?
No. The proxy operator can see and log everything you route through it, and websites still fingerprint browsers, read cookies and observe login state. It changes which IP address the destination records, and little else.

Keep reading

Every definition in the set is indexed A-Z in the developer glossary, and the cheat sheets cover the syntax once you know what you are looking for.

Browse the A-Z glossary