nixCraft Poll

Topics

Slow down or throttles down apache server to avoid automatic downloads

Posted by Vivek Gite [Last updated: November 4, 2006]

The Apache module mod_bwshare throttles HTTP requests to Apache 1 and 2 servers for each client IP address independently. This module accepts or rejects HTTP requests from each client IP address based on past downloads by that client IP address.
If the HTTP client's download rate exceeds specified levels, the reponse to the HTTP client is an HTML warning message. A human browser will see a warning message indicating how long to wait. Automatic rampant downloaders will download large numbers of useless warning messages.

The original motivation for mod_bwshare was to prevent automatic download of all 900 MBytes of material on one of my web sites which was connected to a 33k modem, which would have taken several days if it had succeeded.

Debian Administration site has published the configuration directives for mod_bwshare:
If you're running a popular website you'll most likely notice that some clients are less well-behaved than others. Greedy clients can do anything from make numerous requests, to attempting to spider your entire site.

Avoiding greedy webclients with mod_bwshare [debian-administration.org]

Want to stay up to date with the latest Linux tips, news and announcements? Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.

You may also be interested in other helpful articles:

Discussion on This Article:

  1. dembol Says:

    You can also try mod_cband module - http://cband.linux.pl :)

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word

Copyright © 2004-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Sitemap - Powered by Open source software.