You could have an obfuscated querystring that includes the customer name or
id, the date, and the id of the product to be able to download. If something
comes in and the decoded date is over 24 hours old, you would deny it.
There are a number of easy ways to encrypt or obfuscate a querystring. Here
is a simple one:
http://www.eggheadcafe.com/articles/20060427.asp
-- Peter
Site:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
MetaFinder:
http://www.blogmetafinder.com
"Alan Silver" wrote:
> Hello,
>
> I am writing a site where people can buy ebooks. I want to have a system
> whereby they can download the file(s) once they have paid, but
> (obviously) not before. I also want some sort of protection to stop
> people simply posting the download link around the 'net and have every
> Thomas, Richard and Harold grabbing them!
>
> Any suggestions for this?
>
> I was contemplating using URL rewriting to provide a temporary link that
> contained the date encoded, and have it only work for (say) 24 hours
> after they pay. If they want it after that, they have to ask me
> manually. That should deter people who haven't paid. I'm not sure how
> good a system this is though.
>
> Bear in mind that I'm not going to drive myself mad over this. I can't
> stop people simply distributing the ebooks themselves, so it's not worth
> expending huge efforts on protecting the download. Having said that, I
> want something that will deter petty thieves.
>
> Any suggestions welcome. TIA
> Alan
>
> --
> Alan Silver
> (anything added below this line is nothing to do with me)
>