Forum OpenACS Q&A: Limit bandwidth for downloads

Collapse
Posted by Gabriel Ricard on
I'd like to put some files up on my website for people to download, but since I pay for my hosting and there is limited bandwidth, I'd like to make it so that if more than X MB have been transferred, then the files cannot be downloaded again until the next month (or perhaps sync it with my billing cycle). Has anyone done this before? Is this capability already there in OpenACS? I didn't have any luck searching the forums for it. Would this be accomplished the content repository?
Collapse
Posted by Don Baccus on
The download package tracks the number of times a file has been downloaded.  It wouldn't be hard to modify this to figure out how many bytes have been downloaded.  You could change the download package to turn read permission for users off once a limit's been reached, and add a scheduled proc that runs monthly to turn it back on.