tar xvzf ../mod_bw-0.92.tgz
/usr/sbin/apxs -i -a -c mod_bw.c
nano /etc/httpd/conf/extra/httpd-includes.confand after the line:
LoadModule bw_module /usr/lib/apache/mod_bw.soadd more code that looks like this
BandWidth all 102400000
MinBandwidth all -1
MaxConnection all 3
#The above code allows a maximum number of 3 connections per IP address.
The bandwidth limit is set to 100 Meg per second
A bandwidth value must be set in order for the IP limit to work. Setting an unlimited value will cause the module to ignore the IP connection count, hence must be a number, hence the large number which is unlikely to be hit.
Don't forget to restart apache after making the changes, eg: