• Anonymous User 13711045

    (@anonymized-13711045)


    I have login security options enabled and it seems to work for brute force attacks…in a way. However, when a bot hits the limit they are only blocked from logging in. Is it possible to block their IP completely from the site when this happens? I ask because even when they are blocked they are still hitting the wp-login.php page with a response code of 200 it looks like, which is bogging my server down. I’d like to completely shut them out.

    https://www.ads-software.com/plugins/wordfence/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi, I’m just another user here trying to help out. I’m not a pro but I have decades of experience defending an active website in the real world, so I try to put things in simple terms.

    My take on your question is it’s important to think of security as layers. With your website, you’ve got your basic layer, which is the site and Wordfence. The next layer above that is usually controlled by your .htaccess file specific to your website, and the next layer above that is your actual server firewall. That’s the simple way to think of it all, anyhow.

    Wordfence at your site level will not “completely shut them out.” In fact, nothing will completely “shut out” an IP because it has to access your server to be shut out, so at some level there will be a demand on resources, however small.

    With that understood, the next level above your Wordfence blocking is to manually add the worst IP numbers to your .htaccess file in a “Deny” statement.

    There are “honey pot” systems and plugins that attempt to capture bad IP numbers and automate their addition to your .htaccess file, but they’re difficult to install in my experience.

    Above the htaccess level, you add the IP numbers to your server firewall. If you’re serious about security it’s best to learn how to operate your server firewall yourself, or have someone in-house working with it on a daily basis. But for the smaller operator sometimes you have to rely on your hosting support.

    In the case of attacks that look like they’re using numbers from a block of IPs, or from a country I really don’t need traffic from, when doing blocks in .htaccess or in server firewall I block ranges of hundreds of IP numbers.

    To learn how to do all this, Google is your friend and sometimes your hosting company support can be valuable.

    Apologies to Wordfence support if this is too simplistic of an answer, and yes, the Wordfence WAF does operate in there as well.

    I hope that helps. Happy to converse more about this. It’s an issue that is unfortunately very real to me.

    One other thing. If you simply hide your login using plugin “WPS Hide Login” the login hack attempts will generate a low bandwidth simple file not found error on your server. Some “experts” scoff at this kind of simple fix, but it works. Perhaps the experts that scoff are being paid by the hour, so they have time to not use easy fixes…

    MTN

    Hi thekendog,

    I agree with you 101% !
    That’s a feature that should be added to wordfence.
    Now, we can set that after x failed login attempts, this IP will be blocked from login for x amount of time (this doesn’t allow us to treat differently honest people who forgot their login credentials vs. attackers).

    Additional useful setting would be:
    After y amount of failed logins within z time frame, permanently block this Ip from this site – so we can set y for example to 30 and z to 1 day, so brute force attack that we define as 30 failed login attempts in 1 day will result in permanently blocking this ip address.

    The way it is now, the ip is only blocked temperately (just like the honest user), and we need to monitor it constantly and check for the ip’s that are attaching us, and manually set them to be blocked permanently.

    Tom

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Completely Block IP After Too Many Login Attemps’ is closed to new replies.