← All posts

Signed Video URLs: One Bug Behind Dead Videos, Invisible Duplicates and Broken Players

December 2, 2026

We once had four problems that looked unrelated: videos dying on the day they were published, duplicate videos our checks could not find, thumbnails and players failing, and some players falling back to the browser's plain video player. They had one cause. The addresses we stored for the video files were signed URLs that expired a couple of hours later.

What a signed URL is

Many video hosts protect their files with addresses that carry a token and an expiry time. Decoded, one we had stored looked like this:

...|1789726251|0|example-tube.com|...   → expires 2 hours after it was fetched

Others put a timestamp in the path, or a query parameter such as ?acctoken=.... The address works when you fetch it and stops working soon after. That is the host's intention: the address is meant for one visitor's playback, not for storing.

How one bug became four

What we sawWhy
Dead videosAn address built to live two hours was stored permanently. One site published nearly 2,000 videos in a day that were dead on arrival.
Duplicates nobody could detectEvery re-fetch of the same file produces a new token, so the "same address" check never matched. Address duplicates read 0 while 15.8% of titles were duplicated.
Players failingThe player received an expired address and got a 403.
Fallback to the plain browser playerWhen our player failed to load the source, the page showed the bare file instead.

How to catch it before storing

  • Look for expiry signals: long tokens, parameters like expires, token, acctoken, e=, or a 10-digit number near the current Unix time.
  • Fetch it twice, a few minutes apart, from the source page. If the address changes, it is signed.
  • Re-check an hour later before admitting a new source. A 403 that was a 200 an hour ago settles it.
  • Deduplicate on the file, not the address. Use the host's stable video ID, or the title plus duration.

The general lesson

When several problems appear together, look for the one thing they share before fixing each. We had patched symptoms one by one, and each patch held for a few days. One rule at the point where addresses enter the system ended all four.

Frequently asked questions

Can I use signed URLs at all?

Yes, if you fetch a fresh one at play time from the source page instead of storing it. Storing one is the bug.

Does the API return signed URLs?

No. Sources whose addresses expire are refused at admission; the API serves stable embeds and files.

How do I find signed URLs already in my database?

Search for the expiry patterns above, then re-check a sample. If most fail, the source is signed.

Related: a timeout is not a dead video · DoodStream vs self-hosting

Want a WordPress tube site that fills itself with tagged, categorized video — free?

Get your API key →