Can I lok out an IP address from my blog?

5 replies
I was just notified that earlier today, someone was locked out of one of my blogs because of repeated log in attempts. Evidently they are in Luxemburg. No one I know, and even if it was, no one has access to this blog but me.

So I thought there was a method to block certain IP addresses from a WordPress blog. I don't know how though, can anyone show me how this is done?
#address #blog #lok
  • Profile picture of the author Katie Rich
    Install WordFence, it will allow you to do that and show you how, too.
    {{ DiscussionBoard.errors[9189833].message }}
  • Profile picture of the author TopLinks
    I hope your wordpress blog is installed on your own server.

    Look at your control panel and see what is offered to block IPs. CPanel helps with this.

    Add a deny line in your htaccess to the IP or IP block.

    If this is all too much, install a plugin that does the same.

    Regardless, you should definitely install a plugin that blocks out an IP automatically if there are too many login attempts. Brute logins are a huge problem for basic passwords.
    {{ DiscussionBoard.errors[9190044].message }}
  • Profile picture of the author Tim3
    Hi Tim,

    The quickest, easiest and simplest way to do what you want is to use the IP Ban plug-in.

    You can block single IP's and User Agents, in addition you can re-direct blocked addresses to a honeypot of your choice.

    Other security plug-ins will also give you the same function, but they can be resource hogs.


    If you want to use your .htaccess add the following line to the file...

    order allow,deny
    deny from xxx.xxx.xxx
    allow from all

    Replace xxx.xxx with the IP you want to ban
    Signature

    {{ DiscussionBoard.errors[9190525].message }}
    • Profile picture of the author IneedProfit
      Edit your htaccess with something like this:

      order allow,deny
      deny from 60.xxx.xx
      allow from all

      Didn't see the post just in front of mine. You can be as specific or general as you want.

      Two real htaccess lines we use:

      deny from 61.160.
      deny from 60.169.

      That blocks everything from 61.160.xxx and 60.169.xxx
      {{ DiscussionBoard.errors[9190570].message }}
  • Profile picture of the author mediamarket
    Wordfence does this.
    {{ DiscussionBoard.errors[9190805].message }}

Trending Topics