Way to set max number of downloads for a file?

I have a file I want to limit on how many times it can be downloaded it. I’ve seen it done on some websites before and I’d like to do it? How is it done and is it easy?


I haven’t done this myself, but there seem to be several scripts out there that do what you’re looking for.

Check out http://php.resourceindex.com/Complete_Scripts/File_Management/File_Downloading/