I am currently working on a Store for my website funkinfamily.com. My store will be selling MP3 music downloads (Digital Releases) of music from my label. I am programming my store with PHP so I thought I would ask the PHP-heads here.
The question i have right now is, how can I secure my files so people cant find them on the server? More or less, How can I hide their download URL from being seen and possibly shared after a customer makes a purchase.
My only idea is to zip up the files and email them to the cutomer, but file sizes will be rather large and most email services will not download such large attatchments. My alternative to this is to create a temporary downloads directory for the customer to download the files from, where the directory will be removed after, lets say - 24 hrs. I figure that is ample time to retrieve their purchased music.
If there is some better way I am over looking I'd appriciate a tip. I am looking for suggestions so if anyone has one....