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.


How It Works
- Mark a folder as private whenever the files inside should no longer be publicly accessible
- Generate an access key for a file or folder and choose how long it should stay valid
- Datasquirel validates that key on each request before serving the protected asset
- 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
- Premium content: Protect downloads such as PDFs, videos, or bundles behind your application logic
- User-specific files: Issue temporary access to invoices, reports, or personal documents
- Confidential media: Share sensitive assets with links that expire on their own
- Secure uploads: Store user-submitted files privately and serve them back only through controlled access flows