Support » Plugin: Cerber Security & Limit Login Attempts » reCAPTCHA Suggestion for Server Load

  • Hi, I have a question and suggestion about how the reCAPTCHA works in WP Cerber.

    I have had lots of attempts and lockouts for the past few days, all from different IPs (I counted 200+ in last 24 hours). To reduce the load on my web server, I’ve started trying other things. I added reCAPTCHA to the login screen. I see in the Activity tab that all of the login attempts are failing the reCAPTCHA with “reCAPTCHA verification failed” – very good. But on each attempt there is also an entry for “Attempt to log in with non-existent username” because I have the setting enabled to “immediately block IP when attempting to login with a non-existent username”.

    This is working, but I realize it must check the database to know if the username is non-existent. I would like to prevent my web server from doing that work. With a reCAPTCHA failure, it should not have to check the database at all.

    Also, I wonder if I disable the option for “immediately block IP when attempting to login with a non-existent username”, does that mean it won’t check the database for failed reCAPTCHA logins?

    I would suggest that when reCAPTCHA is enabled, WP Cerber should require successful reCAPTCHA before there is a query to the database about username (or password). This will prevent needless server work. That’s especially helpful in times when there are many login attempts.

    PS. I still have growing lockouts and email notifications so I decided to change the login page URL, and that seems to have stopped all the login attempt activity 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gioni

    (@gioni)

    Hi, Mike!

    Actually, the plugin does what you’ve described. It checks reCAPTCHA first, then, if it solved successfully, it checks if a username exists in the DB.

    Could you export those malicious activities, open it in any spreadsheet editor and make sure that timestamps for “reCAPTCHA verification failed” and “Attempt to log in with non-existent username” rows have close values (in the Unit timestamp column). If they registered in less than one second, that is weird.

    Ok, they do seem very similar so I think they are at the same time. How do I export the activity?

    By the way, I have version 4.1 currently and I see there are updates. Do you remember maybe the reCAPTCHA worked differently before and it did check the username in the DB first?

    Example-

    185.59.56.57 185-59-56-57.k-telecom.org June 2, 2017, 8:19 am IP blocked
    185.59.56.57 185-59-56-57.k-telecom.org June 2, 2017, 8:19 am Attempt to log in with non-existent username datarecovery
    185.59.56.57 185-59-56-57.k-telecom.org June 2, 2017, 8:19 am reCAPTCHA verification failed
    46.43.212.47 46-43-212-47.achinsk.net June 2, 2017, 8:08 am IP blocked
    46.43.212.47 46-43-212-47.achinsk.net June 2, 2017, 8:08 am Attempt to log in with non-existent username administrator
    46.43.212.47 46-43-212-47.achinsk.net June 2, 2017, 8:08 am reCAPTCHA verification failed
    91.246.1.37 91.246.1.37 June 2, 2017, 8:02 am IP blocked
    91.246.1.37 91.246.1.37 June 2, 2017, 8:02 am Attempt to log in with non-existent username datarecovery
    91.246.1.37 91.246.1.37 June 2, 2017, 8:02 am reCAPTCHA verification failed

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.