Page 1 of 1
download expire?
Posted: Sat Nov 13, 2004 12:22 am
by ecaandrew
how would you make a encrypted download url expire? how would you make the encryption for it? thanks
Posted: Sat Nov 13, 2004 12:53 am
by kettle_drum
Make the link to the download be like download.php?id=<some long id number here> then on that page check the id number passed in the url in a database to see if its valid and hasnt expired - hold the expire time in the database. Then get the name of the file from the database that the id releates to and then force a download. Search the forums for force downloads if you dont know how to do this.
The "encryption" for the url is simply a unique md5() hash 32 chars long.