forum.coppermine-gallery.net

No Support => Feature requests => Topic started by: autobahn on May 10, 2005, 10:25:28 pm

Title: Some method of bandwidth/transfer quota... (idea in here)
Post by: autobahn on May 10, 2005, 10:25:28 pm
I haven't done a thorough search on the issue, but I'd really like to see some sort of transfer quota system. I am going to be offering a gallery to my club members, and chances are they're going to use my service to host sigs and avitars and pictures to hotlink on other forums. I don't want to forbid this, but I want to be able to control it so I don't run up a huge bandwidth bill (I pay per GB of transfer so everything the users use costs money).

It would be easy to do this with the album, just set it up to multiply the file size x the number of accesses to the picture via php.

But as has been mentioned, obviously coppermine can't control or count hotlinking to files on the server.

However, would it be possible to set up a system where the image is referred to by something besides a direct link? So instead of linking to whatever.jpg in the album the program would link to something like pic.php?pic=287346754 or something like that. That way the images would all be run through php. From there you could set up a .htaccess file somehow to only allow access from the php requests to the images stored on the server?

How difficult would this be to implement?