Linux 软件免费装
Banner图

NHR Secure – Security, Firewall, 2FA, Login Protection & Activity Log

开发者 nhrrob
更新时间 2026年10月16日 20:27
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security activity log firewall 2fa limit login attempts

下载

2.1.0 1.3.3 2.3.0 1.0.3 1.0.5 1.0.6 1.1.0 1.0.2 1.2.0 1.3.0 1.3.1 1.0.4 1.3.2 2.0.0 2.2.0

详情介绍:

NHR Secure is a complete security plugin for WordPress: it protects the sign-in form and the accounts behind it, filters hostile requests, hardens the site, scans for known vulnerabilities and changed files, and keeps a record of what happened. It is small, needs no account or cloud service, and has no upsells. Everything lives in one screen under Tools → Secure, with a light and a dark theme. Changes save as you make them. Nothing that could lock you out is on by default, and there is always a way back in: one line in wp-config.php or one WP-CLI command (see the FAQ). Key Features Dashboard Login Users & Sessions Firewall Hardening Scanner Activity Small and tidy What it is not NHR Secure has no cloud threat feed and is not a malware cleaner. The request filter runs inside WordPress, and the scanner finds things for a person to review. If your site has been hacked, ask a professional clean-up service.

安装:

  1. Upload the nhrrob-secure folder to /wp-content/plugins/, or install it from Plugins → Add New.
  2. Activate the plugin.
  3. Open Tools → Secure. The Dashboard shows what to fix first.

屏幕截图:

  • Login: attempt limits, who is locked out, the moved login address, two-factor and the bot check.
  • Users & Sessions: two-factor status and active sessions for every user.
  • Firewall: address rules and the request filter in log-only mode.
  • Hardening: each switch says what could stop working; file protection shows a tested result.
  • Scanner: known vulnerabilities, WordPress and plugin file comparison, suspicious code review.
  • Activity: search, filter and export what happened on your site.
  • Settings: visitor address detection, email alerts, data and the lockout recovery lines.
  • Two-factor setup on the user's profile.
  • Dark theme.

升级注意事项:

2.3.0 Acknowledge checks you leave on purpose, an AI ability that switches on missing protections, and WordPress's readme.html and license.txt now protected. No settings change. 2.2.0 Read-only AI agent and MCP support on WordPress 6.9+, a JSON status command for WP-CLI, and verified PHP 7.4 to 8.5 compatibility. No settings change. 2.1.0 New protections and tools, all off until you switch them on. Open the Dashboard for the recommended setup. 2.0.0 A rebuilt plugin. Your settings, login address and two-factor users are kept. The old firewall is replaced by a request filter that starts in log-only mode. The settings screen is now under Tools → Secure.

常见问题:

I'm locked out. How do I get back in?

Add this line to wp-config.php, above the line that says "That's all, stop editing": define( 'NHRROB_SECURE_SAFE_MODE', true ); Safe mode pauses the moved login address, lockouts, the request filter, address and country rules and the two-factor step, and leaves your settings as they are. Sign in at wp-login.php, fix the setting, then remove the line. With WP-CLI you can also run wp nhrrob-secure safe-mode on, wp nhrrob-secure unlock --all, wp nhrrob-secure login-url reset or wp nhrrob-secure reset-2fa <user>.

Where are the settings?

Under Tools → Secure.

Is anything switched on when I activate the plugin?

Limiting login attempts and generic sign-in errors are on. Everything that could lock you out or block a visitor (the moved login address, two-factor, the request filter, address and country rules, hardening switches) is off until you turn it on.

I am updating from 1.x. What changes?

Your settings are kept, including a moved login address and your users' two-factor setup. Two things change on purpose: the old "advanced firewall" is replaced by a smaller request filter that starts in log-only mode, and country rules now apply to the sign-in page unless you choose the whole site. The audit table from 1.x is copied into the new activity log and removed. The settings screen moved to Tools → Secure.

Does two-factor work with any authenticator app?

Yes. It uses the standard time-based codes (TOTP) that Google Authenticator, Microsoft Authenticator, Authy, 1Password, Bitwarden and others support. The QR code is drawn in your browser; the secret is never sent to an outside service.

A user lost their phone. What now?

They can sign in with one of their recovery codes. Otherwise an administrator can reset their two-factor under Tools → Secure → Users & Sessions, or with wp nhrrob-secure reset-2fa <user>.

Why does file protection say my debug log is readable?

A file that exists is handed out by the web server before WordPress loads, so a plugin cannot guard it from PHP. On Apache and LiteSpeed, switch on "Protect these files". On nginx, add the lines shown on the Hardening screen to your server configuration, or send them to your host.

Will the request filter block my visitors?

It is off by default and starts in log-only mode. It looks at the address of a request, and only for visitors who are not signed in. Checking submitted forms is a separate switch that uses only the rules normal writing cannot trigger. Check the list of matches for about a week, allow anything that is yours, then switch it to Block.

Does it work on multisite?

Yes. Each site has its own settings, and Network Admin → Settings → Secure shows every site's score in one table and can copy one site's settings to all the others. Actions that change files or end everyone's sessions need a network administrator.

Do passkeys replace the password?

No. A passkey is the second step after the password, like a code from an authenticator app. It needs HTTPS. Recovery codes work when the passkey is not at hand.

How do customers set up two-factor without wp-admin?

Put the [nhrrob_secure_2fa] shortcode on any page. With WooCommerce it also appears under My account → Account details.

Can an AI agent or MCP client use this plugin?

Yes, on WordPress 6.9 or later. The plugin registers three abilities with the WordPress Abilities API: nhrrob-secure/get-security-status (score, checks, counts), nhrrob-secure/list-vulnerabilities (the last vulnerability check) and nhrrob-secure/apply-fix, which fixes one failed check by switching on the setting behind it: XML-RPC off, usernames hidden, file editor off, login attempts limited, or file protection rules written to .htaccess. All need an administrator. An agent can only switch these protections on, never off, and cannot unlock an address, run a scan or choose a file; it is never given the login address, your address rules, usernames, visitor addresses or the activity log. To use the abilities over MCP, install the WordPress MCP Adapter plugin; this plugin does not bundle it.

Which PHP versions are supported?

PHP 7.4 and every later version. Each change is tested on PHP 7.4 through 8.5, and on the upcoming 8.6.

Does the plugin create database tables?

No. Version 1.x created one table; 2.0 moves its contents into the activity log and removes it.

更新日志:

2.3.0 - 16/10/2026 2.2.0 - 10/10/2026 2.1.0 - 05/10/2026 2.0.0 - 05/10/2026 1.3.3 - 25/09/2026 1.3.2 - 09/05/2026 1.3.1 - 07/02/2026 1.3.0 - 28/01/2026 1.2.0 - 17/01/2026 1.1.0 - 13/01/2026 1.0.6 - 11/01/2026 1.0.5 - 11/01/2026 1.0.4 - 09/01/2026 1.0.3 - 05/01/2026 1.0.2 - 04/12/2025 1.0.1 - 30/11/2025 1.0.0 - 23/10/2025