Reputation: 13328
I have a page which includes a video player (Flash or Silverlight). How I can protect the video file from being directly downloaded?
Upvotes: 0
Views: 802
Reputation: 18501
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.
Upvotes: 1