Forum Moderators: phranque

Message Too Old, No Replies

Mod_throttle

How to configure to limit by IP?

         

robho

11:45 pm on Oct 1, 2004 (gmt 0)

10+ Year Member



I'm trying to use Mod_throttle (version 3.1.2) to limit how fast any single ip can download from one of my sites (server is Apache 1.3.27 with updates).

This is to discourage automated mirroring of the hundreds of thousands of pages, without setting limits on humans and well-behaved robots.

If I just do a global limit, like "ThrottlePolicy Document 10 60" (set low for testing!) it works fine.

But if I use "ThrottleClientIP 100 Document 10 60" Apache fails the syntax check and won't load (segfault).

These seem to be the documented parameters - what I am doing wrong? Has anybody got this working OK?

robho

12:03 am on Oct 2, 2004 (gmt 0)

10+ Year Member



It never seems to fail - by posting a question here I find the answer soon after... :-)

What I was doing wrong was putting the ThrottleClientIP in a virtual host section. It seems it can only be server-wide, not for a specific domain. Works OK that way!