You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
alexkaplanphoto
6 years agoExplorer | Level 3
How to prevent download option from dropbox video player?
I use share links of videos to put on my website and I change the end paramters to "raw=1" to make this happen. All is fine except for the fact that anyone can click the 3 dots and download the video. Is there any option to disable this? This is what I'm talking about: [External link removed to allign with our Community guidelines]
I tried the option to disable downloads in link settings but then the video does not play at all.
- FionaDropbox Staff
Hello alexkaplanphoto!
Thanks for sharing your user case. :slight_smile:
Downloads can be disabled for a shared link on dropbox.com or on the Dropbox mobile app, if you are on a Professional or Business Dropbox subscription. Please find all the information for shared link permissions here.
Hope this helps. Feel free to ask more questions!
Have a nice week.
- alexkaplanphotoExplorer | Level 3
When I disable downloads, the embedded dropbox video will no longer play
- FionaDropbox Staff
This could be a browser issue. Permissions should not affect previewing.
Please try accessing the link from an incognito window or another browser and let me know if previewing is still an issue.
- ЗдравкоLegendary | Level 20
Hi alexkaplanphoto,
In fact, when you change the ending parameters to "raw=1", you have almost formed a download links! :wink: The only difference is missing "content-disposition" in http header. If you embed a link with attribute "download", pointing to your video, it become download link. That's why when you disable downloads, video becomes completely inaccessible (including for play in your site). It still left accessible through the "dl=0" link, but only difference is a disabled download button! There is no secure way to completely prevent downloads. If somebody can see the video on your site, there is always a way to download it. Only thing you can do is to make it difficult, that's it. Dropbox don't provide actual instrumentation to make this secure enough, so be difficult to somebody more experienced than a small child (that isn't a main purpose for this service). In the page describing download disabling is noted:
Important note: Disabling downloads for a shared link prevents people from downloading the contents of a link through Dropbox. This doesn’t prevent people from saving the content using other methods.That's why if you really want to "disable" downloads, have to use some server script (or similar techniques) for "reformatting" the stream in some way and make a download difficult enough. Your decision/solution should depends on target difficility. :wink:
Hope this gives some direction.
- alexkaplanphotoExplorer | Level 3
Thanks for the reply. I realize anyone can download my video if they really want to. But most people looking at wedding videos won't even bother/want to use external methods to download a video. I just don't like the fact on how obvious Dropbox can notify viewers how easy anyone can just directly download the video. It would be nice like on how Google Drive I can embed videos and there is no direct option to download the video.
- ЗдравкоLegendary | Level 20
Ooohh... If the problems are default browser player options, they could be disabled using different approaches. Overflow the player with a <div> tag, for example, and redirect clicks alternatively to play and pause. :wink: No very powerful but simple solution. You can use HTML like following (as idea):
<div> <div style="width: 320px;height: 240px;position: absolute;" onclick="a=this.nextSibling; if(a.paused) a.play(); else a.pause()"/> <video width="320" height="240"> <source src="<raw link to the clip>" type="video/mp4"> Your browser does not support the video tag. </video> </div>
Unfortunately Dropbox don't allow their player embedding. Would be more convenient (and secure, if the above is used as a compare base), but... :slight_frown:
About View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.
Need more support
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!