Skip to content
CleanProxies
Get Started

How Do Proxies Work? The Request Path, HTTPS Tunnels and IP Types Explained

15 Min Read

How do proxies work? A proxy is a server that sits between your device and the website you want: your app sends the request to the proxy, the proxy sends it on to the site from its own IP address, and the answer comes back the same way. CleanProxies runs that middle step for you on dedicated US ISP IPs from $0.75/IP a month, rotating residential from $0.63/GB and real 4G/5G mobile from $0.79/GB, all delivered in seconds.

TL;DR (checked 4 December 2026)

  • A proxy forwards your traffic, so the website sees the proxy's IP address instead of yours.

  • For plain HTTP the proxy reads and re-sends the request. For HTTPS it normally opens a tunnel with the CONNECT method and only passes encrypted bytes: it sees which site you connect to, not the page.

  • SOCKS5 works one level lower: it relays whole connections, not only web pages.

  • What changes between proxy types is where the IP comes from (datacenter, ISP, home user, mobile phone) and how long you keep it (static, sticky, rotating).

  • For most buyers the best mix of trust and price is static ISP proxies: real carrier IPs that stay yours all month. Buy ISP proxies on CleanProxies or test 5 IPs for an hour with the $4.99 trial.

  • Need 100+ IPs? Bulk tiers drop the price to $0.99/IP at 1,000 IPs and $0.75/IP at 10,000; whole /24 blocks start at $1.19/IP.

How a proxy works, step by step

A typical forward proxy server, the kind you buy from a provider, does the same five things. Here is the path of one request, from the moment you press Enter to the moment the page loads.

1. Your app is told to use the proxy

You give your browser, script or tool four values: the proxy host, the port, and (usually) a username and password. A line from a CleanProxies dashboard looks like host:port:user:pass. From now on, the app does not talk to websites directly. It talks to the proxy.

2. Your app connects to the proxy, not to the website

Your device opens a connection to the proxy's address. The website has not been contacted yet. Note that this first leg is usually not encrypted by the proxy itself: if you send plain HTTP, your own network can read it; with HTTPS sites, it can still see the name of the site in the CONNECT line (see below).

3. The proxy checks who you are

Before it forwards anything, a private proxy checks that you are allowed to use it (open proxies skip this step, which is one reason they get abused). There are two common ways:

  • Username and password. Your app sends them with the request (for HTTP proxies this is the Proxy-Authorization header). Wrong credentials get a 407 Proxy Authentication Required answer.

  • IP whitelist. The proxy accepts connections only from IP addresses you added in advance, so no password is needed.

On CleanProxies, ISP and ISP subnet proxies support both (whitelist up to 20 IPv4 addresses); rotating residential and mobile proxies use username and password.

4. The proxy sends the request from its own IP

This is the core of how proxies work. The proxy opens its own connection to the website and sends your request. (Office and school proxies may stop here instead: they can block the request or answer from a cache without contacting the site.) The website's server records the proxy's IP address as the visitor. Your real IP never reaches it, unless the proxy adds it in a header (more on that below).

5. The answer travels back through the proxy

The website replies to the proxy, and the proxy hands the reply to your app. To you, the page loads as normal; it has just taken one extra hop.

That extra hop is why proxy quality matters so much. If the proxy server is far away, slow or overloaded, every request pays for it. CleanProxies ISP proxies run on 100Gbps network ports with under 20ms latency and 99.9% uptime, so the hop costs very little.

How does a proxy server work with HTTPS?

Most sites today use HTTPS, so this is the question that matters most. The short answer: the proxy builds a tunnel and stays out of your encrypted traffic.

  1. Your app sends the proxy a CONNECT example.com:443 request (the method is defined in the HTTP standard, RFC 9110 §9.3.6).

  2. The proxy opens a TCP connection to example.com on port 443 and answers 200 Connection established.

  3. Your app and the website now do the TLS handshake through the tunnel. The keys are agreed between your app and the website only.

  4. From then on the proxy only moves encrypted bytes back and forth.

So with HTTPS, a normal forward proxy can see which host and port you connect to, and how much data moves, but not the pages, form data or passwords inside. Two exceptions: with plain HTTP (no S) the proxy sees and forwards the full request, and a proxy can only read inside HTTPS if your device has been made to trust its own certificate (company filters and debugging tools do this on purpose). Use HTTPS for anything private, and buy proxies from a provider you trust, because the operator always sees where your traffic goes.

