Re: [users@httpd] Limit Traffic for specific files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/8/05, Florian Lindner <mailinglists@xxxxxx> wrote:
> Hello,
> how can I limit the traffic which certain files generate in a certain time.
> For example: I don't want downloading of the file xyz.iso to generate more
> traffic that 10 GB per month?
> I'm using Apache 2.

There is no easy way to do this.  There are several modules available
that will do connection limitting and perhaps bandwidth limitting over
short intervals.  (see http://modules.apache.org/) But for long
intervals like a month, I think your best bet is to use the
access_log.  You can pipe your logfiles through a program that keeps
track of downloads and automatically modifies an .htaccess file when
they reach a certain limit.  You should probably use mod_logio, which
provides more accurate bandwidth tracking.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux