WordPress.org

Ready to get started?Download WordPress

Forums

Ban IPs from commenting? (10 posts)

  1. newt
    Member
    Posted 10 years ago #

    How can I ban IP addresses from commenting with v.72?

  2. carthik
    Member
    Posted 10 years ago #

    1) Upgrade to v1.2 :)
    2) Add the ips to the moderation list.

  3. NuclearMoose
    Member
    Posted 10 years ago #

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

  4. Anonymous
    Unregistered
    Posted 10 years ago #

    Well, this is interesting. Because today I am getting slammed by spams from 61.30.47.22 and 61.30.47.21, 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.

  5. litlnemo
    Member
    Posted 10 years ago #

    Previous post was by me -- forgot to log in.

  6. OperaManiac
    Member
    Posted 10 years ago #

    Moderation is the safest bet... Use this for more fun:
    http://mookitty.co.uk/devblog/archives/2004/07/21/kittens-comment-pay-10/

  7. NuclearMoose
    Member
    Posted 10 years ago #

    litlnemo,
    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!

  8. OperaManiac
    Member
    Posted 10 years ago #

    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 :D But then there are so many nice people around here already...

  9. Anonymous
    Unregistered
    Posted 9 years ago #

    I am getting hits from the same address. Actually, their script gives itself away since the user-agen is "libwww-perl":
    61.30.47.21 - - [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!
    $agent=$_SERVER['HTTP_USER_AGENT'];
    if (strpos($agent,'perl')!==false)
    die( __('Internal error.') );

  10. Root
    Member
    Posted 9 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.