What Is a Proxy Server? Types, Uses and Risks

A proxy server is basically a middleman that makes requests for you: you connect to the proxy, it connects to the website on your behalf, and the website ends up seeing the proxy's IP address instead of yours. Forward proxies work for users, reverse proxies work for websites, and the main types — HTTP, SOCKS5, transparent and residential — differ in what traffic they'll carry and how easily they give themselves away.

You've probably passed through a handful of proxies today without ever noticing. Corporate networks filter traffic through them, nearly every large website sits behind one, and some browser extensions or apps quietly turn your own connection into one too. So let's get into how each kind actually works, what a proxy can and can't hide, and why a free one is riskier than it looks.

Forward proxies vs reverse proxies

Forward proxyReverse proxy
Acts on behalf ofThe client (you)The server (the website)
Who configures itThe user or their organisationThe website operator
HidesThe client's IP from websitesThe origin servers from visitors
Typical usesContent filtering, caching, access control, changing apparent locationLoad balancing, TLS termination, caching, CDNs, protection against attacks

"Use a proxy" almost always means a forward proxy. A reverse proxy, on the other hand, hides in plain sight: load a site behind a CDN and the address your browser connects to actually belongs to the CDN's reverse proxy, which quietly fetches the content from the real server sitting behind it. You can often spot one through response headers like Via, Server, or a provider's own cache headers — inspect them with our HTTP headers checker.

Types of forward proxy

HTTP proxies

An HTTP proxy actually understands the web traffic passing through it. Request a plain http:// page and your browser sends the full URL straight to the proxy, which fetches it — and can read, cache, filter or modify every bit of it along the way:

GET http://example.com/page HTTP/1.1
Host: example.com

HTTPS works differently: the browser asks the proxy to open a raw tunnel using the CONNECT method, then handles the TLS handshake with the website itself, right through that tunnel:

CONNECT example.com:443 HTTP/1.1
Host: example.com:443

HTTP/1.1 200 Connection established

From that point on, the proxy is just relaying encrypted bytes — it can see which host and port you connected to and roughly how much data moved, but not the URLs or the page content itself. There's one exception: TLS interception, and it only works if a root certificate controlled by the proxy's operator is already installed on your device. Companies do this on purpose for managed laptops. You, on the other hand, should never install a certificate like that for a proxy you don't control.

SOCKS5 proxies

SOCKS5 (RFC 1928) operates at a lower level than HTTP — it just relays TCP connections, and optionally UDP, for whatever protocol rides on top: web, email, games, SSH, doesn't matter. It'll handle username and password authentication, but it does not encrypt the traffic itself. Want one in thirty seconds? SSH's dynamic port forwarding gives you an encrypted SOCKS proxy through any server you can log into:

ssh -D 1080 [email protected]

# Use it from the command line
curl --socks5-hostname 127.0.0.1:1080 https://example.com/

That --socks5-hostname flag matters: it makes the proxy resolve the domain name itself, so your DNS queries travel through the proxy too instead of leaking out to your local resolver.

Transparent proxies

A transparent (or intercepting) proxy is the one you never configured at all — the network just silently redirects your traffic through it. Schools, hotels, airline Wi-Fi captive portals, even some ISPs rely on these to filter content, cache files or throw up a login page. HTTPS traffic can't be read without your cooperation, so a modern transparent proxy usually only sees the destination hostname — though that's still enough for it to block you.

Datacenter, residential and mobile proxies

Commercial proxy services tend to get sorted by where their IP addresses actually come from:

  • Datacenter proxies run on addresses that belong to hosting providers — fast, cheap, and not exactly subtle.
  • Residential proxies push traffic through real home internet connections, making it look like it's coming from an ordinary household.
  • Mobile proxies ride on cellular connections, where carrier NAT already shares addresses among so many users that they're rarely blocked outright.
Note: Residential proxy networks don't run on thin air — they need real people's connections. Some participants know exactly what they're signing up for and sell their bandwidth willingly. Others get enrolled without really realizing it, through SDKs bundled into free apps, games or browser extensions with consent buried deep in the terms, or sometimes through outright malware. If your connection ends up part of one of these networks, strangers' traffic is leaving from your IP address — and abuse complaints, blocklisting, or worse can trace straight back to you. So be wary of any app offering rewards for "sharing unused bandwidth," and think hard about where a proxy's addresses actually come from before you pay for one.

X-Forwarded-For and what proxies reveal

A lot of proxies tack on headers that tell the destination server a proxy was involved — and sometimes even who the original client was:

