Online Privacy

Proxies vs. VPNs

What separates a proxy from a VPN, which traffic each covers, what each can see, and how to pick the right one.

Key takeaways

  • A proxy usually handles only the apps configured to use it, while a VPN typically captures traffic system-wide.
  • Many proxy connections add no encryption of their own, so protection depends on HTTPS or the proxy's setup.
  • Both put an intermediary in a position to see where you connect, so the operator's trustworthiness matters.
  • Free public proxies are a real risk and should never carry logins or private data.

A proxy is a server that makes requests on behalf of a particular app or protocol. A VPN creates an encrypted network connection that can carry traffic from your whole device. Both can make a website see an address other than yours, which is why they get confused.

If you only need one program to take a different route, a proxy may be enough. If you want everything on the device protected from the local network, you want a VPN or something equivalent.

What a proxy does

Without a proxy, your browser connects to a website directly. With one, the browser connects to the proxy and asks it to fetch the page or open a connection. The website sees the proxy's address.

Proxies are ordinary infrastructure. Companies use them to filter and log web access, to cache downloads and to control which services staff can reach. Developers use them to inspect their own requests. A reverse proxy is a different arrangement that sits in front of servers, receiving visitors' requests on a site's behalf.

The main types

HTTP proxies understand web requests. For plain, unencrypted HTTP, such a proxy can read and modify everything. For HTTPS, the browser sends a CONNECT request asking the proxy to open a tunnel to the destination. The proxy then relays encrypted bytes. It knows the host name and port but normally can't read the page.

HTTPS proxies usually means the link between you and the proxy is itself protected with TLS, hiding even the CONNECT request from the local network. The phrase is used loosely, so check what a given product means.

SOCKS proxies, with SOCKS5 defined in RFC 1928, relay connections without understanding the application protocol. They support authentication and can handle UDP, though many apps and servers don't implement everything. SOCKS5 itself adds no encryption.

Transparent proxies intercept traffic without any setting on your device. Hotel, school and business networks may use them for filtering or sign-in pages.

Web proxies are sites where you type an address into a box. The site fetches and rewrites the page. It sees everything you do through it.

What a VPN does differently

A VPN adds a virtual network interface and routing rules, so the operating system sends traffic into an encrypted tunnel without each app needing to know. DNS lookups can go through it too. What a VPN does and doesn't do covers its reach and limits.

Proxy and VPN side by side
Proxy Set per app or protocol Encryption depends on type Easy to use for one task Other apps keep your normal route VPN Covers the system by default Encrypts the link to the server Needs an app or system setup Exceptions via split tunneling VS Proxy Set per app or protocol Encryption depends on type Easy to use for one task Other apps keep your normal route VPN Covers the system by default Encrypts the link to the server Needs an app or system setup Exceptions via split tunneling

Which traffic is covered

This is the biggest practical difference. Set a proxy in one browser and your mail app, game, updater and chat program keep connecting directly. Even within a browser, some features such as real-time audio and video or DNS lookups may not go through the proxy, depending on configuration.

System proxy settings exist in Windows, macOS, Linux desktops and phones, but apps are free to ignore them. On Windows you can look under Settings, Network & internet, Proxy. Menu names vary by version.

You can test a proxy from the command line. With curl, using a placeholder proxy on a documentation address:

curl --proxy http://192.0.2.10:8080 https://example.com/
curl --proxy socks5h://192.0.2.10:1080 https://example.com/

The socks5h scheme asks the proxy to resolve the host name, while plain socks5 resolves it on your machine first, which leaks the lookup to your normal DNS path. Using curl to understand web requests has more examples.

What each party can see

An HTTPS request through an HTTP proxy
1 Connect to proxy Your app opens a link to it 2 CONNECT Names the destination host and port 3 Relay Proxy opens the far connection 4 TLS end to end App and site encrypt between themselves 5 Response Site sees the proxy's address Connect to proxy Your app opens a link to it 1 CONNECT Names the destination host and port 2 Relay Proxy opens the far connection 3 TLS end to end App and site encrypt between themselves 4 Response Site sees the proxy's address 5

The proxy operator learns your address, destinations, timing and data volume. With unencrypted protocols it learns contents too. The local network may see the destination host name in the CONNECT request unless the link to the proxy is encrypted.

