Proxy 403 Forbidden: Is It the Proxy or the Website?

· Updated:

A proxy 403 Forbidden means a server understood your request and refused it, and through a proxy that server is either the proxy itself or the website behind it. A 403 on the CONNECT step (often shown as tunnel connection failed 403) comes from the proxy; a 403 after the tunnel opens comes from the site. Work out which one answered first, because the fixes are different.

When a site refuses hosting networks, try an ISP IP

Proxy 403 forbidden: who sent it?

Your client usually reports just the status code, so look at when the 403 arrived and what came with it. For HTTPS sites the client first sends CONNECT example.com:443 to the proxy; only after the proxy replies 200 does TLS with the site begin.

If the proxy refuses the CONNECT, it answers with 403 Forbidden and the tunnel never opens. If the tunnel opens and the site's own server or its CDN refuses the request, you get a 403 page from the site. A common sign of the second case is a 403 through the proxy only, while the same URL loads from your own connection.

Diagnostic indicatorIntermediary proxy generatedTarget origin server generated
When it happensOn the CONNECT request, before TLSAfter the tunnel opens and TLS completes
Typical messageCONNECT tunnel failed, response 403 or tunnel connection failed 403The site's 403 page or a CDN block page
Server headerOften the proxy software, if it sets oneOften the site's server or CDN
Same request without the proxyNot comparable: the proxy is the one refusingOften succeeds

Recognizing intermediary tunnel connection failures

A proxy can refuse the tunnel when its rules do not allow the destination port or host, or when the account is not allowed to use it. It then returns HTTP/1.1 403 Forbidden to the CONNECT and closes the request.

Browsers usually turn this into ERR_TUNNEL_CONNECTION_FAILED; Python requests reports ProxyError with Tunnel connection failed: 403 Forbidden; curl reports CONNECT tunnel failed, response 403.

Recognizing origin website reputation blocks

A site-side 403 arrives after TLS, so it reflects the site's own access rules. Many sites and CDNs score requests by IP reputation and by the network the IP belongs to, and some refuse traffic from hosting networks, from certain countries, or from clients that look automated.

This is the classic site blocks proxy IP 403 case. The proxy did its job; the site decided not to serve that address or that request.

When the proxy itself returns 403

Some proxies only allow CONNECT to port 443. A request to an API on port 8443, or to a plain HTTP site on a non-standard port, can be refused with 403 by the proxy's access rules. Test the same proxy against an ordinary https:// URL on port 443 to see whether the port is the issue.

Account problems usually produce 407 Proxy Authentication Required rather than 403, but proxy software differs and some return 403 for an expired order or refused account. Check that the order is active and that you copied the current ip:port:user:pass line, especially after changing protocol mode, which can move the proxy to a new port.

Why a site returns 403 through the proxy only

Seeing a 403 through the proxy only, while your home connection loads the page, is common in data collection and multi-profile browsing. The difference is usually the network the IP belongs to, not the proxy software.

Datacenter IPs are registered to hosting companies, and some sites treat traffic from hosting networks as higher risk because ordinary visitors rarely browse from a server. How strict this is varies widely: many sites accept datacenter IPs, some challenge them, and some refuse them outright.

The request itself matters too. Some sites reject requests with no User-Agent or a default library one, or a burst of requests from one IP. Send an honest User-Agent that names your tool, keep request rates modest, and read the site's terms and robots.txt. A 403 can simply mean the site does not allow automated access, and a different IP does not change that.

Diagnose the 403 with curl

A verbose curl request shows the exchange with the proxy and the site step by step:

curl -sv -o /dev/null --max-time 20 -x http://USER:PASS@IP:PORT https://example.com

If the output shows CONNECT example.com:443, then < HTTP/1.1 403 Forbidden and CONNECT tunnel failed, response 403, the proxy refused the tunnel. If it shows < HTTP/1.1 200 Connection established, then TLS lines and later < HTTP/2 403 (or HTTP/1.1 403), the site refused the request. Exact wording varies a little between curl versions.

Then check that the proxy reaches the internet at all:

curl -s --max-time 20 -x http://USER:PASS@IP:PORT https://proxyv4.com/api/my-ip

If this prints the proxy's IP, the proxy works and the 403 is specific to the target site. If it also fails, check the line and order status, or paste the line into the proxy checker.

When a static ISP IP helps, and when it does not

If the diagnosis shows the site refuses hosting networks, and the use is one the site allows, such as managing your own accounts, checking your own listings or ads, or work the site's terms permit, an IP on a consumer network is a reasonable fix. ProxyV4 static ISP proxies are fixed IPs registered to consumer internet providers in 23 countries, with one tenant per IP. They support HTTP(S) with username and password (SOCKS5 outside Vietnam), and traffic is never metered or billed.

