Some method of bandwidth/transfer quota... (idea in here) Some method of bandwidth/transfer quota... (idea in here)
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Some method of bandwidth/transfer quota... (idea in here)

Started by autobahn, May 10, 2005, 10:25:28 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

autobahn

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?