If you're trying to prevent users from downloading video files stored in Azure Blob Storage, it's important to understand that Azure Blob Storage has no native way to stream-only or disable downloading. Any file that is accessible (even for streaming) can be downloaded — streaming is downloading, just in chunks.
There are a couple of alternatives you might consider:
- Use a secured service (like Azure Media Services). If you want to stream video securely (e.g., with DRM, token-based access, no easy download), Azure Media Services is purpose-built for this. It:
- Encodes your videos into streaming formats (HLS, MPEG-DASH)
- Supports token-authenticated streaming
- Works with DRM systems (PlayReady, Widevine, FairPlay)
- Makes it harder to download via casual means (though not impossible to a determined user)
- Use Shared Access Signatures (SAS) and limit permissions If you're using raw Azure Blob URLs:
- Use SAS tokens with:
- Expiry time (short-lived)
-
Read
only, noList
,Write
,Delete
- No container-level access
But note that even a read-only SAS allows video playback and download via browser or script. You're only controlling who can access, not how they use it.
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin