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.
Posted by distler at January 18, 2004 10:15 PM
TrackBack URL for this Entry: http://golem.ph.utexas.edu/cgi-bin/MT-3.0/dxy-tb.fcgi/291
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.
Re: Comment Throttle
So, do there exist public domain versions of those things the ticket sales sites use? They basically have a graphic that is recognizable as a series of symbols to a human, but not to a computer. You have to type in the code in order to do what needs to be done.
Would not such a thing solve all these problems? (excluding DOS attacks, of course)
haha
That certainly took forever for you people to implement.
Quite frankly I was considering offering my services to the MT coders for a symbolic amount of money, but I figured it’d look too much like blackmail.
YHL HAND.
Re: Comment Throttle
Jacques–
The link to the patch is bad–take out “archives/” (and it’s more messed up in your feed)
Sorry to see you’ve become a focus for these vandals.
Re: Comment Throttle
To prevent automatic spam on my blog, I implemented a Turing Test. The turing Test consists of a word in an image that would only be readable by humans. The commenter has to type the word into a text box in order to proceed. PayPal, Yahoo, and other places use a Turing Test to verify that it’s not a script that’s trying to insert a comment into my blog. I don’t use Moveable Type, so it would take more effort to customize a script to insert comments into my proprietary blog framework, and I don’t think anyone will bother. It was fun to figure out how to create the Turing Test though. Check it out here: http://www.donnyspi.com/blog
– Don
Read the post
Restructuring
Weblog: Random Neural Misfirings
Excerpt: Tending my garden of words
Tracked: January 20, 2004 12:52 PM
Read the post
FloodMT Crapflooding, Trackback-flooding and Whining crapflooders
Weblog: Eclectic Echoes
Excerpt: It’s almost funny, in a wierd twisted sort of way… Recently the comment spam problem for MovableType users escelated when some script kiddies released an automated comment spammer. The site hails it as: the first integrated solution for tes...
Tracked: January 22, 2004 9:29 PM
Re: Comment Throttle
There’s even a MovableType [captcha] plugin, I believe (though that one is insecurely written and easily defeated, as the authors of the afore-linked crapflooding program discovered).
Here’s an evil idea… write more broken plugins and submit them to the usual, proper, places. Write a madlibs code generator to write hundreds of such broken plugins.
Someone looking to install and use a working plugin would, one would hope, use google to figure out what the community thinks is a good plugin, and then use that one. Recommendations work.
Meanwhile, script kiddies need to inspect each of those plugins and work out the security flaw to each of them, and then write code to work around those flaws, just in case they want to crapflood a blog which happens to have it installed.
There’s a flaw in this thinking, I know it.
Read the post
Crapflooded...
Weblog: Eclectic Echoes
Excerpt: Well I knew when I posted the entry the day before yesterday I was opening myself up as a target… I knew when I saw http://terrato.org/ in my referer logs that it was just a matter of hours… they hit tonight, for about an hour. Funny thing ...
Tracked: January 25, 2004 2:09 AM
Read the post
Comments throttling and black listing
Weblog: Not for Sheep
Excerpt: As some of you may know, earlier this week this site was flooded with comments. I installed MT 2.661 (which has some comments throttling features), reinforced my htaccess "screen," and after some more research, satisfied myself this site was safe...
Tracked: January 25, 2004 12:57 PM
Read the post
another attack
Weblog: Cuba Conference
Excerpt: Earlier this second, this site (among my other domains) was flooded with comments. Clean up only took a couple hours and then I upgraded my MT installation to 2.661. Unfortunately, that was not to last. Today, I was hit by...
Tracked: January 25, 2004 1:04 PM
Read the post
Redirects Are Not An Option
Weblog: Full Speed
Excerpt: I have just installed David Raynes' Optional-Redirect Plugin for Movable Type. Comment author links no longer behave in the 2.661 way. They work as they should---that is, they link directly. While I understand the nature of this change that Six...
Tracked: January 27, 2004 10:38 AM
Read the post
Throttling Comment Spammers
Weblog: Mind of Mog
Excerpt: Distler has a plugin for comment throttling which may be useful if you use MT. Got link from Matt. Thought to share this after Frank J. got hit by porn
Tracked: January 27, 2004 1:46 PM
Read the post
Stepping Stones to a Safer Blog
Weblog: Burningbird
Excerpt: In the last few weeks, I've been hit not only by comment spammers, but a new player who doesn't seem to like our party: the crapflooders, people who use automated applications (you may have heard of MTFlood or some variation) to literally flood comment...
Tracked: January 28, 2004 6:19 PM
Re: Comment Throttle
Hey Jacques, for maintainability and compatibility my intention has always been to use the exact code that MT uses, EXCEPT for the changes necessary for my plugin.
If people wish to customize it, than that’s cool, but I am not going to presume that I know best and rewrite all the MT code. Some people, for one reason of another, may not want to use your fine methods. By sticking very close to the MT code, I give everyone the opportunity to do what they want. People who would patch with you code will still do it.
I agree that IP banning and IP throttling are lame and useless against a round-robin of sufficiently numbered proxies, but that’s not MT-Blacklist’s job.
Read the post
MT 2.661 and those god-awful redirects
Weblog: Redsugar Muse
Excerpt: I finally upgraded to MT 2.661. Wanna know why? Because of David Raynes's Optional-Redirect v0.11 That's right. You can mouse over your commenter's names again, without seeing your own url. I know there was a good reason for that feature...
Tracked: March 16, 2004 12:28 PM
Read the post
Comment spam throttling
Weblog: Knowledge Jolt with Jack
Excerpt: I've found another way to limit comment spam on my site, with the ThrottleSeconds variable and some modifications sugested by Phil Ringnalda and Jacques Distler. And then I extended it some more.
Tracked: September 24, 2004 3:08 PM
Re: Comment Throttle
Forgive me for being clueless, but how do I use this “patch”? Do I copy and paste it into Comments.pm and where, at the end? There are no instructions :) Also, do you know if this works with Blacklist 1.65? I’m using MT 2.661 and I’m desperate for a throttling solution.
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.