+ 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?
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.
+ 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
+ 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
+ 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?
+ 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.
+ 1
Great idea Toni Isotalo
Thanks Vlad Serbu