Node HandbookNODE HANDBOOK
Subscription fetch

Clash Verge Rev: subscription returned 403

Unlike a timeout, a 403 is a complete conversation: the request arrived, was understood, and was denied. That narrows the cause to whatever the server uses to decide who may read a subscription — and the client can usually change all four of those things.

Last updated: 2026-11-24 · Every error string on this page was reproduced on a real client.

What a 403 proves

HTTP status codes sit at the end of a chain, and each one proves the earlier steps succeeded:

  • DNS resolved the host.
  • TCP connected.
  • TLS completed and the certificate was accepted.
  • An HTTP request was sent and a response came back.

So a 403 rules out every network-layer problem at once. It also rules out a server outage — an unavailable server does not produce a considered refusal. What remains is an authorisation decision, and the decision rules are almost always one of four.

The four things a subscription endpoint judges

User agent

The most common check. Panels reject requests whose User-Agent does not look like a known client, because the alternative — serving any script that asks — makes it trivial to enumerate subscriptions. The rejection is deliberate and the message is a plain 403.

Testing this is one flag:

curl -sS -o /dev/null -w '%{http_code}\n' -A 'clash-verge/v2.0' "$URL"
curl -sS -o /dev/null -w '%{http_code}\n' -A 'curl/8.0' "$URL"

If the first returns 200 and the second 403, the check is user agent and the client's configured UA is the thing to fix. Some panels require an exact string; others accept a prefix. Copy the exact value the provider documents rather than approximating.

Token or path validity

Subscription URLs usually embed a token in the path or a query parameter. If the token was rotated, expired, or truncated when copied, the server returns 403 rather than 404 — it does not want to confirm which tokens exist.

The tell is that the URL worked before and stopped without any change on your side. Re-copy it from the provider's dashboard rather than editing it; a single dropped character in a long token produces exactly this.

Referrer or origin

Some endpoints reject requests that carry a referrer from a different site, or that lack one entirely. This is aimed at people embedding subscription links in web pages. A client normally sends no referrer, so this check mostly affects browser testing — if the URL works in a browser and fails in the client, referrer policy is worth checking in the other direction.

IP or region restriction

An endpoint can refuse requests from addresses outside a region, or from addresses it has flagged for excessive requests. The signature is that the same URL works from another network. Rate limiting often presents as 403 rather than 429, so a burst of failed retries can produce a 403 that looks like a policy denial.

This cause is worth considering when the client has been retrying in a loop: the first failure may have been something else, and the retries may have earned the refusal.

Distinguishing 403 from its neighbours

StatusMeaningDirection of fix
401Authentication required or wrongCredentials, not policy
403Understood and deniedUser agent, token, referrer, IP
404Path does not existURL structure, provider moved it
429Too many requestsWait; slow the retries
502 / 504Upstream failedProvider's own infrastructure

Clients often report all of these as a generic subscription failure, so getting the status code is the first step. That means fetching the URL outside the client once, with the same headers the client would send.

Why the client's built-in updater can hide the cause

An automatic updater retries on a schedule and reports one summary line. If the underlying cause is a rate limit, the retries sustain it. If the cause is a stale token, every retry returns 403 and the interface shows a persistent failure with no detail.

The practical approach is to stop automatic updates, fetch once manually to read the status, fix the cause, then re-enable. Doing it in the other order means diagnosing while the client keeps generating new failures.

What not to change

  • Node settings. No node was read; the profile was never delivered.
  • TLS options. TLS completed. A certificate problem would have failed before the HTTP request.
  • Proxy or TUN settings. Unless the subscription fetch is looping through the proxy, which would produce a timeout rather than a 403, these are unrelated.

The record worth keeping is the status code, the user agent sent, whether the token was recently rotated, and whether another network changes the result. Those four distinguish all the causes above.

Frequently asked

Does 403 mean my subscription expired?

Sometimes, but a 403 alone cannot tell you that. It means the server denied the request. An expired account typically produces the same status as a rejected user agent, which is why testing with a known-good user agent comes first.

Could retrying have caused it?

Yes. Repeated failures in a short window can trip rate limiting, which some panels express as 403 rather than 429. Pause the updater, wait, then test once.

Why does the same link work on my phone?

Different user agent, different IP, or both. Mobile clients send their own UA string, and mobile networks use different addresses. A working phone and a failing desktop is the classic signature of a user agent or IP check.

Is a 403 ever a client bug?

Rarely. It requires the client to send something the server rejects. A client that sends a normal user agent and a valid URL will not receive a 403 unless the server's policy rejects it.

Will changing my DNS fix this?

No. DNS resolved successfully — otherwise the error would have been a lookup failure and no HTTP status would exist. A 403 proves the name resolved.