There's one important exception to "the proxy can't read HTTPS." If you or your organization install the proxy's root certificate on a device, the proxy can decrypt, inspect and re-encrypt traffic. Managed work computers often do this. Never install a certificate because a proxy or app of unknown origin tells you to. How certificates work explains why that grants so much power.

Some proxies also add headers such as X-Forwarded-For that pass your original address to the site. A proxy that does this hides little. You can check what arrives with the request header echo tool.

Proxies at work and school

Organizations often require a proxy. It lets them apply an acceptable use policy, block known malicious sites and keep logs for investigations. The setting may arrive automatically through device management or a proxy auto-configuration (PAC) file, a small script that tells the browser which requests go through which proxy and which go direct.

If a managed device decrypts web traffic for inspection, certificate details in the browser will show an issuer belonging to the organization instead of a public authority. You can check this by opening the connection information next to the address bar. Assume that anything you do on such a device, including personal accounts, may be visible to the people who run it, subject to local law and policy.

Don't disable or route around these controls on equipment that isn't yours. If a legitimate site is blocked, ask whoever manages the network.

A worked example

Say a freelancer with a hypothetical small project needs to test how a client's site responds from a server in another network, and also wants privacy on a library's Wi-Fi.

For the test, a proxy fits. They point one command or one browser profile at a server they control, run the check and remove the setting. Nothing else on the laptop changes.

For the library, a proxy configured only in the browser would leave the mail program, cloud sync and updater connecting directly. A VPN covers them all with one switch.

Using both at once is possible: the VPN carries everything, and the test profile's proxy sits inside it. The added layer also adds a place for things to break, so when a request fails, disable one at a time to find which is responsible.

Speed and reliability

A proxy adds a stop on the route. A caching proxy close to you can make repeated downloads of unencrypted content quicker, though widespread HTTPS limits what can be cached without decryption. A distant or overloaded proxy slows everything sent through it.

VPNs add encryption overhead and some packet wrapping. On modern phones and computers that's usually minor compared with the distance to the server. In either case, measure your own setup: load the same pages with and without the intermediary, and try more than one server location before blaming the technology.

The trouble with free proxies

Public lists of free proxies include servers that are misconfigured, abandoned, compromised or run specifically to collect traffic. Some inject advertising or tamper with downloads. Browser extensions offering a free "VPN" are often proxies with broad permissions to read pages.

A related risk: some free apps enroll your device as an exit for other people's traffic, sometimes described as a residential proxy network. Strangers' activity then appears to come from your address. Read terms carefully, and remove software that does this without a clear, informed choice on your part.

Choosing between them

Your goal Better fit
Protect all traffic on untrusted Wi-Fi VPN
Send one program through a particular server SOCKS or HTTP proxy
Filter and log web access in an organization Managed proxy
Reach an office network and its resources VPN or a zero-trust access service
Check how your site appears from another network Proxy or VPN you trust
Strong anonymity Neither alone; see Tor

You can also create a private SOCKS proxy over SSH to a server you own: ssh -D 1080 [email protected] opens a local SOCKS port whose traffic leaves from that server, encrypted between you and it. SSH for beginners covers the basics. Use it only on systems and networks where you're permitted to.

Neither one makes you anonymous

Cookies, accounts and fingerprinting work the same through a proxy or a VPN. Sites often recognize datacenter addresses and add challenges. And using either to get around rules on a network you don't control, such as a school or employer's, can violate policy and sometimes law.

If something goes wrong

If sites stop loading after you remove a proxy tool, a leftover system setting is a common cause. Check the operating system's proxy page, the browser's own network settings and environment variables such as HTTP_PROXY and HTTPS_PROXY in terminals.

A proxy you never configured can be a sign of unwanted software. Remove suspicious extensions and programs, run a reputable security scan and change passwords from a clean device if traffic may have been intercepted. Removing browser hijackers walks through the cleanup.

Written for 4Internet with AI writing tools and not reviewed line by line by a person. Check anything you rely on with the maker, provider or standard concerned. Report an error.

Keep reading

All 45 articles in Online Privacy →

Latest news on this topic