Disable login with email
Update your functions.php with the following line:
remove_filter( ‘authenticate’, ‘wp_authenticate_email_password’, 20 );
Disable username discover
Hackers can search usernames by querying the author link: http://www.yoursite.com/?author=1 . You can add the following code to functions.php to redirect those urls to the homepage.
function redirect_to_home_if_author_parameter() {function
redirect_to_home_if_author_parameter() {
$is_author_set = get_query_var( ‘author’, ” );
if ( $is_author_set != ” && !is_admin()) {
wp_redirect( home_url(), 301 );
exit;
}
}
add_action( ‘template_redirect’, ‘redirect_to_home_if_author_parameter’ );
Limit login attempts
Add a plugin to limit your login attempts : https://nl-be.wordpress.org/plugins/search/login+attempts/
Use a plugin that is used a lot and is frequently updated.
Use password-like usernames
Your username should be as hard to find as your password, longer is better.
