Page 1 of 1
How to set up a limited downlaod, please
Posted: Fri Jul 11, 2008 11:11 am
by CZfrei
Is there a way that I can set up a download link that only works a certain number of times? Thanks in advance.
Re: How to set up a limited downlaod, please
Posted: Fri Jul 11, 2008 2:50 pm
by Eran
Have php handle your downloads (by referring to a script that sends download headers) instead of directly linking to the files. In that script you can implement logging of file downloads (to a file or a database) and deny requests when a cap is reached.
Re: How to set up a limited downlaod, please
Posted: Fri Jul 11, 2008 6:34 pm
by Benjamin
You may be able to find one that has already been written to save yourself some time.
http://www.google.com/search?q=php+file ... =firefox-a
Re: How to set up a limited downlaod, please
Posted: Sat Jul 12, 2008 6:38 am
by CZfrei
Thanks a lot, this really helps me out.
Re: How to set up a limited downlaod, please
Posted: Mon Jul 14, 2008 2:10 pm
by CZfrei
One more quick question if someone can answer it. Will that work if I have different users? So that I limit each user to a certain amount of downloads.
Re: How to set up a limited downlaod, please
Posted: Mon Jul 14, 2008 5:12 pm
by Zoxive
If you make it that way it will.