# Fix "Sign in to confirm you're not a bot" in yt-dlp

Fix yt-dlp's 'Sign in to confirm you're not a bot' error: update, pass cookies the right way, and what to do on a VPS, in Docker or in CI where cookies alone stop working.

This is YouTube's bot detection deciding your request looks automated. It is not a bug in your command. It shows up most often on datacenter and VPN IPs, after bursts of requests, or when yt-dlp is out of date and using request patterns YouTube has already flagged.

Last checked December 1, 2026 against yt-dlp 2026.11.23.

<HostedAnswer>
On your own machine, update yt-dlp and pass cookies from a signed-in browser. On a server, the IP is usually the cause, so cookies and slower requests help but rarely make it go away for good (details below).
</HostedAnswer>

## Quick answer

Update yt-dlp, then pass cookies from a browser where you are signed in to YouTube.

```bash
yt-dlp -U
yt-dlp --cookies-from-browser chrome "URL"
```

Swap `chrome` for `firefox`, `edge`, `brave`, or `safari`. Signed-in cookies prove to YouTube that a real account is behind the request, which clears the check in most cases.

<BreakageAlerts />

## If you also see "No title found in player responses"

The bot check often comes with a warning a line or two before it:

```text
WARNING: [youtube] VIDEO_ID: No title found in player responses; falling back to title from initial data. Other metadata may also be missing
ERROR: [youtube] VIDEO_ID: Sign in to confirm you're not a bot. ...
```

yt-dlp asks YouTube for the video through several player clients. This warning means none of them sent the video back, so yt-dlp took the title from the watch page instead. It isn't a separate bug, and the line after it tells you what happened:

- **"Sign in to confirm you're not a bot" comes next.** YouTube turned every client away. Fix it the way the rest of this page describes: cookies, fewer requests, and on a server the steps further down. This is the usual case on a VPS, in Docker and in CI.
- **The video is age-restricted or members-only.** The clients need a signed-in account that can watch it. Pass cookies from that account.
- **Neither.** Update yt-dlp (`yt-dlp -U`) and retry. A YouTube change can break the clients until a release catches up.

Add `-v` to see what each client got back.

## If cookies alone do not fix it

- **Check your IP.** Requests from cloud servers, VPNs, and shared proxies get challenged far more aggressively than home connections. Try the same command from a residential IP to confirm the IP is the problem.
- **Slow down.** Bursts of requests trigger the check. Add `--sleep-requests 1` and avoid launching many downloads in parallel against the same site.
- **Export cookies to a file for servers.** On a headless machine there is no browser to read from. Export `cookies.txt` from your own browser and pass `--cookies cookies.txt`.
- **Stay updated.** YouTube changes its bot checks continuously, and yt-dlp ships counter-fixes in releases. An old build fails checks a current build passes.

## Why the cookies fix stops working

- **YouTube rotated them.** If you exported cookies from a browser tab you keep using, YouTube refreshes that session and the file goes stale within hours or days. Open a private window, sign in, export the cookies, then close the window without signing out, so nothing touches that session again.
- **Chrome on Windows can't be read.** If you see `Failed to decrypt with DPAPI`, recent Chrome versions encrypt cookies in a way yt-dlp can't read. Use `--cookies-from-browser firefox` or an exported `cookies.txt`.
- **The account got flagged.** Heavy automated use of one account can get it challenged too. Use a separate account, not your personal one.

To confirm cookies are being read at all, see [the cookies guide](/guides/yt-dlp-cookies).

## On a server, in Docker or in CI

This is where the error shows up most, because YouTube reacts to the IP first. Work through it in this order:

1. **Pass a cookies file.** There is no browser to read from, so export `cookies.txt` as above and mount it where yt-dlp can write to it. yt-dlp saves refreshed cookies back to the file when it exits.

```bash
docker run --rm -v "$PWD/cookies.txt:/cookies.txt" -v "$PWD:/downloads" \
  yt-dlp --cookies /cookies.txt "URL"
```

2. **Rebuild with the latest yt-dlp.** A container image built last month ships last month's yt-dlp. See [running yt-dlp in Docker](/guides/run-yt-dlp-server) for a Dockerfile that stays current.
3. **Try another player client.** Some clients get challenged less than others at a given time. [The player client guide](/guides/yt-dlp-youtube-player-client) lists the ones that work right now.
4. **Add a PO token provider.** On cloud IPs YouTube increasingly wants a proof-of-origin token. [Run a PO token provider on a server](/guides/yt-dlp-po-token-server).
5. **Accept that the IP may be the wall.** If all of that still fails, the server's IP range is the problem. A GitHub Actions or AWS runner can fail every time no matter the flags. See [yt-dlp blocked on a server](/guides/yt-dlp-blocked-on-server) and [yt-dlp in GitHub Actions](/guides/yt-dlp-github-actions) for what's left to try.

## Why this error keeps coming back

This is an arms race, not a one-time fix. YouTube tightens automated-traffic detection; yt-dlp adapts; the cycle repeats every few weeks. A command that worked yesterday can fail today with the exact same flags. If you only download occasionally on your own machine, updating plus cookies will keep you moving. If this runs inside a product or a scheduled job, expect to re-fix it on YouTube's schedule, not yours.

## The mistake to avoid

Do not hammer the same URL with retries while the check is active. That makes your IP look more automated, not less. Fix the trust signal first: fresh yt-dlp, real cookies, reasonable request rate, residential IP if you can.

<AppCodeTabs />

<DocCta variant="server-agent" />

<Faq />

## Related guides

- [Use cookies with yt-dlp](/guides/yt-dlp-cookies)
- [Update yt-dlp](/guides/update-yt-dlp)
- [Run yt-dlp on a server](/guides/run-yt-dlp-server)
- [Slow down yt-dlp to avoid rate limits and bot walls](/guides/yt-dlp-rate-limit-avoid-blocks)
- [Fix common yt-dlp errors](/guides/fix-yt-dlp-errors)
- [Switch the YouTube player client](/guides/yt-dlp-youtube-player-client)
- [Run a PO token provider on a server](/guides/yt-dlp-po-token-server)