Page 1 of 1

Secure mp3 Download app

Posted: Tue May 23, 2006 12:55 pm
by fendtele83
I'm going to be working on a project where thousands of users will be purchasing a CD online and then downloading the songs as mp3s.

What is the best, most secure way to allow access to the mp3 files to the user once the transaction has been processed? Are there any 3rd party applications that take care of this?

The main thing is that thousands of people will be doing this w/in minutes.

Posted: Thu May 25, 2006 3:39 am
by AGISB
You create a specific directory for that user, password protect it and copy the files to that directory and delete it after a specific time.

You can also write the allowed songs into a database and display the download links to that users loginpage.
The key here of course is that you got a registration for the user. If not you can use the one above.

Posted: Thu May 25, 2006 6:30 am
by jmut
What you will need is a script that will serve the file using some id or something stored in a database.
All mp3s are out of web root.
This is the most secure way as far as I know.

Checkout this document.

http://www.paladion.net/pdf/Document_Se ... ations.pdf

Posted: Thu May 25, 2006 8:31 am
by timvw
As already mentionned, all you need is a 'download' script and implement whatever restrictions you want... (Both problems have been answered many times before, so i'm pretty sure you'll find answers with a little search)