|
#1
|
||||
|
||||
|
I need some kind of script that will allow members to download a maximum (ie '10') files (out of thousands) in a 24 hour period and then reset itself after the time period has elapsed.
I suppose a cookie would be used to track each members daily downloads. Looked hard for this but to no avail. Any suggestions/info would be appreciated. Thank you!
__________________
|
|
#2
|
||||
|
||||
|
It's not that hard a script to make; have you tried those script collection sites? (sorry don't know of any, I always make my own!)
Basically you would have a database of files. Each time a file gets downloaded - you would record the time and the IP of the person. Once a certain IP has got a record count of 10 (eg) within a 24 hour time period; you wouldn't let him download any more. I wouldn't trust a cookie (thats client side); rather record the 'hits' on the server side. PHP/MySQL for the win - I would say. You could also, for optimisation, then purge records older than say 48hrs or so. |
|
#3
|
||||
|
||||
|
Quote:
One thing I didn't explain well ... I would want the script to allow the count of 10 downloads in a 24 hour period and not allow any more for this periode. At the end of this period the count should recycle back to zero and it would start all over again. If someone wants all 10 files to be the same or each one different that would be okay too. So the individual file names don't need to be tracked only the total count for the time period. Back to my search ... Thanks for the response!
__________________
|
|
#4
|
||||
|
||||
|
I'd agree with mysql/php. Use a login system, and everytime that user clicks a link to a file their count increases by one.
|
|
#5
|
||||
|
||||
|
That's right; I would also suggest going the whole "account route". Reason is recording IP's and "blocking" them after 10 downloads doesn't work so well when it comes to people who have dynamic IP's.
EG: User downloads 10 files; then he disconnects/reconnects to get assigned a new IP; User downloads a further 10 files... etc etc If you do it on an account basis (thats not to say you have to charge for accounts) - then you can lockout the account instead of an IP. There are of course way's around that (like to keep on creating new accounts); but you just need to find your own way around that. EG: 1 account per e-Mail address/ID number or something ![]() With the method I mentioned earlier, I didn't mean for it to be 'file specific' - all you need to record is a timestamp and a refernce to the user (ip/account). |
|
#6
|
||||
|
||||
|
Quote:
There are allot of things to digest with this. Just have to keep up chatting about it. If needed, there must be someone out there whom I can hire to write this script for me but I do not know who! Thank you!
__________________
|
|
#7
|
||||
|
||||
|
I'm not sure if this is against the rules on the board, but you're welcome to contact me-- you should be able to do it through my profile page or by sending a private message.
-Matt Last edited by slapshotw; 08-30-2006 at 04:26 PM. Reason: forgot about the PM system |
|
#8
|
||||
|
||||
|
Quote:
|
|
#9
|
||||
|
||||
|
Quote:
Send to maddog@ ... lol
__________________
|
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
All times are GMT -5. The time now is 02:23 AM.










