开发者

Protect file for download

开发者 https://www.devze.com 2023-02-05 01:51 出处:网络
I have a page which inclu开发者_JAVA技巧des a video player (Flash or Silverlight). How I can protect the video file from being directly downloaded?Silverlight DRM.Well, I would suggest working with so

I have a page which inclu开发者_JAVA技巧des a video player (Flash or Silverlight). How I can protect the video file from being directly downloaded?


Silverlight DRM.


Well, I would suggest working with some kind of an authentication key.

When you print out the URL to the flash file on your html page, calculate some authentication key, maybe based on the name, and/or creation date of the flash file, and perhaps the sessionid or userid of the current user.

You'll end up with http://blabla.com/media/myflash.swf?auth=XXXX&userid=234

Let MVC catch the request (so turn RouteExistingFiles off in your global.asax). And check if the authentication key is correct.

0

精彩评论

暂无评论...
验证码 换一张
取 消