Only registered users can play audio from our server

We have created a silverlight application in which users can view audio files from their browser using the telerik control tool telerik.

Files are located on a web server, and anyone who sniffs traffic can upload a file. We want to prevent users who are not logged in from accessing these files / downloads .

Besides providing an application with some kind of temporary valid URL and implementing a custom httphandler ... what are our options?

This is not a big problem, if our customers can upload files, we just don’t want the rest of the world to have access.

Any ideas would be more than welcome!

[Update] The only thing I can come up with is:

  • place files in a non-public folder
  • if the user requests a preview of the file, copy it to the shared folder under the new name ([guid] .mp3) and return the URL
  • every x minutes empty the shared folder.
+5
source share
1 answer

Do not let the web server copy files directly from the directory. Put some of your application forward and leave one of your server scripts for these files. Store the source audio files from the root of the website.

For example, your client application will access these files:

http://someserver/yourscript?audio_asset_id=12345

yourscript , , , 12345 . Content-Type.

, , . , . . 100 , IP-... - .

+3

All Articles