I was thinking of throwing together a quick PHP or Django site for independently selling some "downloadable" content (music/mp3's) to which I am the artist/rights-holder.
I began to wonder if there are already some decent best-practices on how to handle the downloads - like how long a link should last for a user, the process of allowing a user to re-download bought content, protecting against abuse, etc.
After doing a couple quick searches, I didn't see any immediate examples where the topic was discussed. (I did find that most storefronts do allow you to sell digital content, thought without a lot of explanation as to how they support re-downloads, etc.)
Any thoughts/experiences you can share?
I'm primarily using PHP or Django/Python, although this questions should be very language agnostic.
EDIT:
To clarify: some of my first thoughts were that a user would get an initially working download link that would work for a number of hours. After that, they would need to log in and specifically "re-activate" their item, generating a new link. This could potentially solve the problem of failed downloads, and allow legitimate purchasers an easy way to re-activate a link, while providing a thin layer of security against someone simply posting a download link in some forums somewhere, etc.