my web host restricts traffic volumes, if it is exceeded they take your site down.
I have a number of files i want to make available to people browsing my website but want to avoid the site being cut off due to excess traffic - what i need is a simple script that will allow a certain number of files to be downloaded during a 24hr period - then restrict access / re-direct to another page when that number is reached. the script should reset everyday so the next days browsers can download the files.
im thinking write a simple count variable to a text file and perform a check each time the download page is called - this i can probably do, but how do i reset it at midnight the next day?
thanks for any help