1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

In WordPress how do I block an IP address from commenting?

Discussion in 'Programming' started by emil2k, Dec 30, 2005.

  1. #1
    Can someone tell me how to block it so that it is deleted automaticaly this one IP spams me everyday there has got to be a way...
     
    emil2k, Dec 30, 2005 IP
  2. Skinny

    Skinny Peon

    Messages:
    1,864
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Okay I'm not sure how to do it, but it involves writing the IP in you .htaccess file.

    However another way around this is : Options > Discussion > Then check the box that says
    This means that you have to approve every comment, which takes two seconds. Your spammer will soon realize that he/she can't spam you and go away.

    Edit: Hey it's you from TS. Didn't notice. I gotta start posting in it. I got an acct. Anyway hope it works out.

    Skinny
     
    Skinny, Dec 30, 2005 IP
  3. emil2k

    emil2k Well-Known Member

    Messages:
    1,391
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    138
    #3
    Hey Jonathan,

    Yeah I do that already buy I suspect that it is automated somehow because he doesn't seem to be giving up its been like 3-5 days in a row on same two posts that he seems to target.

    BTW Are you a blogger for TS?
     
    emil2k, Dec 30, 2005 IP
  4. Skinny

    Skinny Peon

    Messages:
    1,864
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Skinny, Dec 30, 2005 IP
  5. mhdoc

    mhdoc Tauren

    Messages:
    840
    Likes Received:
    33
    Best Answers:
    0
    Trophy Points:
    0
    #5
    mhdoc, Dec 30, 2005 IP
    Skinny and emil2k like this.
  6. Skinny

    Skinny Peon

    Messages:
    1,864
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Really, I should use that too. I have a guy who spammed my .blogspot blog . . but then when I used that option he couldn't do much.

    Thanks mhdoc.

    Skinny
     
    Skinny, Dec 30, 2005 IP
  7. emil2k

    emil2k Well-Known Member

    Messages:
    1,391
    Likes Received:
    80
    Best Answers:
    0
    Trophy Points:
    138
    #7
    Yah I just installed it and blacklisted his IP, lets see what happens...
     
    emil2k, Dec 30, 2005 IP
  8. mbselc

    mbselc Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I got it
    very helpful
    thanks much , Skinny mhdoc
     
    Last edited: Jan 8, 2010
    mbselc, Jan 8, 2010 IP
  9. JimmieS

    JimmieS Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I installed Spam Karma 2. I'm not sure if it is even being supported anymore. I don't see any menus or anything to configure it. Perhaps I have to manually place the .php files in the plugins folder. I'll have to check it out. I also installed Askimet and Bad Behavior. I think with a combination of all that, I should get rid of those pesky spammers from Amsterdam.
     
    JimmieS, Apr 20, 2010 IP
  10. GreatestSwordsman

    GreatestSwordsman Active Member

    Messages:
    329
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    66
    #10
    Try karma2 or just edit your .htaccess directly
     
    GreatestSwordsman, Apr 20, 2010 IP
  11. JimmieS

    JimmieS Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #11
    I will also put the IP address into my .htaccess directly. IMO the more defense against the automated spammers the better.
     
    JimmieS, Apr 20, 2010 IP
  12. nimonogi

    nimonogi Active Member

    Messages:
    398
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    80
    #12
    One simple way to block them (a certain person or bot) from accessing your website, is to ban their IP address:
    
    order allow,deny
    deny from 192.168.44.201
    deny from 224.39.163.12
    deny from 172.16.7.92
    allow from all
    
    Code (markup):
    The example above shows how to block 3 different IP addresses.

    Sometimes you might want to block a whole range of IP addresses:
    
    order allow,deny
    deny from 192.168.
    deny from 10.0.0.
    allow from all
    
    Code (markup):
    The above code will block any IP address starting with "192.168." or "10.0.0." from accessing your site.

    The .htaccess code should be placed in your root directory.
     
    nimonogi, Apr 21, 2010 IP
  13. lukeg32

    lukeg32 Peon

    Messages:
    645
    Likes Received:
    19
    Best Answers:
    1
    Trophy Points:
    0
    #13
    You can just enter the IP (or email address) into the comment blacklist box, under the discussion settings.
     
    lukeg32, Apr 21, 2010 IP
  14. Sue Scaletta

    Sue Scaletta Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #14
    I use a WordPress plug-in called WP-Ban (http://worpress.org/extend/plugins/wp-ban) that blocks IP addresses.

    It shows your IP address so that you don't unintentionally ban your own blog and it gives the banned IP spammer a message "You Are Banned" when they attempt to leave their spam comments.

    Hope this helps,

    Sue Scaletta
     
    Sue Scaletta, Aug 2, 2010 IP
  15. symx

    symx Active Member

    Messages:
    11
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    90
    #15
    is akisment not able to detect his spamming? If you mark one ( or a few more ) of his comments as spam akismet should be able to detect the rest.
     
    symx, Aug 5, 2010 IP
  16. Sue Scaletta

    Sue Scaletta Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Akismet does block a great deal of spam that your blog receives. The advantage of the WordPress plug-in WP-Ban is that it does not put the messages in your spam comment box where you have to go and delete them permanently but stops any IP addresses you specify from leaving any comments in the first place.
     
    Sue Scaletta, Aug 8, 2010 IP
  17. Sue Scaletta

    Sue Scaletta Peon

    Messages:
    10
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #17
    To give you an example of how well this plugin is working for my blog, I've been away on vacation for a few days and didn't check my blog comments. I took a look at my blog today and have 386 comments in my comment spam folder, many from the same IP addresses.

    Now some of these in the spam comment folder are legitimate comments that I will approve but others are definitely spam. I do have to go through all of these, but as I do I log the IP's I want to ban in an Excel spreadsheet (so I can sort them in numerical order so it is easier to keep track of which ones I've already entered) and insert them into the blocked IP area.

    That means I will not have to deal with any of the same ones again. In the short time that I have used this plugin it has blocked 431 messages coming from the banned IP's. That would make another 431 messages I would have to delete if I were not using this plugin.

    I suggest you give it a try and if you don't like it you can always disable it. And by the way I have no connect to the person that created this plugin.
     
    Sue Scaletta, Aug 8, 2010 IP
  18. fandor

    fandor Active Member

    Messages:
    77
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #18
    I have good experiences with combination of WP-BAN plugin and .htaccess restrictions.
     
    fandor, Aug 12, 2010 IP
  19. ThurstyToad

    ThurstyToad Guest

    Messages:
    56
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #19
    hi Sue (or anyone else),
    Does wp-ban work under the latest wp 3.0.1. I was going to download it, but saw the latest comment on it says it doesn't work? I've got an automated spammer filling up my spam box which make it a major pain to wade through it to see if there are any legitimate comments...
    So is anyone using wp-ban on wp 3.0.1?
     
    ThurstyToad, Aug 28, 2010 IP
  20. Internetobserver

    Internetobserver Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #20
    I think htaccess option is better than using plugins
     
    Internetobserver, Aug 28, 2010 IP