Home : mod_limitipconn.c


This is the distribution page for the Apache module mod_limitipconn.c, which allows web server administrators to limit the number of simultaneous downloads permitted from a single IP address.


This page is for Apache 1.3 users. If you use Apache 2.x, see the Apache 2.x version of mod_limitipconn.

Most people should just get the tar.gz file. The binary RPM package is built against RedHat 7.3 and only works with RedHat 7.x.

On systems that support Apache dynamic shared objects (DSOs), the recommend installation procedure using apxs is:

tar xzvf mod_limitipconn-0.04.tar.gz
cd mod_limitipconn-0.04
make install

You can also copy the source file over to the Apache source tree and rebuild your httpd statically. The highlighted text below illustrates how to enable the proxy client detection feature; it can be omitted if you don't want this feature.

tar xzvf apache_1.3.27.tar.gz
tar xzvf mod_limitipconn-0.04.tar.gz
cd apache_1.3.27
patch -p1 < ../mod_limitipconn-0.04/apachesrc.diff cp ../mod_limitipconn-0.04/mod_limitipconn.c src/modules/extra/ ./configure --activate-module=src/modules/extra/mod_limitipconn.c --with-forward make make install

For usage instructions, see the README file which comes with the mod_limitipconn.c distribution.

Contributed code

Scott Barta Partially fixes the problem of dangling browser connections counting towards the download limit.
Chan Leung Adds a LocalIP directive to exempt a designated IP address from download limits.
Maxim Chirkov Adds limiting by user, vhost, or load average.

Perl port

This module was prototyped in Perl before being ported to C. If you like, you can download the Perl version of the module.

Older versions

Previous versions can be downloaded here. They should not be used on production machines.


E-mail me if you have any questions, comments, hints, or suggestions.

Copyright © 2002 David Jao (djao@dominia.org).