Wordpress - Where do I put code to block IP addresses?

Discussion in 'Programming' started by dquarles220, Feb 5, 2008.

  1. #1
    I've had some people reading my Wordpress blog and leaving ugly messages. I would like to block their IP so that they can not even view it. I have code but don't know where to put it - instructions say in the .htacess file but I don't know where that is in Wordpress. Anyone help?
     
    dquarles220, Feb 5, 2008 IP
  2. Webray

    Webray Active Member

    Messages:
    469
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    58
    #2
    cPanel's IP Deny Manager. Use it to add the IP/s you have. That will modify (and/or create) the .htaccess file for you.


    Hey, you're probably wasting your time... I mean, these bots or folks are probably using proxies to spam your site; also disguising their real IPs.
     
    Webray, Feb 5, 2008 IP
  3. Benson

    Benson Guest

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use ip blocking plugins to block IP's
     
    Benson, Feb 5, 2008 IP
  4. rapsap

    rapsap Guest

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    If you're running ASP, I have a program that I wrote which you insert one line of code into your main index file and it bans by IP, wildcard IP or up to 200 individual countries.

    http://www.ontarioabandonedplaces.com/ipguardian

    Free. Doesn't cost a cent and no time limitations... just ASP source code
     
    rapsap, Feb 7, 2008 IP
  5. sultanofseo

    sultanofseo Notable Member

    Messages:
    9,930
    Likes Received:
    405
    Best Answers:
    0
    Trophy Points:
    265
    #5
    go under options/discussion, then at the bottom where it says block list, enter the IP you want to block and save
     
    sultanofseo, Apr 25, 2008 IP
  6. Alinax

    Alinax Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    can add in .htaccess Deny from ip adress
     
    Alinax, May 1, 2008 IP
  7. anton-io!

    anton-io! Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #7
    anton-io!, May 12, 2008 IP
  8. fish

    fish Well-Known Member

    Messages:
    450
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    120
    #8
    You could also try the WP Ban plugin located here. That's a "beta" version for WordPress 2.5+. You should be able to ban IPs through that interface in your admin panel.
     
    fish, May 12, 2008 IP
  9. anton-io!

    anton-io! Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #9
    Very nice plugin, already installed & working

    Thanks! :D
     
    anton-io!, May 12, 2008 IP
  10. iceman007

    iceman007 Member

    Messages:
    32
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #10
    If you think the problem is from automated bots then you can install the cryptograph plugin.
    Once you add the small piece of code in the comments page it generates a captcha so only
    human visitors can enter comments.

    Cheers
    Col
     
    iceman007, May 13, 2008 IP