When I talk to clients about WordPress security, they often think of complex firewalls or cryptic code. But one of the most effective steps you can take is also one of the simplest: protecting your admin username.
After 17 years as a WordPress engineer, I’ve seen countless sites get hit by automated bots. These aren’t sophisticated hackers trying to steal state secrets. They’re programs scanning millions of sites, looking for the lowest hanging fruit.
The Bot’s Easy Target
Think about it: if a bot already knows your admin username, it only has to guess your password. That cuts its work in half. Common usernames like ‘admin’, your first name, or your website’s name are often the first things these bots try. And if your site publishes author pages or uses the WordPress REST API without adjustments, that information can be publicly exposed, making it even easier for an attacker to find.
I remember one client who came to me after their site was repeatedly locked out by brute-force attacks. Their main administrator account was simply ‘john’, which was also their name in the author bio. A quick look at their logs showed thousands of login attempts against that username. We changed the username and tightened up the display, and the attacks dropped off dramatically.
How Bots Find Your Username
There are a few common ways a bot can discover your administrator’s username:
- Default ‘admin’ username: Many older WordPress installations still use the default ‘admin’ username. If you set up your site years ago, you might still have it.
- Author Archives: By default, WordPress often shows author archive pages, like
yourdomain.com/author/yourusername/. This URL directly reveals the username of anyone who has published posts. - REST API: The WordPress REST API (Application Programming Interface) can also expose usernames, particularly for registered users, if not properly configured. This is a common method for bots to scrape for information.
Simple Steps to Protect Your Site
You don’t need to be a security expert to make your WordPress site much safer. Here are some actionable steps:
1. Don’t Use ‘admin’ as Your Username
If your main administrator username is ‘admin’, you absolutely need to change it. This is usually done by creating a new administrator account with a complex, unique username, assigning all posts from the old ‘admin’ account to the new one, and then deleting the old ‘admin’ account. Be very careful with this step; if you’re unsure, ask your developer for help.
2. Create a New Admin User (and use it for admin tasks only)
Your main administrator account shouldn’t be the same one you use for writing posts. Instead, create a separate user with an ‘Editor’ or ‘Author’ role for daily content work. This way, if that lower-privilege account is compromised, the attacker doesn’t immediately gain full control of your site.
3. Hide Your Author Archives
Many sites don’t need public author archive pages. If yours doesn’t, you can often disable these through a security plugin or by adding a few lines of code to your theme’s functions.php file. This redirects visitors from /author/yourusername/ to your homepage, preventing the username from being revealed.
4. Adjust REST API Exposure
While more technical, some security plugins offer options to limit or disable REST API user enumeration. This prevents bots from easily listing all your site’s usernames. For most business owners, this is a setting you’d ask your developer to check.
What You Can Do Today
The easiest, safest step you can take right now is to check if your administrator username is exposed on your site’s author page. Open your browser and try to visit yourdomain.com/author/yourusername/ (replace ‘yourusername’ with your actual admin username if you think you know it, or try common variations). If that page exists and shows posts from your administrator account, you’ve identified a vulnerability.
Securing your WordPress site isn’t about magical solutions; it’s about closing common doors that attackers try to open. Hiding your admin username is a big one. It forces bots to work harder, and often, they’ll just move on to an easier target.
If you’re unsure about your site’s security, I offer a free website audit that checks common vulnerabilities, including username exposure, speed, SEO basics, and AI search readiness. You’ll get a plain-English report with clear recommendations on what to fix first.