This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
i am creating one online tutorial portal using jsp and servlets in the MVC pattern.I have the voice file repository in which user can ear the voice files(wav,mp3) randomly and attend the test.The problem is when i open the browser the other parties software like download manger which downloads the voice file ,is there any way to prevent downloading or encrypt the source of the audio files.
Note that you might be able to set up all audio file URLs so that they point to a servlet, rather than a file in the server public file hierarchy. That way you can verify each request and prevent someone grabbing the files directly.
i need to map the url part to prevent download, is there any encryption techniques....
The audience could able to ear but not to download ? [ March 13, 2008: Message edited by: gopi thulasidoss ]
Author and all-around good cowpoke
Joined: Mar 22, 2000
Apparently "Sounds" is the name of your publicly addressable directory.
Suppose you had a servlet mapped to "Sounds" - when it gets the request it can look at the remainder of the URI to get the desired file, which can be read from a non-public directory. Before serving the sound file, it could examine the user's session to determine if this person is authorized to get that file at this time.
Probably the user could still get the file from the browser temporary file storage but it would be harder.