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.

Can I block an IP address in a wordpress blog?

Discussion in 'WordPress' started by Ferox, Jan 20, 2008.

  1. #1
    I have a particular spam commenter that has the same IP address every time, and I would like to know how I can block that IP address from commenting on my blog.
    SEMrush
    My blog uses wordpress, but it is not hosted at wordpress. Thanks in advance for your help.
     
    Ferox, Jan 20, 2008 IP
    SEMrush
  2. cdpm

    cdpm Banned

    Messages:
    248
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    i have write some guide for you to follow in order for you to protect your blog.

    1) Go to cpanel, enable the deny hotlinking (under security section)
    2) Go to protect leech (Protect your folders)
    3) Go to ban IP (List down each IP that always do the spam comments)

    I have tried and it works. From 500 spam comments daily now decreased to 60
    Read The Banned Ip
     
    cdpm, Jan 20, 2008 IP
  3. Ferox

    Ferox Peon

    Messages:
    103
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I'm sorry that doesn't really help me. On the dashboard in wordpress I cannot see an option to deny hotlinking or to ban the IP.
     
    Ferox, Jan 20, 2008 IP
  4. rockymountainexperience

    rockymountainexperience Peon

    Messages:
    486
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I believe cpanel is your Hosting company not Wordpress.
     
    rockymountainexperience, Jan 20, 2008 IP
  5. OSWebMaster

    OSWebMaster Guest

    Messages:
    71
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi Ferox and all -

    You can use the Comment "Blacklist" feature (at bottom of OPTIONS > DISCUSSION) to block an IP of a commenter you do not want anymore.

    The cPanel technique will also work if your hosting company provides cPanel as your web dashboard. Check with them.

    - Scott
     
    OSWebMaster, Jan 20, 2008 IP
  6. tushardhoot1

    tushardhoot1 Active Member

    Messages:
    3,013
    Likes Received:
    96
    Best Answers:
    0
    Trophy Points:
    90
    #6
    <Limit GET HEAD POST>
    order allow,deny
    deny from [ip address]
    allow from all
    </LIMIT>
    Code (markup):
    That should work. Never tried it though.
     
    tushardhoot1, Jan 20, 2008 IP
  7. almaguer

    almaguer Peon

    Messages:
    16
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Does anyone have a good list of BAD IP addresses that should be blocked?
     
    almaguer, Sep 17, 2009 IP