What this looks like in practice. On 4 December 2026 we ran a minimal forward proxy on our own test machine and sent one HTTPS request through it with curl 7.68 (curl -v -x http://127.0.0.1:18080 https://example.com/). This is curl's real output, trimmed to the important lines:

* Establish HTTP proxy tunnel to example.com:443
> CONNECT example.com:443 HTTP/1.1
> Host: example.com:443
< HTTP/1.1 200 Connection established
* Proxy replied 200 to CONNECT request
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
> GET / HTTP/2
> Host: example.com
< HTTP/2 200

And this is everything the proxy logged for that request:

PROXY GOT: CONNECT example.com:443 HTTP/1.1

The proxy saw the site name and port. The GET / line, the headers and the page itself went through the tunnel encrypted with TLS 1.3, so they never appeared in the proxy's log.

HTTP vs SOCKS5 proxies: two ways to forward traffic

Proxies speak one of two main protocols. Both hide your IP from the site; they differ in what they carry.

HTTP(S) proxySOCKS5 proxy
Works atThe web layer (HTTP requests)The connection layer (any TCP stream)
HTTPS sitesYes, via a CONNECT tunnelYes, it just relays the connection
Non-web apps (mail clients, custom TCP tools)Only if the app can use CONNECT and the proxy allows that portYes, if the app supports SOCKS5
Can add or change headersYes (plain HTTP only)No, it does not parse the data (but plain-text traffic is still readable by the operator)
LoginProxy-Authorization header or IP whitelistUsername/password in the SOCKS handshake (RFC 1929, sent unencrypted)
Typical useBrowsers, scrapers, most toolsApps that are not web browsers, tools that ask for SOCKS
On CleanProxiesAll productsISP and ISP subnet proxies (switch in the dashboard)

SOCKS5 is defined in RFC 1928, which covers TCP connections and UDP relay; CleanProxies supports SOCKS5 for TCP traffic. It is not "more secure" by itself: neither protocol encrypts your traffic; HTTPS does that. Pick SOCKS5 when your tool asks for it or when you need to proxy something that is not a web page. More detail in our guide to SOCKS5 vs HTTP proxies, and you can buy SOCKS5 proxies on ISP IPs.

What does the website see when you use a proxy?

When a request reaches the website through a proxy, the site sees:

  • The proxy's IP address as the visitor, and from it the IP's owner (the ASN, for example a US cable or fibre carrier, or a hosting company) and its rough location.

  • Your request itself: the page asked for, your browser's User-Agent, cookies the site set earlier, and everything else your app sends. A proxy changes the IP, not your browser or your account.

  • Sometimes, proxy headers on plain HTTP. The HTTP standard asks forwarding proxies to add a Via header (RFC 9110 §7.6.3); it names the proxy, not you. The Forwarded header (RFC 7239) and the older, non-standard X-Forwarded-For can carry the client's real IP; company filters, load balancers and badly set up proxies add them. On HTTPS through a CONNECT tunnel the proxy cannot add headers inside the encrypted request at all.

  • DNS lookups. Someone has to turn the site name into an address. With HTTP proxies and CONNECT, the proxy does it. With SOCKS5 it depends on the client: in curl, socks5:// resolves the name on your machine, while socks5h:// lets the proxy resolve it. If your own DNS server does the lookup, your network sees which sites you visit even though the traffic goes through the proxy.

That second point catches many first-time buyers. If you log in to the same account from ten proxies, the site still sees one account. Sites also look at the browser itself (time zone, language, screen, fonts: together called a fingerprint), and a proxy does not change any of that. Proxies solve the IP part: what network the request comes from. Keep the rest consistent with the IP, for example a browser time zone that matches the proxy's country.

You can see what a site sees for yourself: open our What Is My IP tool with and without the proxy, and run any proxy through the proxy checker to see its ASN, location and whether it responds.

Forward, reverse and transparent proxies

The word "proxy" covers three different jobs. Only one of them is what people buy.

TypeWho sets it upWhat it doesExample
Forward proxyYou (the user)Sends your requests out to websites from its IPEvery proxy you buy from a provider
Reverse proxyThe website ownerSits in front of a site and receives visitors' requestsCDNs, load balancers, Nginx in front of an app
Transparent proxyA network (office, school, ISP)Intercepts traffic without settings on your device, often for filtering or cachingCompany web filters, public Wi-Fi portals

When this guide says "proxy", it means a forward proxy. Reverse proxies protect and speed up websites; they are on the website's side of the connection, not yours.

Where the proxy IP comes from: the part that decides your results

All forward proxies work the same way. What makes one succeed where another fails is the IP the website sees, because sites judge an IP by who owns it. Here are the four kinds, with CleanProxies prices checked on our live /pricing page on 4 December 2026.

Proxy typeWhere the IP comes fromSessionSites trust itCleanProxies as-low-as priceBest for
ISP (static residential)Real carrier ranges (Comcast, Cox, Verizon, AT&T and more), hosted in fast data centersSame IP all monthHigh$0.75/IP (AT&T has its own price list), unlimited bandwidthAccounts, e-commerce, social media, anything that needs one steady IP
ISP subnetA whole /24 block from the same carrier rangesStaticHigh$1.19/IP (1,020 IPs)Large teams, resellers, big projects
Rotating residentialHome connections of real users in 190+ countriesNew IP per request, or sticky 5 min to 24 hHigh$0.63/GB, data never expiresScraping at scale, city and state targeting
Mobile (4G/5G)Phones on mobile networks in 190+ countriesRotating or stickyHighest$0.79/GB, data never expiresMobile-first apps, the hardest sites
DatacenterCloud and hosting company rangesStaticLower (the ASN says "hosting")n/aFast, simple tasks on easy sites

Why it matters: a website that sees an IP from a hosting company knows it is not a home visitor and is more likely to show a CAPTCHA or block it. An IP from a consumer carrier looks like an ordinary customer of that carrier. That is the whole idea behind ISP proxies, which are also sold as static residential proxies: the speed of a data center with the reputation of a carrier IP.

Longer comparisons: ISP vs residential vs datacenter proxies and mobile vs residential proxies.

How rotating proxies work

A static proxy gives you one IP that stays the same. A rotating proxy gives you one gateway address and changes the exit IP behind it.

  1. You connect to a single gateway (for CleanProxies residential, one host and port for the whole pool).

  2. For each new request, or each new session, the gateway picks a different IP from its pool and sends your request through it.

  3. If you need the same IP for a while (for a login or a checkout flow on your own store), you ask for a sticky session. On CleanProxies you choose 5, 10, 15, 30 or 60 minutes, or 24 hours, and the gateway keeps the same exit IP for that time.

  4. Settings such as country, state, city and session length are chosen when you generate the proxy lines in the dashboard.

Two details matter in practice. Rotation happens at connection boundaries: an HTTPS tunnel that is already open keeps its exit IP until it closes, so "new IP per request" means per new connection. And a sticky session holds the same IP for the time you chose only while that home or phone stays online; residential and mobile IPs belong to real devices that can drop off.

Rotating proxies are built for volume: thousands of requests spread across many IPs, so no single IP sends too many. Static proxies are built for identity: one IP that a site sees again and again. Our guide to rotating vs sticky sessions goes deeper.

How proxy login and setup work in practice

Setting up a proxy is the same in almost every tool:

  1. Buy and copy your proxy lines. CleanProxies delivers ISP proxies in seconds after payment; each line holds host, port, username and password.

  2. Pick the protocol. HTTP(S) for browsers and most scrapers. SOCKS5 only if your tool asks for it (ISP and subnet proxies).

  3. Pick the login method. Username and password works everywhere. For ISP proxies you can instead whitelist up to 20 of your own IPv4 addresses.

  4. Paste the values into your browser profile, anti-detect browser, scraper or bot framework.

  5. Check it. Open What Is My IP through the proxy. You should see the proxy's IP and carrier, not yours.

Common errors and what they mean:

ErrorWhat happenedFix
407 Proxy Authentication RequiredThe proxy did not accept your loginCheck username/password, or whitelist your IP
Connection refused / timeoutWrong host or port, or your network blocks the portCopy the line again; try another network
403 or a CAPTCHA from the siteThe site does not trust the IP or the requestUse cleaner IPs (ISP or mobile), slow down, keep sessions consistent
429 Too Many RequestsYou hit a rate limit (per IP, account, cookie or page)Slow down, lower concurrency and wait as long as the Retry-After header says; more IPs only help when the limit is per IP

More fixes in how to fix proxy errors.

Proxy vs VPN: how they differ

People often ask whether a proxy and a VPN are the same thing. They both send your traffic through another server, but they are built for different jobs.

ProxyVPN
What goes through itOnly the apps you configureUsually the whole device
Encryption by itselfNo (HTTPS sites stay encrypted end to end)Yes, between you and the VPN server
IPs you getYour choice: one per account, thousands at once, by country or cityUsually one shared IP at a time
IP typeDatacenter, ISP, residential or mobileMostly datacenter
Built forScraping, automation, managing many accounts, ad and price checksPrivacy on public Wi-Fi, one user

If you run a business task across many IPs, you want proxies. A VPN gives one person one connection; a proxy plan gives your tools as many separate IPs as the job needs.

Which proxy fits your job

Now that you know how proxies work, choosing one is a short list:

  • Managing accounts, stores or ad profiles: one static ISP IP per account, so each account always comes from the same address. ISP proxies from $0.75/IP, unlimited bandwidth, 100% dedicated (never shared).

  • Web scraping and price monitoring at scale: rotating residential proxies from $0.63/GB with country, state and city targeting; or a pool of static ISP IPs if you want unlimited bandwidth. See our best residential proxies for web scraping.

  • Mobile apps and the strictest sites: mobile proxies on real 4G/5G networks in 190+ countries from $0.79/GB.

  • Simple, fast jobs on easy sites: datacenter proxies can do, but carrier IPs avoid most of the blocks people buy proxies to solve.

  • Not sure yet? Our ranking of the best static residential proxies compares the main providers on price and IP quality.

What it costs on CleanProxies (live /pricing, 4 December 2026, ISP carriers on the standard price list; AT&T is priced separately):

Order sizeISP proxies (per IP, per month)Monthly total
5 IPs$3.00$15.00
100 IPs$1.49$149.00
1,000 IPs$0.99$990.00
10,000 IPs$0.75$7,500.00

ISP bandwidth is unlimited at every size. Need 100+ IPs? Whole /24 blocks start at $1.19/IP with ISP subnet proxies, and the reseller API lets you create proxies for clients from your own software. Before a big order, test with the $4.99 trial (5 ISP proxies for 1 hour, or 100 MB of residential or mobile data): check the IP on What Is My IP, run your real target pages at your real request rate, and check the IP's reputation as shown in what a clean proxy is. Pay by card, Apple Pay, Google Pay or crypto (BTC, ETH, USDT, USDC); proxies appear in your dashboard within seconds.

Start with the proxy that fits

Every proxy works the same way. The IP behind it decides whether your job runs smoothly. CleanProxies gives you clean, dedicated US carrier IPs (0 fraud score, Tier-1 carrier ASNs) on 100Gbps ports, delivered in seconds, with 24/7 support.

Frequently Asked Questions

Your app sends its request to the proxy instead of the website. The proxy sends the same request from its own IP, gets the answer and passes it back to you. The website sees the proxy's IP, not yours. CleanProxies ISP proxies start at $0.75/IP a month.

Your app asks the proxy to open a tunnel with the `CONNECT` method. The proxy connects to the site and then only relays encrypted bytes. It can see which site you connect to, but not the pages, passwords or form data inside (unless your device trusts the proxy's own certificate).

They hide it from the website, which sees the proxy's IP instead. Your own network still sees that you connect to the proxy, and the proxy operator sees which sites you reach. On plain HTTP a proxy can add your real IP in a `Forwarded` or `X-Forwarded-For` header; through an HTTPS tunnel it cannot add headers to your request.

A VPN usually sends all of a device's traffic through one encrypted connection and one IP. A proxy works per app and lets you use as many IPs as you need, of the type you choose (ISP, residential, mobile or datacenter), which is why businesses use proxies for scraping and account work.

You connect to one gateway, and it sends each new connection (or each sticky session) out through a different IP from a large pool. On CleanProxies, sticky sessions last 5, 10, 15, 30 or 60 minutes or 24 hours, and rotating residential starts at $0.63/GB.

For accounts and anything that needs a steady IP, static ISP proxies: real carrier IPs that stay yours all month, from $0.75/IP with unlimited bandwidth. For large-scale scraping, rotating residential. For mobile apps and the hardest sites, mobile proxies. Test first with the $4.99 trial.

Team CleanProxies
Proxy Infrastructure Team
Tags
  • proxy basics
  • how proxies work
  • isp proxies
  • socks5
  • https

Related Articles