claude/for
Search
Subscribe
Claude Code

“Request blocked before it reached Anthropic's API”: fix it

The edge in front of Anthropic's API refused your network: VPN, proxy, hosting or region. Signing in again won't help. Turn off the VPN or switch networks.

"API Error: Request blocked before it reached Anthropic's API (HTTP 403)" means the edge in front of Anthropic's API refused your request because of where it came from: usually an unsupported country, a VPN, a proxy or a hosting network. Anthropic applies the block, but your network's address triggers it, not your account, so signing in again won't help. Turn off any VPN or switch networks, then retry.

claude-for is an independent guide, not affiliated with Anthropic. Everything below was checked on December 5, 2026 against Anthropic's Claude Code changelog, its network configuration docs, its Supported Regions Policy and public GitHub reports.

TL;DR. Send the message once more. If it fails again, turn off your VPN, or move from mobile data to Wi-Fi (or the reverse), and retry. Don't run /login. If every network fails and you are in a supported country, check status.claude.com, then report it from a browser.

The exact wording, and where it shows

The full message, as quoted in GitHub issue #107173 and #108761, reads:

API Error: Request blocked before it reached Anthropic's API (HTTP 403) · the network this request came from isn't allowed: usually an unsupported region, or a VPN, proxy or hosting network · signing in again won't change this · check your VPN or network and retry · supported regions: https://anthropic.com/supported-countries

The wording is present in the Claude Code 2.1.337 terminal app, checked December 5, 2026. Its explanation dates from version 2.1.317, which Anthropic's changelog dates November 3, 2026: "Fixed a region or network block (HTTP 403) being shown as a sign-in failure; the error now explains the block." The same release stopped the VS Code extension from opening its sign-in screen for such a block.

Two related wordings appear in #108761. When the block cut a Remote Control link, the notice said "a network edge refused the connection before it reached Anthropic's server", naming "Anthropic's CDN enforcing a region or network policy, or a Cloudflare gateway on this network". The reporter's /feedback attempt failed too: "Couldn't send feedback (server returned 403: Request not allowed)".

Messages that look similar but are not this one

  • "API Error: 403 Request not allowed" after login: Anthropic's login troubleshooting points to your subscription, your Console role, then your proxy.
  • "Couldn't connect through your proxy (ERR_PROXY_TUNNEL)": your own proxy refused, per the error reference.
  • "SSL certificate verification failed": a TLS-inspecting proxy Claude Code doesn't trust (certificate errors).
  • "Please run /login · API Error: 403 Attention Required! | Cloudflare": a Cloudflare challenge page shown as a sign-in failure, covered in our guide to it.

What sits between Claude Code and the API

Your request crosses several layers, and each fails with its own wording:

LayerRun byWhat a block there looks like
VPN app on your computerYouThis message, if the VPN's exit is refused
Proxy set in HTTPS_PROXYYou or IT"Couldn't connect through your proxy", or this message if its exit is refused
TLS-inspecting firewallIT"SSL certificate verification failed"
Firewall blocking hostsIT"Connection refused" or "Unable to connect to API"
Cloudflare gateway on your networkITProbably this message, as the Remote Control wording suggests
Mobile carrier or hosting providerThemThis message, if their address is refused
Anthropic's edge (its CDN)AnthropicThis message: region and network policy
Anthropic's APIAnthropic"403 Request not allowed" and other account errors

So the wording names the layer: the edge refused the address your request arrived from. Three checks find which address:

  • VPN off. Disconnect fully, including any always-on mode, and retry. If it works, the VPN's exit was refused.
  • Another network. Switch between Wi-Fi and a phone hotspot. If one works, the other network's address is the problem.
  • Proxy check. Run /status. Its Proxy row "shows the active proxy URL", per Anthropic's docs. An unexpected entry means your traffic leaves through that proxy.

The error reference also suggests curl -I https://api.anthropic.com from the same shell. A 403 there too means the block follows your address (our reading, not Anthropic's).

The Claude moves worth stealing, by email

Workflows tested on real jobs, sent only when they are worth it. Free.

Why your network was refused

  • An unsupported country. Anthropic's Supported Regions Policy, effective November 12, 2026, says its products, Claude Code included, "are available only in the countries and regions listed below". It counts "use by persons while physically located in an unsupported region" as unsupported, which matters when you travel.
  • A VPN or proxy exit. The edge sees the exit's address, not yours.
  • A hosting network. The message names it, so a cloud server, a VPS or a remote dev box can be refused.
  • Mobile data. Both public reporters were on a mobile connection.

