Private Media

Protect uploaded files with access rules managed inside Datasquirel. Private folders, expiring keys, and immediate revocation make it easier to serve sensitive media without a separate storage permission model.
Page Hero Image

How It Works

  1. Mark a folder as private whenever the files inside should no longer be publicly accessible
  2. Generate an access key for a file or folder and choose how long it should stay valid
  3. Datasquirel validates that key on each request before serving the protected asset
  4. After expiry, access stops automatically until a new valid key is issued

Key Features

Time-Limited Access Keys

Access keys can expire automatically, which is useful for temporary downloads, customer portals, and other flows where links should not remain valid forever.

Database-Managed Auth

Permissions live inside Datasquirel rather than in a separate CDN or object storage system, which keeps file access logic closer to the rest of your app data.

Folder-Level Privacy Control

Privacy is easy to reason about because it is managed per folder. You can keep public assets open while restricting entire groups of sensitive files in the same account.

Instant Revocation

Remove a key and the next request is denied. That is useful when access should end immediately after a contract, download window, or support session.

Use Cases

  1. Premium content: Protect downloads such as PDFs, videos, or bundles behind your application logic
  2. User-specific files: Issue temporary access to invoices, reports, or personal documents
  3. Confidential media: Share sensitive assets with links that expire on their own
  4. Secure uploads: Store user-submitted files privately and serve them back only through controlled access flows

Ready to take control of your data?

Create a free account and start managing your databases in minutes, or deploy Datasquirel on your own infrastructure using the self-hosted community edition.