Comment Throttle
So it turns out that the latest fad among the script kiddies is crap-flooding MovableType blogs with thousands of randomly-generated comments. Lamentable as it may be, I cannot afford to have this machine brought to its knees because some pimply-faced 15 year-old is bummed that Saturday Night Live is in reruns this week.
Hence some new policies:
- No more than 1 comment from any given IP address every 20 seconds.
- 8 comments from the same IP address in less than 200 seconds will get you banned.
- No more than 20 comments, in total, per hour.
- No more than 100 comments, in total, per day.
I hope this does not seriously inconvenience any of you, but that’s life on the Internet…
For what it’s worth, here’s my patch for lib/MT/App/Comments.pm
.
Thanks to Phil for some pointers, and to Shelley and Sam for illuminating discussions.
Update (1/21/2004): Just in case anyone’s confused, the comment-throttling code in MT 2.66* and my modifications above are incompatible with the current version (1.6.2) of Jay Allen’s MT-Blacklist. Jay’s plugin usurps the post
method of lib/MT/App/Comments.pm
, so none of this throttling code gets used. Either wait for a new version of Jay’s plugin, or add the throttling code (both Ben’s and mine) to MTBlPost.pm
.
Re: Comment Throttle
I was going to leave a comment, at least a “me, too” (though I think both of us could probably drop our numbers somewhat from Sam’s), but I’ve gotten so bored sitting around watching tail -f access.log all day with only a couple of non-flooding nibbles, and reloading terrato.org to see if it’s still down (or just not accepting connections from me ;)) that I’ve sunk to reading Jeff K., and I fear that I’ll shortly descend to Jeff K.-speak, and declare myself king of teh Intarweb!!1!
So I better not comment.