Via: 1.1 proxy.example.net
X-Forwarded-For: 203.0.113.7, 198.51.100.2
Forwarded: for=203.0.113.7;proto=https

X-Forwarded-For lists the client and every proxy in the chain, in order; whatever sits left-most is the claimed original client. Forwarded (RFC 7239) is just the standardized version of that same idea. This is how a reverse proxy hands your real IP down to the application sitting behind it — and, less helpfully, how a poorly configured forward proxy can leak yours.

Here's the catch: any client can write anything into these headers, so a server really should only trust them when its own proxy added them. Blindly trusting X-Forwarded-For is how applications get tricked into logging the wrong IP, or letting someone slip past IP-based rate limits entirely.

You'll sometimes see proxies labeled transparent, anonymous or elite (high-anonymity), depending on whether they pass along your IP or reveal themselves in these headers. None of that is standardized, though — it's informal language at best, so test a proxy yourself rather than taking the label's word for it.

How websites detect proxies

  • IP reputation and ownership. Hosting-provider addresses are easy to spot; run an ASN lookup and you'll see right away whether an IP belongs to a residential ISP or a data center. Commercial databases go further still, tracking known proxy and VPN exit addresses.
  • Headers. Via, X-Forwarded-For and the like give the game away almost instantly.
  • WebRTC and DNS leaks. Even with a proxy configured, a browser can still send WebRTC traffic directly — quietly handing your real IP to page scripts. Our WebRTC leak test will tell you if that's happening.
  • Mismatches. A browser time zone or language that doesn't fit the IP's location, or TCP and TLS fingerprints that don't match the claimed operating system, are both red flags.
  • Open proxy ports. Some services simply probe whether the connecting IP answers on common proxy ports like 1080, 3128 or 8080.

The risks of free proxies

Running a proxy isn't free, so if you're not paying for it, something else is footing the bill. Plenty of machines on public proxy lists are also just open by accident, or because they've been compromised outright. So when you route traffic through an unknown proxy, here's what you're risking:

  • Unencrypted traffic is fully exposed. Anything sent over plain HTTP — login forms included — can be read, logged and altered. Ads or outright malicious scripts can get injected straight into the pages you load.
  • Metadata is always exposed. HTTPS or not, the operator still sees every site you connect to, when, and for how long.
  • Fake certificates. If something asks you to install a certificate, or to click past a browser security warning, that's interception happening in real time.
  • Reliability and speed. Free proxies tend to be overloaded, short-lived, and often already blocked by whatever site you're trying to reach anyway.

If privacy is actually what you're after, rather than just a different-looking IP, a proxy is usually the wrong tool for the job — it just doesn't encrypt your connection to it. Our comparison of VPN vs proxy breaks down when each one actually makes sense.

How to check that a proxy is working

  1. Start by noting your normal public IP on the What's My IP Number page.
  2. Configure the proxy in your browser or operating system — or, for command-line tools, with environment variables such as https_proxy=http://198.51.100.20:3128.
  3. Reload the page. You should now see the proxy's address instead, along with its own ISP and location.
  4. Run the WebRTC leak test too, just to make sure your real address isn't sneaking out some other way.

Frequently asked questions

Does a proxy hide my IP address?

From the websites you're visiting, usually yes — as long as the proxy isn't forwarding it in a header and nothing's leaking around it elsewhere. The proxy operator, though, always sees your real IP, and so does your ISP, which can see you connecting to the proxy in the first place.

Is a proxy the same as a VPN?

No, not really. A proxy usually handles just one application or protocol, and it doesn't encrypt the connection to it. A VPN, by contrast, pushes all of your device's traffic through a single encrypted tunnel.

Is using a proxy legal?

In most countries, yes — businesses rely on proxies every single day. But using one doesn't put you above the law or outside the terms of the sites you visit, and routing through someone else's connection without their informed consent raises some pretty obvious ethical and legal problems.

What is the difference between HTTP and SOCKS5 proxies?

An HTTP proxy actually understands web requests, so it can cache or filter them; HTTPS just passes through as a CONNECT tunnel instead. SOCKS5 takes the opposite approach, relaying any TCP or UDP traffic without understanding any of it — more flexible, sure, but it can't do web-specific filtering or caching at all.

Coba sendiri

Praktikkan panduan ini dengan alat gratis kami.

Komentar

Bagikan tips, ajukan pertanyaan, atau ceritakan pengalaman Anda memakai alat ini.

Baca juga

Tersalin ke clipboard