HelloAdmin Guard is on WordPress.org: security hardening without upsells
千里之行,始於足下
A journey of a thousand li begins with a single step.
Ever since I started working with WordPress, one of my long-held dreams was to give something back to the WordPress community. Now that dream has come true. Hooray! 🎉 We are the champions! 💪😎
Meet HelloAdmin Guard, my WordPress security plugin. It is now in the official WordPress.org plugin directory. You can install it from your admin area like any other plugin, and updates arrive the normal way. Getting here took 186 commits, 14 releases, two weeks of work and three rounds of review. Here is what the plugin does, what the review team asked me to change, and how to try it.
Problem: out of the box, WordPress leaves a few things open. Anyone can find your user names, your WordPress version and your login page, and /xmlrpc.php gives bots a second door next to it. Most security plugins close these, but they also want an account, a paid plan, or they change ten things at once and you don’t know which one broke your contact form.
Solution: one switch for each gap. Nothing changes until you turn it on. Next to every switch the plugin says what it closes, what may stop working and how to undo it. The plugin is completely free and will stay that way: no Pro version, no account, and it sends nothing anywhere.
What it closes
At the moment the plugin has 25 settings on two tabs, from the biggest risk down to the cheap rules.
The General tab works in PHP: turn off or limit XML-RPC, turn off the file editor, a custom login URL, hide user names, turn off Application Passwords, security headers, limit login attempts, hide the WordPress version, hide the REST API index and close the core REST API to visitors who are not logged in. Three more send you an e-mail when a new administrator appears, when must-use plugins or files like wp-config.php change, and when an installed plugin is abandoned or closed on WordPress.org.
The Advanced tab writes server rules into .htaccess (Apache and LiteSpeed; on Nginx it shows them to copy): block hidden files like .git and .env, backups and database dumps, PHP in uploads, logs and phpinfo pages, folder listings, developer files, PHP files of inactive plugins, plus the http to https redirect, HSTS and TRACE.
Before it writes .htaccess, the plugin keeps a copy and opens your home page. If the page answers with a server error, the old file goes back and the setting stays off. Its rules sit between two markers, so you can always find and remove them by hand:
# BEGIN HelloAdmin Guard ... # END HelloAdmin Guard
It checks what your site really answers
Every card shows one of three states: closed by this plugin, already closed by something else (another plugin, the host, the server config), or still open. The plugin gets this by asking your own site the way a visitor would, for example by requesting /?author=1 or /wp-json/wp/v2/users without a login. If your host already blocks XML-RPC, the card says so, and you can leave that switch off.
The number of open gaps shows next to the menu item, so you see it without opening the page.
What the WordPress.org review asked to change
I submitted version 0.4.1 on November 20. The plugin was approved on November 28, after three rounds:
- Round 1: drop the bundled translation files (WordPress.org serves translations itself), fix Nginx rules for sites installed in a subfolder, count failed application password logins in the login limit, and don’t save a setting as off if its .htaccess rules could not be removed.
- Round 2: WP-CLI could turn on the custom login URL without an address and lock you out, and it could report server rules as working on Nginx. Both were real. Both are fixed.
- Round 3: links from the plugin to my site carried UTM tags, which counts as tracking. They are plain links now. And the file checks built URLs by hand, which breaks when plugins or uploads live somewhere unusual. They use the URLs WordPress gives now.
Every point was fair. More about the holes outside checks found: 10 releases in 8 days: what outside checks found in HelloAdmin Guard.
How to install it
In the admin area: Plugins → Add New Plugin, search for “HelloAdmin Guard”, Install Now, Activate. Then open HeAd Guard in the admin menu, below Settings.
With WP-CLI:
wp plugin install helloadmin-guard --activate wp helloadmin-guard status
The status command lists every setting with its risk and state. You can also turn settings on from the command line:
wp helloadmin-guard enable disable_xmlrpc wp helloadmin-guard enable login_url --slug=my-door
Start with one switch, then open your site and check that forms, the shop and logins still work. Then the next one.
What’s next
The plugin already does its job in full, but I have plenty of ideas for it, so new settings will keep coming. Updates arrive the normal way, through Dashboard → Updates.
If something breaks or a card explains things badly, tell me on the support forum or on GitHub. Plugin page: wordpress.org/plugins/helloadmin-guard.