I run an unmodified script called ZINA ([url removed, login to view]) that allows web visitors to stream or download MP3 files. I would like to control the frequency people can access the files with a cookie to help preserve bandwidth and prevent people from downloading dozens of files at one time.
The way I see this working is when a person clicks on a stream/download link we check to see if there's a cookie. If there is we send them to a error message page that will tell them to wait and try again. If there is no cookie, one is set that expires in 60 seconds and the stream/download begins.