# Fix "HTTP Error 403: Forbidden" in yt-dlp

Fix yt-dlp HTTP Error 403: Forbidden — update the extractor, pass cookies, clear the cache, and rule out IP blocks, in the order that actually works.

A 403 means the site accepted your connection and then refused to serve the file. With yt-dlp that almost always comes down to one of four things: a stale extractor, missing auth, a cached token that expired mid-session, or an IP the site does not trust.

<HostedAnswer>
Update yt-dlp, clear its cache with `--rm-cache-dir`, then retry with browser cookies. If the same command still gets 403s only on a server or in CI, the IP is being refused, not the command (see below).
</HostedAnswer>

## Quick answer

Work through these in order — most 403s die at step one or two.

```bash
# 1. Update — old extractor logic is the #1 cause
yt-dlp -U

# 2. Clear yt-dlp's cache of expired tokens
yt-dlp --rm-cache-dir

# 3. Retry with signed-in browser cookies
yt-dlp --cookies-from-browser chrome "URL"
```

<BreakageAlerts />

## What each step actually fixes

- **Updating** replaces extractor logic the site has already broken. Download URLs are signed and formatted per site, and those schemes change constantly — an old yt-dlp asks for files in a way the site now rejects.
- **Clearing the cache** removes stored signature data and tokens that have expired. A stale cache can keep producing 403s even after you update.
- **Cookies** cover the cases where the file itself is gated: age restrictions, members-only content, region checks, or anything that needs a signed-in session.

## Still 403 after all three?

- **Your IP may be blocked or rate-limited.** Datacenter and VPN addresses get refused outright by many sites. Test the same command from a home connection — if it works there, the IP is the whole story.
- **You may be downloading too fast.** Some sites 403 mid-download as throttling. Try `--limit-rate 2M --sleep-requests 1`.
- **The video may be genuinely unavailable** — region-locked, private, or taken down. Open the URL in a normal browser from the same machine and confirm it plays at all.
- **You saw "forcing SABR streaming" before the 403.** That's a specific YouTube case — formats get skipped and the surviving ones need a PO token. See [the SABR/403 guide](/guides/fix-403-sabr).
- **On YouTube, try a different player client.** YouTube serves formats through several internal clients, and at times only some of them 403 while others still work. When a YouTube 403 survives an update and the IP checks out, force a different client with `--extractor-args "youtube:player_client=web_safari"`, or drop a troublesome one with `--extractor-args "youtube:player_client=default,-web_embedded"`. This is a moving target (which clients work changes as YouTube does — checked November 2026), so treat it as a current workaround, not a permanent fix, and keep yt-dlp updated. See [choosing a YouTube player\_client](/guides/yt-dlp-youtube-player-client) for which clients return formats right now and how to test them.

## The mistake to avoid

Do not start stacking random flags from old forum threads before updating. Nine times out of ten a 403 is stale extractor logic, and no combination of headers or user agents fixes that — `yt-dlp -U` does.

<DocCta variant="server-agent" />

<Faq />

## Related guides

- [Update yt-dlp](/guides/update-yt-dlp)
- [Use cookies with yt-dlp](/guides/yt-dlp-cookies)
- [Fix "forcing SABR streaming" + 403](/guides/fix-403-sabr)
- [Fix "The downloaded file is empty" (fragment HTTP 500)](/guides/yt-dlp-fragment-500-empty-file)
- [Fix "Sign in to confirm you're not a bot"](/guides/fix-sign-in-to-confirm-not-a-bot)
- [Avoid 429 "Too Many Requests" with pacing](/guides/yt-dlp-rate-limit-avoid-blocks)
- [Fix common yt-dlp errors](/guides/fix-yt-dlp-errors)