Behind the link

What is a signed URL?

Definition

A signed URL is a temporary address for a stored file with a cryptographic signature and an expiry time built in. It lets a browser fetch one specific file for a few minutes, so the storage itself never needs to be public.

Also called: Presigned URL, Pre-signed link, Signed link, Temporary URL

How does a signed URL work?

A signed URL works by carrying its own permission. The host's server takes the file's path, an expiry time and the allowed action, such as download or upload, and runs them through a secret key that only it knows. The result is a signature, a long string of characters added to the end of the address.

When a browser uses the URL, the storage service repeats the calculation with the same key. If anything in the address was changed, or the expiry time has passed, the two signatures do not match and the request is refused. No login is needed, because the URL itself is the proof that the host said yes.

Why do file hosts use signed URLs?

File hosts use signed URLs so their storage can stay private while people still get their files quickly. Without them, a host has two poor choices: make every file public on the storage service, or pass every byte through its own web servers. Signed URLs avoid both:

  • Uploads go straight from your browser to storage, so big files skip the size limits of the website's own servers.
  • Downloads are handed out only after the host has checked the link's password, expiry date or view limit.
  • Each URL covers one file and one action, so a leaked address cannot be used to list or change anything else.

Is a signed URL the same as a shareable link?

No. A shareable link is the stable address you send to people, and it can stay the same for years. A signed URL is a short-lived address the host creates behind the scenes, often a fresh one each time someone opens the shareable link and passes its checks.

That split is what makes link controls hold. Turn a shareable link off and no new signed URLs are made for it, while the ones already handed out run out within minutes. It is also why you should not copy a signed URL from your browser and send it on: it will soon stop working, and it skips the page your reader was meant to see.

Can anyone use a signed URL?

Yes, anyone who holds it can use it until it expires. A signed URL works like a ticket: there is no password or account check, so whoever has the address gets the file. That is why hosts keep the expiry short. One with a long expiry behaves like an expiring link that usually cannot be cancelled early, which makes it a poor way to share a file.

Signed URLs compared with other file addresses
AddressWho can open itHow long it works
Public storage URLAnyone who finds itUntil the file is deleted
Signed URLAnyone holding it, for one fileUntil its expiry time, often minutes
Shareable linkAnyone with it, after the link's checksUntil you turn it off or it expires

Signed URL: common questions

What does a signed URL look like?

Like a normal web address with a long query string on the end. On S3-compatible storage, for example, you see parameters such as X-Amz-Expires and X-Amz-Signature.

How long does a signed URL last?

As long as the host decides, from seconds to days. Hosts that care about access control keep it to minutes, because anyone holding the URL can use it until then.

Can a signed URL be revoked?

Usually not one at a time. It stays valid until it expires, unless the host changes the secret key, which cancels every URL signed with it.

Why did a download address stop working after a few minutes?

You probably copied the signed URL the host used behind the scenes, not the link you were sent. Open the original link again and the host gives you a fresh one.

Go deeper

Updated

Share a file as a link in seconds

Upload any file and get one clean link, with every setting on this page.

Try Link in Seconds

Optional cookies for analytics, ads and session replay.