File Type: Tar
Purpose: A download-limiting script
Version: 1.0 | history Download
Author: kamikazi at blastzone dot net
Documentation:
This file contains a perl script used to control bandwidth usage.
Script logs all file transfer sizes. When limit is reached, it will
not allow downloads from the site until the expiration date has passed.
Useful for ensuring an upload quota is not exceeded. CONTENTS:
download.pl - the script
logfile.log - the logfile
README - this file
NOTES:
This version passes an http referrer, so a user with a packet sniffer could
circumvent this program.
This program will not stop a download it if causes you to meet the quota
so be sure to leave some headroom.
This program uses the syslog facility to drop notice-level messages if
failures occur.
COPYRIGHT:
This file may be freely distributed, provided the copyright header is unchanged.
Distribution in whole or part on any media for profit is FORBIDDEN!
(Including charging for the media itself) without written consent by me.
comments or questions can be sent to the author. INSTALLATION:
Place the download.pl script in your CGI-BIN directory
Place the logfile.log file in your media directory
Edit the variables in download.pl to fit your site.
Set the download.pl script to be executable
Set the logfile.log to be world-read / write
Support:
This file is not provided with any warranty or support. Any damages that occur through
the use of these files are the responsibility of the user!