You have been locked out due to too many invalid login attempts.

Defender locked me, superadmin, out after to many attempts to login. What is the procedure to unblock the account?

  • Soumendra Mishra

    Hello Lee,

    I hope you're well today and sorry for the issue you are facing.

    The default lockout time is 300 seconds in defender plugin, so you can wait for that so that you should able to log in again.

    If you have locked out permanently then you can add this code using MU plugin or active theme's functions.php file to unblock your IP:

    add_filter( 'ip_lockout_default_whitelist_ip', function ( $ips ) {
        if ( current_user_can( 'manage_options' ) ) {
            $ips[] = WD_Utils::get_user_ip();
        }
    
        return $ips;
    } );

    After you have successfully logged in, you can change the plugin name to wp-defender again so that you can see the plugin again in your dashboard. Then you can whitelist your IP by going to Defender > IP Lockouts > IP Banning > Whitelist and then type your IP in the Whitelist field and save the changes. So that you won't be locked out again in future if your website will be accessed from your IP.
    After all done you can remove the above code from wherever you have added that.

    Also, you can adjust the lockout time under Defender > IP Lockouts > 404 Detection > Lockout time .

    Let me know if you need further assistance with this.

    Cheers,
    Soumendra

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.