In #107173 (November 4, Claude Code 2.1.318, macOS, a Claude subscription), the block came every time the reporter used an iPhone hotspot on a Ukrainian carrier. Ukraine is on the supported list, except five regions including Crimea. On December 2 the reporter wrote that it "seems like it's fixed (for now)".

In #108761 (November 10), a request failed after a switch from a landline to mobile data, and an immediate resend went through. Later, one message was refused 4 times out of 5. Nothing documents why. Our guess, and only a guess: carriers share addresses among many users, and the edge can misjudge them.

How to fix it

Stop as soon as the message goes away.

now

Send the message again

The message says to retry, and in one report an immediate resend worked.

next

Turn off your VPN completely

Then retry. A server in a supported country is no guarantee: the edge may still class the address as a VPN.

next

Switch networks

Hotspot to Wi-Fi, or the reverse. Both public reports involve mobile data.

next

Check Claude Code's proxy

Run /status and read the Proxy row. Remove a leftover HTTPS_PROXY you don't need.

next

On a work network, ask IT

Send the full message. Ask which address your traffic to api.anthropic.com leaves from, and whether a Cloudflare gateway sits in the path.

next

Check that your country is supported

If you are physically in an unsupported country, no setting fixes this: the policy is about where you are.

Skip /login. Our guide to claude auth status shows how to confirm your sign-in is fine without touching it.

Proxy and certificate settings on a work network

A proxy changes the address Anthropic's edge sees, so setting, fixing or removing one can change the outcome. Anthropic's network docs read https_proxy, HTTPS_PROXY, http_proxy, then HTTP_PROXY, with NO_PROXY for hosts that skip it. Write the proxy as a full URL, such as http://proxy.example.com:8080, and give IT the hosts to allow, starting with api.anthropic.com, claude.ai and platform.claude.com.

Certificate settings won't clear this message, since a TLS problem shows as a certificate error. Claude Code trusts its bundled certificates and the system store by default (CLAUDE_CODE_CERT_STORE=bundled,system), and NODE_EXTRA_CA_CERTS adds your company's root. Put these in the env block of ~/.claude/settings.json; claude --debug logs whether they loaded. Replies cut off partway behind a proxy are another fault: see CLAUDE_CODE_DISABLE_RESPONSE_COMPRESSION.

When to stop and wait

status.claude.com rarely explains this message: it listed no incident on November 3 or 4, or on the morning of November 10, when the reports were filed. Check it anyway if a network that worked an hour ago fails with nothing changed on your side. The edge is Anthropic's, and one reporter's block cleared with no change they described.

If you are in a supported country, with no VPN, and every network fails, report it on GitHub from a browser, since /feedback can fail with the same 403. Include the time, network type and Claude Code version. For other error messages, see our Claude not working guide.

The honest limits

Anthropic's error reference has no entry for this message, checked December 5, 2026. Anthropic doesn't publish which networks its edge refuses: no list of VPN, hosting or mobile ranges, and no documented way to appeal a refused address.

We found no Anthropic reply on either report: #108761 was marked stale on December 5, and #107173 was closed after the block stopped. We have not reproduced the message. Both reports appear to come from the terminal app, so the VS Code or desktop wording may differ.

Questions people ask

Will /login fix "Request blocked before it reached Anthropic's API"?

No. The message itself says "signing in again won't change this". The refusal is about the network address your request came from, not your credentials. Turn off your VPN or change networks instead, and keep your current sign-in.

Can a VPN cause an HTTP 403 in Claude Code?

Yes. The message lists a VPN among the usual causes, because Anthropic's edge sees the VPN's exit address, not yours. Disconnect it fully and retry. If your company requires the VPN, ask IT which address your Claude Code traffic leaves from.

Why does Claude Code block my mobile hotspot?

Anthropic doesn't say. Both public reports, from November 4 and 10, 2026, involve mobile data, and one reporter later said it seemed fixed. Use Wi-Fi in the meantime, and retry the hotspot later.

Is Claude Code available in my country?

Check Anthropic's Supported Regions Policy at anthropic.com/supported-countries. One list covers Claude.ai, Claude Code and the API. What counts is where you physically are, so a trip to an unsupported country takes you outside it, even on a paid plan.

If Anthropic documents this message or changes how its edge treats networks, the newsletter will say so in one line.

The Claude moves worth stealing, by email

Workflows tested on real jobs, sent only when they are worth it. Free.