Stop html5 mp4 from download src






















Bill the Lizard k gold badges silver badges bronze badges. Tim Cooper k 36 36 gold badges silver badges bronze badges. Myra Myra 3, 3 3 gold badges 36 36 silver badges 46 46 bronze badges. Using an ID is rather annoying if you can have N videos.

What if I want to stop all videos from playing? Someone already has the answer. It is totally a valid seletor! George George 1 1 silver badge 1 1 bronze badge. Binding this to the beforepagehide event fixed it. The important part is this. Halsafar Halsafar 2, 3 3 gold badges 26 26 silver badges 51 51 bronze badges. Haven't test with IE. To save hours of coding time, use a jquery plug-in already optimized for embedded video iframes. Matth Matth 11 1 1 bronze badge. DustyDigits DustyDigits 1.

The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. The question being alluded to is how to save that content in the browser. To view content, client browsers download from content servers and make it available locally.

One solution becoming popular is to save ephemeral content in browser only, and for a limited time, in a way that cannot be saved directly. The short expiry of content makes persistent storage almost impossible to ordinary users since new content is displayed before user can attempt to save expired content. Just in case you need that too, here's what you put in the AngularJS controller in question:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?

Collectives on Stack Overflow. Learn more. Prevent HTML5 video from being downloaded right-click saved? Ask Question. Asked 9 years, 8 months ago. Active 1 month ago. Viewed k times. Are there more complete solutions that prevent the client from accessing a file path directly? Braiam 4, 11 11 gold badges 50 50 silver badges 73 73 bronze badges. I up-voted this question because it only absolutely asks for how to "disable the right-click" for an HTML5 video.

I am not sure if it is similar to right-click disabling for normal images or if there are other overlay tricks, etc. Even if you could somehow block that, they can view-source to find the URL of the file. Even if you could obscure that a bit, they can rip it from the cache. Even if you could complicate that e. The fact is, if you send it to a user, they can save it.

No way around that. The question you need to ask is why you need to stop it so badly. Is it really even that necessary? Is it worth the effort and user-unfriendly—ness? I like TxRegex answer the best as a quick basic solution. I'm going to look pedantic here, but you're overloading the term "download". You of course do want to allow the video to be downloaded.

Add a comment. Active Oldest Votes. Joseph Joseph k 28 28 gold badges silver badges bronze badges. I Just read craftymind. The idea is almost same as your answer. Cupidvogel The "onetime use url" is a server endpoint which accepts a server generated token.

The token is generated upon page generation, and saved to the db. By the time your page has loaded, the db has the token, the page has the token. If the token isn't there as a result of second access , then don't stream the file. Show 12 more comments. Clayton Graul Clayton Graul 1, 1 1 gold badge 9 9 silver badges 7 7 bronze badges.

That is fantastic! It does a great job from preventing ordinary people from downloading the video! This does not help however if JavaScript is disabled in the browser. Just inspect the element in Firebug, see the src attribute, and open that in another tab or use wget to download it! I think the main aim of this is to avoid "normal" users to download the video.

This is a good solution to solve this situation. Show 5 more comments. Yes, you can do this in three steps: Place the files you want to protect in a subdirectory of the directory where your code is running.

Timo Schwarzer 3 3 silver badges 17 17 bronze badges. Tzshand Tzshand 1, 11 11 silver badges 14 14 bronze badges. However, this is a very clever solution. If you club this with a one-time code on the file, you're good to go! It seems still IDM can download it! PersianMan Correct - I encourage you to read the first answers — Tzshand. If you disable the javascript from browser, then this trick won't work, since then right click gets enabled. To avoid that too, you should fetch and load the video element dynamically using jquery.

Show 3 more comments. Community Bot 1 1 1 silver badge. Starx Starx By the way, this answer apply with HTML5 videos, flash videos, or any technology you can imagine in the future. It's simple: it's how it works. That is not an answer to either of the questions. People could record their entire screen and audio and fool all workarounds, that is why they can only be slowed down. Everytime I searched about techniques to make it harder for my users to download or copy our copyrighted contents which is expensive to make, sold at expensive price and is exclusive content some people post "you can't".

IlanSchemoul Interesting. Thanks for sharing : — Starx. Christian Giupponi 6, 9 9 gold badges 59 59 silver badges bronze badges. Daniele Cannova Daniele Cannova 3 3 silver badges 5 5 bronze badges.

Sajan Sajan 9 9 silver badges 13 13 bronze badges. YouTube uses Blob now too i think :? Hi DenverProphitJr. To give you an idea this is the reference URL: controlslist — Allan. Add below style to disable download link in video tag.

Mathankumar K Mathankumar K 1 1 gold badge 4 4 silver badges 14 14 bronze badges. Thank you been searching for it all over but they always redirected me to the other questions — saNiks. Dre Jackson Dre Jackson 8 8 silver badges 16 16 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE.

Podcast Who is building clouds for the independent developer?



0コメント

  • 1000 / 1000