A proxy server is a computer that sits between two others and passes requests along on someone's behalf. Instead of your browser talking straight to a website, it talks to the proxy, the proxy talks to the website, and the answer comes back the same way.
What that achieves depends on which side the proxy works for. That's the first thing to know about any proxy.
Forward proxies and reverse proxies
| Forward proxy | Reverse proxy | |
|---|---|---|
| Works for | The people browsing | The website |
| Sits | In front of users, often on a company or home network, or as a paid service | In front of the web servers |
| The website sees | The proxy's IP address, not the user's | Nothing unusual; it's part of the site |
| Typical uses | Filtering and logging traffic at work or school, caching, hiding the user's IP address, appearing to browse from another country | Spreading traffic across servers, caching images and files, compressing responses, handling HTTPS, shielding servers from attacks |
When people say "a proxy," they usually mean a forward proxy. Reverse proxies are everywhere too, though most visitors never notice them: load balancers and content delivery networks are reverse proxies.
How a request travels through a forward proxy
- Your browser or app is set to use the proxy, either by hand, by a company setting or by a proxy auto-configuration (PAC) file.
- It sends each request to the proxy instead of the website.
- The proxy opens its own connection to the website and makes the request from its IP address.
- The website answers the proxy, and the proxy passes the answer back to you.
The website sees the proxy as the visitor. Its server logs record the proxy's IP address, and it decides the country, language or content to show based on that address.
What a proxy can and can't see
For a plain HTTP page, the proxy sees everything: the full address, the content and anything you send.
For an HTTPS page, the browser normally asks the proxy to open a tunnel to the site with the CONNECT method. The proxy then passes the encrypted data through without reading it (MDN). It still learns which site you're connecting to and when, but not the pages or what you type.
Proxies can also reveal that they're there. Many add headers to the request:
X-Forwarded-Foror the standardForwardedheader can pass on the original visitor's IP address.Vianames the proxies a request went through.
A proxy that leaves these out hides the user's address from the site; one that adds them doesn't. Either way, the site can often tell the address belongs to a proxy or a data center.
Kinds of forward proxy you'll hear about
- Datacenter proxies use IP addresses that belong to hosting companies. They're fast and cheap, and websites can easily recognize them.
- Residential proxies route traffic through IP addresses that internet providers give to homes, so requests look like ordinary visitors. Be careful where they come from. A 2019 study at the IEEE Symposium on Security and Privacy found that many residential proxies appear to run on compromised devices, including home Internet of Things gadgets, without their owners knowing.
- Rotating proxies switch to a different IP address for each request or every few minutes.
- Open or free proxies are run by unknown people. MDN estimates there are likely hundreds of thousands of open proxies online. The operator can see unencrypted traffic and log where you go, so don't use one for logins or client work.
How marketers and site owners use proxies
Seeing a site as another country sees it. Prices, languages, cookie banners and redirects often change by location. Browsing through a proxy in that country shows you the local version, which helps when you check geotargeting, hreflang redirects or a geo-blocking setup. Search results are a different matter. Google estimates location from your device, your signed-in or past activity and your IP address, so a proxy alone may not show what locals see. The location line at the bottom of the results page tells you which one Google used.
Checking ads. Advertisers and agencies use proxies to confirm their ads appear, and look right, in the places they paid for. For your own Google search ads, the Ad preview and diagnosis tool in Google Ads shows how your ad appears without counting an impression.
Speeding up and protecting your own site. A reverse proxy or CDN in front of your server caches files close to visitors and absorbs traffic spikes, which can improve load time.
Collecting public data. Tools that fetch many pages, such as price monitors and scraping scripts, often send requests through proxies so one IP address doesn't make all of them. Check the site's terms and robots rules first, and keep the request rate polite.
If your site sits behind a reverse proxy
Your server then sees every request as coming from the proxy. That affects a few SEO jobs:
- Log analysis. Configure the server or the CDN to record the visitor's real IP address from
X-Forwarded-FororForwarded. Otherwise log file analysis shows one address for everyone. - Verifying Googlebot. Anyone can claim to be Googlebot in the user agent. Google says to check the real IP address with a reverse DNS lookup or against its published IP ranges, so you need the original address, not the proxy's (Google Search Central).
- Bot protection. If the proxy blocks or challenges bots, make sure search engine crawlers still get through.
Proxy or VPN?
A VPN (virtual private network) sends all of your device's traffic through an encrypted tunnel to the VPN server. A proxy usually handles only the apps set to use it, often just the browser, and doesn't add encryption of its own. Both make websites see a different IP address.
Use a VPN when you want to protect everything on an untrusted network, such as café Wi-Fi. A proxy is the lighter tool when one app needs to appear somewhere else, or when a company wants to filter and cache its web traffic.