+ 3

How do you make a video impossible to download?

When a user right clicks on a video an option comes up to either download the video or copy the source code. How do you disable this?

30th Oct 2018, 3:14 PM
Elijah D
Elijah D - avatar
6 Réponses
+ 6
You can only try to make it harder. Prevent the contextmenu and append the video with javascript. Add transparent element on top of it.
30th Oct 2018, 5:19 PM
Toni Isotalo
Toni Isotalo - avatar
+ 3
Personally, I think this is kindof a losing battle; breaking the browser tends to alienate people + there are ways to beat every block I've ever seen. But if you must try to go this way... https://code.sololearn.com/WwP2umNQkDbA/?ref=app
30th Oct 2018, 3:47 PM
Kirk Schafer
Kirk Schafer - avatar
+ 2
(almost impossible) make a js code that draw every single frame on a canvas (more possible than the first) make an SVG or a CSS animation
30th Oct 2018, 4:43 PM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar
+ 2
Thanks Kirk Schafer Is there a way to somehow create your own video element, so that the when the user right clicks on the video, the computer just thinks that it is part of the page?
30th Oct 2018, 4:55 PM
Elijah D
Elijah D - avatar
+ 1
Elijah D The computer i.e. the browser draws the page. Generally when you include a video you send a link to the video. The browser downloads it and puts it on the page. But if the browser can download it then it can, well, download it, and put it in the Download directory instead of in it's cache.
30th Oct 2018, 5:19 PM
Vlad Serbu
Vlad Serbu - avatar
+ 1
Great idea Toni Isotalo Thanks Vlad Serbu
30th Oct 2018, 8:10 PM
Elijah D
Elijah D - avatar