Secure file downloading
Posted: Thu Nov 20, 2008 12:41 pm
I am rather proficient in php, however the problem I am currently trying to solve is something I have never been faced with before, and thus am looking for the best possible solution for it before trying different things out and potentially failing horribly.
My friend requested my services in creating a website for his band, which will allow customers to a one-time-download of his band’s album.
A lot of ‘indie’ recording labels have websites where you enter a huge code into a webform, and the file (usually a zip) will download to the customer’s computer, I’m sure some (or most) of you have seen sites like this before
Obviously there is a database full of codes and what album/file they correspond to, and the form updates the database and sends the download to the customer’s browser
I am trying to figure out what the best method of doing this would be, and how would I keep the album files secure on the server to prevent unauthorized access to them, how should the database be structured, how should the download portion be handled, etc
It’s a tricky situation, but if done properly can be valuable to many people.
[In advance, thanks for any help/suggestions/links/examples etc]
My friend requested my services in creating a website for his band, which will allow customers to a one-time-download of his band’s album.
A lot of ‘indie’ recording labels have websites where you enter a huge code into a webform, and the file (usually a zip) will download to the customer’s computer, I’m sure some (or most) of you have seen sites like this before
Obviously there is a database full of codes and what album/file they correspond to, and the form updates the database and sends the download to the customer’s browser
I am trying to figure out what the best method of doing this would be, and how would I keep the album files secure on the server to prevent unauthorized access to them, how should the database be structured, how should the download portion be handled, etc
It’s a tricky situation, but if done properly can be valuable to many people.
[In advance, thanks for any help/suggestions/links/examples etc]