1. Don’t Display Error Messages on Failed Login
WordPress’ admin screen displays “ERROR: Invalid username.” if you enter an invalid username. But if you enter a valid username and an incorrect password, it’ll say “ERROR: Incorrect password.” This basic security flaw tells intruders which usernames to target. I don’t understand why the WordPress team designed it this way.
You can disable the error message by putting this in your theme’s functions.php:
add_filter(‘login_errors’,create_function(‘$a’, “return null;”));
2. Publish Posts as a Non-Admin User
Create a WordPress user that has admin privileges and publish all posts… more...