Linux 软件免费装
Banner图

HelloAdmin Guard

开发者 helloadmincom
更新时间 2026年11月30日 22:53
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security login headers htaccess hardening

下载

0.7.2 0.7.1

详情介绍:

Most WordPress sites leave the same things open: a login page anyone can hit, public user names, an old XML-RPC endpoint, versions in the page source. HelloAdmin Guard closes them with simple on/off settings. What makes it different: Settings in this version The settings are listed from the biggest risk down to the cheap rules. The plugin checks what your site really answers to visitors and shows on every card whether the gap is closed by this plugin, already closed by another plugin or the server, or still open. The number of open gaps shows next to the menu item and in Site Health. General tab The administrator and must-use alerts do not depend on WP-Cron: they check after every login, on admin pages and at least once an hour while the site gets visits. The plugin alert follows WordPress's own update check. The cards can show the full description, a short one with Details, or only the switches; each admin picks a view with the buttons next to the tabs. Advanced tab: server rules (Apache and LiteSpeed write them into .htaccess, Nginx shows them to copy) Tips tab If hacked tab Before writing .htaccess the plugin keeps a copy of it and then opens your home page. If the page answers with a server error or goes round in redirects, the old file is put back and the settings stay off. Its rules sit between "# BEGIN HelloAdmin Guard" and "# END HelloAdmin Guard" and are removed when the plugin is deactivated. The plugin is available in English, Ukrainian and Russian.

安装:

  1. Upload the plugin to wp-content/plugins/helloadmin-guard, or install it from Plugins > Add New.
  2. Activate it.
  3. Open HeAd Guard in the admin menu (below Settings), read each setting and turn on what you need.

屏幕截图:

  • Advanced tab: server rules written into .htaccess, with the exact lines under each card.
  • Security headers: tick what your site uses, the rest is turned off in Permissions-Policy.
  • The welcome message on the first visit to the settings page.

常见问题:

I turned something on and can't log in. What now?

Rename the folder wp-content/plugins/helloadmin-guard over FTP or in your hosting file manager. WordPress turns the plugin off and every setting stops working at once. A renamed plugin cannot clean up after itself, so also open .htaccess in the site root and delete everything between "# BEGIN HelloAdmin Guard" and "# END HelloAdmin Guard" (with the login URL setting, that block closes the login form on wp-login.php). Rename the folder back and fix the setting in the HelloAdmin Guard menu.

Does it work together with other security plugins?

Yes. The plugin checks what the site answers, so when Wordfence, Solid Security or your host already closes a gap, the card says so and you can leave that switch off. Do not turn on the same login URL change in two plugins: they will get in each other's way.

Is there a command line?

Yes: wp helloadmin-guard status, check, enable, disable, sync and emergency (log out everyone). The custom login URL needs its address: wp helloadmin-guard enable login_url --slug=your-address. WP-CLI cannot see which web server runs the site, so the plugin remembers it from your admin visits; on a site whose admin area was never opened, add --server=apache or --server=nginx.

Does it work on multisite?

Not yet. The custom login URL does nothing on multisite; the other settings are tested on single sites only.

What happens when I deactivate or delete the plugin?

Deactivating turns every setting off at once and removes the plugin's block from .htaccess; your choices are kept and come back when you activate it again. Deleting the plugin also removes its settings from the database. If WordPress cannot write .htaccess at that moment (for example the file is read-only), the block stays: delete everything between "# BEGIN HelloAdmin Guard" and "# END HelloAdmin Guard" by hand.

I copied the site or its .htaccess to another server. Anything to watch?

The .htaccess file carries the plugin's server rules, the settings live in the database. When the copied file has rules for settings that are off on the new copy, the plugin rewrites its block on the next visit to the login page or the admin area. Without that, a login URL rule from the old server could close the login form. You can also run wp helloadmin-guard sync.

How does the strict mode of Limit login work?

The normal limit counts failed logins per IP address. Botnets guess from thousands of addresses, a few tries each, so the strict mode also counts failed logins from all addresses together.

  • Threshold: when the failed logins from all addresses reach the number you set (50 by default) within the lockout time, logins from new devices are refused for that time. While the attempts go on, the lock is extended.
  • Same answer: during the lock a new device gets the same message with a right or a wrong password, so the answer never confirms a guessed password.
  • Known browsers: after a successful login the browser gets a cookie for one year, signed with the salts of your wp-config.php and tied to the user. With it the owner still logs in during an attack.
  • Lost your password: keeps working. The link from the reset e-mail makes that browser known, so you can log in from a new device.
  • E-mail: the administration e-mail (Settings → General) gets "Login attack from many addresses", once a day at most.
  • Application passwords (Jetpack, the mobile app, REST API clients): the strict mode leaves them alone, they are long and random and guessing them is pointless. The limit per IP address still applies to them.
  • Not for sites where customers or members log in: during an attack they could not log in from a new device without a password reset.

Limit login says all visitors share one address. What now?

PHP sees the address of whatever connected to it. Behind a proxy that does not pass the visitor address (Nginx in front of Apache on the same server, a load balancer, a CDN other than Cloudflare) every visitor looks the same, and one bot could lock everyone out, so the card warns about it. The best fix is on the server: ask the host to turn on mod_remoteip or the Nginx real IP module. Behind Cloudflare the plugin reads CF-Connecting-IP itself, but only from Cloudflare's own addresses. Developers who know where their server puts the real address can return it from the helloadmin_guard_client_ip filter.

Which routes does "Core REST API only for logged-in users" close?

The core namespaces wp/v2 (posts, pages, media, categories, search, users), wp-site-health/v1, wp-block-editor/v1 and wp-abilities/v1, for visitors who are not logged in, also inside batch calls. oEmbed and the routes of plugins (forms, shops, statistics) stay open. If a theme or a headless front end reads posts through the API without logging in, add its route to the "Keep open for visitors" field, for example /wp/v2/posts.

What does the Fix button in "Hide user names" change?

For one user: the public name ("Display name publicly as") becomes the name you type, the author page address is made from that name when it was the login (the old address answers "not found"), and the user's old comments get the new name. The login and the password stay the same. After a Fix, clear the cache of your page cache and SEO plugins: they may still show the old name or author address until then.

Does it work on Nginx?

The General tab works on any server. Nginx does not read .htaccess, so on the Advanced tab every card shows its rules to copy into the server block of your site.

Does the plugin send any data?

No. It makes no requests to outside servers. The e-mail settings send their messages through your site's own mail to the addresses you set. Otherwise the plugin only sends requests to your own site, as a visitor who is not logged in: to check which gaps are open and, right after writing .htaccess, to check that the site still opens.

更新日志:

0.7.2 0.7.1 0.7.0 0.6.1 0.6.0 0.5.2 0.5.1 0.5.0 0.4.2 0.4.1 0.4.0 0.3.0 0.2.1 0.2.0 0.1.0