停止从网上下载视频用户 [英] Stop users from downloading video

查看:168
本文介绍了停止从网上下载视频用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站,用户购买的包,观看视频教程。不幸的是该网址是可从HTML,所以用户可以很容易地从该位置下载。我想prevent用户从网上下载该文件,他应该只能够从我的网页观看。

I have a site where users buy packages and watch video tutorials. Unfortunately that url is available from the HTML, so the user could easily download from that location. I want to prevent the user from downloading that file and he should only be able to watch from my page.

有没有办法做到这一点在ASP.NET或可能通过配置IIS?

Is there a way to do this in ASP.NET or probably by configuring IIS?

推荐答案

简短的回答,没有。

更长的答案,它取决于你的目的有以下两种方式。

Longer answer, it depend upon your purpose there are 2 possibilities.

如果你想prevent人嵌入你的视频在其网站(从而利用你的带宽),问题是类似的热链接的图像。这涉及到像,检查引用(不是所有的用户代理供应商之一,虽然)。另一种选择是使的URL视频用户专用,例如临时网址超时,嵌入在URL中的反CSRF令牌,检查此相匹配的cookie等。

If you want to prevent people embedding your videos in their site (thus using your bandwidth) the problem is similar to that of hot linking images. This involves things like, checking the referrer (not all user agents supply one though). Another option is to make the URL for the video user specific, e.g. temporary URL that times out, embed an anti-csrf token in the URL, check this matches a cookie, etc.

如果你想prevent由用户下载的实际视频,那么你不能,请参阅<一href="http://stackoverflow.com/questions/1294501/how-to-$p$pvent-downloading-images-and-video-files-from-my-website">How以prevent下载从我的网站和<一个图像和视频文件href="http://stackoverflow.com/questions/4506124/how-to-$p$pvent-user-from-downloading-or-saving-an-image">How以prevent用户下载或保存图像?。

If you want to prevent downloading the actual video by a user then you can't, see How to prevent downloading images and video files from my website and How to prevent user from downloading or saving an image?.

这篇关于停止从网上下载视频用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