It does not fit if the site needs a new IP for every request (rotating proxies are waitlist-only), accepts only mobile carrier IPs, or needs an ISP IP outside the 23 countries we cover. If the 403 means the site does not allow your kind of access, no proxy type is the right answer. IPv6 proxies are a separate product that only works on IPv6-ready sites; private IPv4 works on every IPv4 and dual-stack site.

Buy one IP, test it against the real target, then scale. See live prices.

Fixing a site-side 403 the right way

Start with the request: send a User-Agent that identifies your client, slow down, and cache pages you already fetched. Many 403s from automation tools stop once the client stops sending bursts of identical requests.

If the data you need is offered through an official API, use it. If you do not operate the site and it refuses your traffic, ask the owner for access or to allow-list your IP; if you do operate it, add an exception for your own IPs in the WAF or CDN.

Only after that, and only for access the site permits, change the type of IP you send from.

Frequently asked questions

Why does a 403 forbidden error occur through a proxy but not my home connection?

Some sites score requests by the network an IP belongs to. Datacenter IPs belong to hosting networks, which some sites treat as higher risk than home connections; how strict this is varies by site.

Does a 403 forbidden error mean my proxy is offline?

No. A 403 means a server received and refused the request. An unreachable proxy produces a timeout or connection refused instead; see the proxy timeout guide for that case.

Will switching from HTTP to SOCKS5 fix a 403?

Only if the 403 came from the proxy because the port was in the wrong mode. A 403 from the website is about the IP or the request, so the protocol makes no difference.

Do ProxyV4 static ISP proxies keep the same IP address upon renewal?

Yes. The IP stays the same while the proxy is active, and renewing before expiry keeps the same address. You can renew all proxies or a selection.

Are technical failures covered under the refund policy?

A proxy that fails for a technical reason, such as not connecting or showing the wrong location, is covered by the refund policy, credited to your account balance. A website choosing to refuse an IP is not a technical failure of the proxy.

When a site refuses hosting networks, try an ISP IP

ProxyV4 static ISP proxies are fixed IPs registered to consumer internet providers in 23 countries, with HTTP(S) or SOCKS5 outside Vietnam and unmetered traffic. Test one IP against your target first.

Try one private IP

Related articles

Proxy errors
Behind ERR_TUNNEL_CONNECTION_FAILED: reading the proxy's CONNECT reply
ERR_TUNNEL_CONNECTION_FAILED hides the proxy's real reply to CONNECT. Uncover the 407 or 502 behind it and fix Chrome, Puppeteer, Playwright or Android setups.
Proxy errors
Fixing a 407 from your proxy: a credentials checklist
407 Proxy Authentication Required means the proxy refused your login. The causes in one table, and fixes for Chrome, curl, Python, Selenium and antidetect apps.
Free tools
Check proxies in bulk: status, exit IP and latency
Free online proxy checker: paste up to 100 ip:port:user:pass lines and see which proxies work, their exit IP and latency, plus what each failure result means.
Proxy setup
Using cURL with an authenticated proxy: commands that prove it works
Send cURL requests through an authenticated HTTP(S) proxy with -x and -U, confirm the exit IP, read the CONNECT handshake and time each request on any OS.
Proxy errors
Proxy errors explained, with fixes
Proxy error pages each take one message, explain what it means, list the usual causes and walk through the fix in Windows, Chrome, antidetect browsers, phones and code. Every output shown was reproduced with real test proxies. If your error is not listed, check the message against the proxy checker first: it shows whether the proxy itself answers, so you know whether to look at the proxy or at your own setup.
Knowledge base
How to Fix 429 Too Many Requests When Using a Proxy
Getting 429 Too Many Requests through a proxy? Learn who sent it, how to honor Retry-After with backoff, and when more IPs help and when they do not.
Knowledge base
How to Diagnose and Fix Connection Reset by Peer with a Proxy
Fix connection reset by peer (ECONNRESET, errno 104) through a proxy: find which hop sent the reset with curl, then fix keep-alive, mode and retry issues.
Knowledge base
When a Proxy Works in curl but Not in the Browser
Proxy works in curl but not browser? Compare how each tool gets its proxy, login and protocol: env vars, Chrome flags, SOCKS5 login, extensions and PAC files.
Products
Dedicated datacenter proxies: one private IPv4 per customer
Private IPv4 proxies in the US, Vietnam, Japan, South Korea, Singapore, the UK and Hong Kong. One tenant per IP, HTTP(S) and SOCKS5, no traffic metering.
Products
Static ISP proxies: residential IPs on consumer networks
Static ISP proxies in 23 countries, from Germany and the UK to the US, Brazil and Japan: fixed IPs on consumer networks, one customer each, unmetered traffic.