Forum Discussion

ArielSoto's avatar
ArielSoto
New member | Level 2
2 years ago

Embed a video using an iframe, but prevent downloading

Hello everyone.

This is my issue:

When I embed a video (stored in my Dropbox Essentials account) using an iframe like this (changing "&dl=0" to "&raw=1"):

 
<p><iframe src="xxxxxxx" width="560" height="315" allowfullscreen></iframe></p>
 

The video is playable if there are no restrictions applied (neither password nor download restriction).

My goal is to offer the video playback on my website, but prevent users from downloading it.

Is this possible?

Thanks

3 Replies

  • Hannah's avatar
    Hannah
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    Hey ArielSoto, thanks for your post!

     

    Are you getting some kind of error when trying to view an embedded video with downloads disabled on the link?

     

    Can you send us a screenshot?

     

    Thanks.

  • ArielSoto's avatar
    ArielSoto
    New member | Level 2
    2 years ago

    Hello Hannah!

    Thank you for replying.

    Yes, the website does not show the video, it shows an error like this:

     

     

     

    But, when I go back to the sharing options and remove all the restrictions, the video appears and is ready to be played.

     

    I hope you can help me.

    Best.

  • Jay's avatar
    Jay
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    2 years ago

    Hi ArielSoto, I'd recommend contacting the support team directly to see if they have any information regarding this matter.

About View, download, and export

Node avatar for View, download, and export
Need support with viewing, downloading, and exporting files and folders from your Dropbox account? Find help from the Dropbox Community.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

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, Facebook or Instagram.

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!