|
Build a table with the content size of each piece of media.
Use a redirect script (like traffic trading: /cgi-bin/media.cgi?url=/themedia.mpg) to print "location: /themedia.mpg\n\n"
The redirect script reads the content size table based on the url and adds to a cookie and IP file the total amount of bandwidth and redirects to an error page if bandwidth exceeded.
There's several other ways but this is probably the easiest.
Using htaccess to hide the redirect script can help make it harder to defeat.
|