Support » Fixing WordPress » Ban IPs from commenting?

Viewing 9 replies - 1 through 9 (of 9 total)
  • 1) Upgrade to v1.2 🙂
    2) Add the ips to the moderation list.

    Or alternatively, use your .htaccess file to ban the IPs altogether.
    Order deny,allow
    Deny from 123.45.67

    Well, this is interesting. Because today I am getting slammed by spams from and, and the admin here used .htaccess to ban those IPs, but the comments are still rolling in. I can’t figure out how that could happen. (Incidentally — ban those IPs now if you haven’t already!)
    I’m waiting to talk to him about this some more and we’ll try to figure it out. At least the posts are moderated automatically.

    Previous post was by me — forgot to log in.

    Moderation is the safest bet… Use this for more fun:

    I’m getting hammered by those IPs as well. I think I’ve been hit close to 50 times so far.
    Sushubh has a good point. Kitten also has a “retrospaminator” which will sleuth through all of your old posts looking for any spam you may have missed!

    I thought of this… Why not just ban the IPs from post capabilities! There would be someway or the other! HTA lets you block posting capabilities. 😉
    Maybe an updated plug-in. I wish I was smart enough to make somethign cool enough 😀 But then there are so many nice people around here already…

    I am getting hits from the same address. Actually, their script gives itself away since the user-agen is “libwww-perl”: – – [30/Aug/2004:17:16:24 +0200] “POST /ludologist/wp-comments-post.php HTTP/1.0” 302 0 “-” “libwww-perl/5.800”
    One solution is to modify wp-comments-post.php, paste the following around line 54, before “//Simple flood-protection”
    //No perl for us, please!
    if (strpos($agent,'perl')!==false)
    die( __('Internal error.') );

    Anon that is a very technical and very useful contribution and thank you for that. I too am awash with spam 🙂

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Ban IPs from commenting?’ is closed to new replies.