Docs

Nahnu Login Shield

Release notes

Every Nahnu Login Shield release, with new features, fixes and anything you need to know before updating.

Latest 1.0.21 November 24, 2026
Releases 12 documented changes

2026

12 releases
  1. v1.0.21 Fixed

    1.0.21

    Removes three PHP warnings logged on each visit to a custom login address.

    A small maintenance release.

    After updating: nothing to do.

    Fixed

    • PHP warnings with a custom login address. Each visit to the login page at a custom address wrote three warnings to the PHP error log: Undefined variable $user_login (twice) and Undefined variable $error, all in wp-login.php. The login page worked as it should; only the error log filled up. Sites that use the default wp-login.php address were not affected.

    Good to know

    • No settings changes are needed, and the translation pack from 1.0.15 still applies.
  2. v1.0.20 Security

    1.0.20

    Security fixes for the CAPTCHA and JavaScript checks, a new Visitor IP header setting, and two WooCommerce login fixes.

    A security release. We recommend updating.

    After updating: if your site is behind a CDN or proxy (Cloudflare, Bunny and others), open Settings → Login Shield → Lockout and choose your CDN’s header under Visitor IP header. If you use the early-block mu-plugin, it is refreshed automatically on the first visit after the update.

    Security

    • The CAPTCHA is checked before the password. Before, a wrong password and a right password without a CAPTCHA gave different messages, so a bot could test passwords without solving the CAPTCHA. Both now get the same answer, and a login without a CAPTCHA response is refused without checking the password at all.
    • wp-login.php?action=anything is treated as the login form, as WordPress itself does. Before, a login posted with an unknown action skipped the CAPTCHA and the JavaScript check. This is fixed in the plugin and in the early-block mu-plugin.
    • New “Visitor IP header” setting. With Trust proxy headers on, the plugin used the first proxy header it found. A visitor could send a different header to fake their IP address, to avoid a lockout or to get someone else locked out. You can now choose the one header your CDN sets, and every other header is ignored.
    • Early-block mu-plugin. A path such as /wp-login.php/wp-admin/ no longer skips its checks, and the rate counter no longer loses hits when many requests arrive at once.

    Fixed

    • WooCommerce login with Turnstile, reCAPTCHA or hCaptcha. The login failed because the CAPTCHA response was verified twice, and these services accept each response only once.
    • WooCommerce login with “Protect WooCommerce login” off. The My Account login was refused when a CAPTCHA protected wp-login.php but WooCommerce protection was off.

    Improved

    • Rate limits use the plugin’s own table. The per-IP limits for login links, passkeys, two-factor codes and the account page no longer write to the WordPress options table.

    MainWP

    • Settings can be changed from MainWP. The main switches, lockout rules, IP lists, honeypot usernames and email alerts of a site can be changed from a MainWP dashboard. The MainWP extension is in closed testing and is not available yet. API keys and other secrets never leave the site. To turn this off on a site, add define( 'NAHNLS_MAINWP_READONLY', true ); to wp-config.php.

    Choosing the Visitor IP header

    • The setting is on the Lockout tab, below Trust proxy headers. It lists the headers found on your current request, to help you pick.
    • Cloudflare: CF-Connecting-IP. Bunny and nginx: X-Real-IP. Fastly: Fastly-Client-IP.
    • “Automatic” keeps the behavior of earlier versions. It works, but it is the less safe choice.
    • Not behind a CDN or proxy? Leave Trust proxy headers off; this setting is then not used.

    Good to know

    • A login form that posts to wp-login.php with its own action value and without the plugin’s CAPTCHA is now refused when a CAPTCHA is on. Test custom login forms after updating.
    • The translation pack from 1.0.15 still applies. Six new settings texts show in English until the next pack.
  3. v1.0.18 Improved

    1.0.18

    A second performance release, for sites that see thousands of bot logins a day. After updating: if you use the early-block mu-plugin, open Settings → Login Shield and click Update mu-plugin. Two…

    A second performance release, for sites that see thousands of bot logins a day.

    After updating: if you use the early-block mu-plugin, open Settings → Login Shield and click Update mu-plugin. Two small database tables are added automatically on the first visit after the update.

    Improved

    • Lockouts are stored one row per IP. Before, every locked IP lived in a single stored value that was read in full on each login request and rewritten on each new lockout. On a test site with 10,000 locked IPs, adding a lockout dropped from 78 ms to about 1 ms, and checking an IP from 6.5 ms to under 1 ms. Existing lockouts are moved over automatically.
    • Lighter failed logins. Attempt counters for each IP and username now use their own small table. A failed login no longer writes four rows to the WordPress options table.
    • Refused attempts stop earlier. When the plugin has already refused a login (locked IP, blocked IP or honeypot username), WordPress no longer goes on to look up the user and check the password.
    • Cleaner event log. Those refused attempts are no longer also counted as ordinary failed logins.
    • Fewer queries and background tasks. Writing an event-log row takes one query, not two. No background task is scheduled for a lockout when there is no edge block or email to send.
    • Upgrades apply straight away. Database changes now run on the first request after an update, so auto-updated sites don’t wait for someone to open wp-admin.
    • Early-block mu-plugin. It reads the new lockouts table when its own marker files are not available.

    Housekeeping

    • The plugin now passes the WordPress Plugin Check tool with no findings.
    • The readme changelog keeps the five most recent versions. The full history is in changelog.txt inside the plugin folder.

    Good to know

    • No settings changes are needed, and the translation pack from 1.0.15 still applies.
    • If the new tables can’t be created, the plugin keeps using the previous storage and continues to work.
  4. v1.0.19 Improved

    1.0.19

    Batched edge blocking, an optional strict JavaScript check, and an early-block mu-plugin that updates itself with the plugin.

    A third performance release, for sites with very high login volumes.

    After updating: nothing to do. If you use the early-block mu-plugin, it is refreshed automatically on the first visit after the update.

    New

    • The early-block mu-plugin updates itself. Once you have installed it, each plugin update refreshes the copy on the first request afterwards, including this update. It is still only installed when you click the button, and nothing is written on a site that has removed it. If the folder is not writable, the Update mu-plugin button stays as the fallback.
    • Strict mode for Require JavaScript (off by default). A login without the plugin’s JavaScript marker is refused before the password is checked. With the early-block mu-plugin it is refused before plugins and the theme load. On a test site, a bot guessing a real user’s password took 54 ms to answer with Strict off, 29 ms with Strict on, and 15 ms with Strict on and the mu-plugin installed.

    Improved

    • Edge blocks and emails are batched. Lockouts now wait in a short queue, and one background task handles all of them. A burst of 250 lockouts becomes one task and one Bunny Shield list update, not one of each per IP. Cloudflare still takes one request per IP, so those are worked through in time-limited runs.
    • The custom login address is covered by the mu-plugin. Logins posted to your custom address are now checked for lockouts and rate-limited before WordPress loads, like wp-login.php.
    • Lighter country lookups. The lookup cache moved out of the WordPress options table into the plugin’s own table.
    • The edge block log is written once per batch, not once per IP.

    Fixed

    • Long lockouts reach the edge too. An escalated (long) lockout is now pushed to Bunny and Cloudflare, like a normal one.
    • Bunny pull-zone blocking uses the same connection as Shield blocking: the keys in wp-config.php or the Bunny Cache Connector, not only the key saved on the settings page.
    • A blank recipient box no longer silences an email. If the admin login alert or weekly digest box is empty, the email goes to the Alert email address, or to the site’s admin email when that is blank too.
    • Settings text: the proxy header order, the country cache description, and two button and switch names now match what you see.

    Before you turn Strict on

    • It is on the General tab, under Require JavaScript.
    • A login form that posts to wp-login.php without the plugin’s marker stops working. That can include some theme or page-builder login forms. Test a login in a private window after enabling.
    • A login page left open for about a day shows “Security check expired” and needs a reload.
    • Logins refused this way by the mu-plugin are logged once per IP per minute and do not count towards a lockout. Fast repeat offenders are still caught by the rate limit.

    Good to know

    • Pushing a lockout to Bunny or Cloudflare now happens within about a minute, not instantly. The IP is locked out on your site straight away.
    • No settings changes are needed, and the translation pack from 1.0.15 still applies.
  5. v1.0.17 Improved

    1.0.17

    A performance release for sites under heavy bot traffic. After updating: if you use the early-block mu-plugin, open Settings → Login Shield and click Update mu-plugin. The installed copy keeps the old…

    A performance release for sites under heavy bot traffic.

    After updating: if you use the early-block mu-plugin, open Settings → Login Shield and click Update mu-plugin. The installed copy keeps the old behavior until you do.

    Improved

    • Repeat offenders are locked out. An IP that keeps hitting the login rate limit now becomes a real lockout, so it is also blocked at Bunny or Cloudflare when edge blocking is on. Before, it was answered with a “too many requests” page indefinitely. This covers wp-login.php, xmlrpc.php and WooCommerce login.
    • Faster answers for locked-out IPs. The early-block mu-plugin now reads one small file per locked IP, with no database query.
    • Hidden login page. With a custom login address, bots hitting wp-login.php directly get a bare 404 or the home redirect before plugins and the theme load.
    • Blocked IPs and countries refused earlier. Your manual blocked-IP list is checked in the mu-plugin. A visitor from a blocked country is refused there for 15 minutes after the first hit.
    • Smaller event log during floods. Blocked-IP and blocked-country hits write one log row per IP per minute, not one per request.
    • Lighter rate-limit data. Each IP gets one tiny counter file, and old files are cleaned up by the daily scheduled task.
    • Less code on every page view. The settings screen code now loads only in wp-admin.
    • Whitelist respected by the mu-plugin. Whitelisted IPs are never rate-limited or blocked by the mu-plugin.

    Good to know

    • Keep “Trust proxy headers” on if your site is behind Bunny, Cloudflare or another proxy. Without it, rate-limit hits are not turned into lockouts, because the plugin would be locking out the proxy’s address.
    • Block pages from the mu-plugin now share one plain design. The country-block page still shows your own heading, message and contact email.
    • No settings changes are needed. The translation pack from 1.0.15 still applies.
  6. v1.0.16 Fixed

    1.0.16

    Fixed Password manager prompts. Your password manager no longer asks to “Update login” each time you open a different Login Shield admin page. API keys and secret keys (Bunny, Cloudflare, CAPTCHA and…

    Fixed

    • Password manager prompts. Your password manager no longer asks to “Update login” each time you open a different Login Shield admin page. API keys and secret keys (Bunny, Cloudflare, CAPTCHA and geolocation) are now masked fields that password managers don’t treat as a login form. Saving works as before, and leaving a field blank keeps your current key.

    Improved

    • Code quality. We ran the plugin through the Plugin Check tool and cleaned up the findings: clearer notes for translators, safer output of a few values on the settings pages, and WordPress’s own file and URL functions wherever they are available.
    • Shorter upgrade notices on WordPress.org.

    Upgrade notes

    • No settings changes are needed.
    • If your browser has already saved the API key fields as a login, delete that saved entry once.
    • The translation pack from 1.0.15 still applies.
  7. v1.0.15 New

    1.0.15

    Improved Right-to-left languages. The account security panel now displays correctly in Arabic, Hebrew and Persian. The sign-in arrow icon is mirrored, and email addresses stay readable inside right-to-left text. Fixed Card icons…

    Improved

    • Right-to-left languages. The account security panel now displays correctly in Arabic, Hebrew and Persian. The sign-in arrow icon is mirrored, and email addresses stay readable inside right-to-left text.

    Fixed

    • Card icons sitting above the title. On some themes and with translation plugins, the icons in the account security panel appeared above the heading. The icon and its text now always sit on one row.

    Translations

    • Free translation pack. The pages your customers see are available in 20 languages: Arabic, Chinese (Simplified), Danish, Dutch, Finnish, French, German, Hebrew, Indonesian, Italian, Japanese, Korean, Norwegian, Persian, Polish, Portuguese (Brazil), Russian, Spanish, Swedish and Turkish. This covers sign-in, two-factor codes, email login links, passkeys and My Account → Login & security.
    • How to install it: download the pack, unzip it, and upload the files from the languages/plugins/ folder to wp-content/languages/plugins/ on your site. WordPress then uses the language that matches your site or the visitor.

    Other

    • The plugin description on WordPress.org is shorter and no longer cut off.
  8. v1.0.14 Improved

    1.0.14

    A cleaner account security page for your customers The account security panel your customers see has a new look. That’s My Account → Login & security in WooCommerce, and the [nahnls _account_…

    A cleaner account security page for your customers

    The account security panel your customers see has a new look. That’s My Account → Login & security in WooCommerce, and the [nahnls _account_ security] (added spaces so shortcode would not load) shortcode. It now feels like part of a modern online store, not a settings page.

    Improved

    • Clean cards. Each section (Passkeys, Two-factor authentication, Sign-in options) is its own card with an icon, a clear title and a one-line summary.
    • Every option at a glance. Each sign-in and verification method is a single row with a simple status: On, Always on or Not set up.
    • Switches instead of checkboxes. Customers turn email login links on or off with one tap.
    • Less reading. The two-factor section is now one status line, one row per method (email code, authenticator app, passkey) and backup codes as their own row. The email address shows once instead of four times.
    • A gentle nudge. Customers who only use email codes see a short tip suggesting an authenticator app as a backup.
    • Great on phones. Rows stay tidy on small screens, and right-to-left languages are supported.
    • Matches your brand. The panel still follows your colour settings and dark mode.
  9. v1.0.13 New

    1.0.13

    Cloudflare WAF: the Bunny Shield tools, now for Cloudflare Edge Blocking now has a third sub-tab, Cloudflare WAF. If your site runs on Cloudflare, you get the same edge protection Bunny Shield…

    Cloudflare WAF: the Bunny Shield tools, now for Cloudflare

    Edge Blocking now has a third sub-tab, Cloudflare WAF. If your site runs on Cloudflare, you get the same edge protection Bunny Shield users already have.

    New

    • One-click login rate limit on Cloudflare. Turn on a single switch and any IP flooding your login page is blocked at the Cloudflare edge. This covers wp-login.php, xmlrpc.php and your custom login path, and the rule follows when you change that path. It’s added next to any rate limiting rules you already have and never replaces them.
      • Free plan: set up for you automatically, using Cloudflare’s free limits. More than 10 requests in 10 seconds gets the IP blocked.
      • Pro and up: choose your own requests, time window and block length (up to 1 hour on Pro, 1 day on Business).
    • See and lift Cloudflare blocks. The Cloudflare WAF tab lists every IP blocked on Cloudflare, each with an Unblock button. Unlocking an IP on the Lockout tab now lifts its Cloudflare block right away.
    • Block whole attacker networks on Cloudflare. “Block network…” now works with Cloudflare on every plan, including Free. If you use both Bunny Shield Advanced and Cloudflare, one click blocks the network on both.
    • Built-in checks. The tab shows your Cloudflare plan and warns you if the zone is paused, since nothing is blocked then. If your API token is missing a permission, it tells you exactly which one to add.

    Improved

    • After a save, the settings page now updates without a reload: badges, “API key is set” notes, the paths your rate limit covers and the blocked-IP lists.
    • The Cloudflare “Test connection” button appears as soon as you save your token and zone.

    Fixed

    • Cloudflare IP blocks weren’t being lifted when they expired. They now end on time.
    • Blocking an IP that was already blocked on Cloudflare could stop the plugin from unblocking it later.

    Heads up for Cloudflare users: to use the new rate limit, add the Zone → Zone WAF → Edit permission to your Cloudflare API token.

  10. v1.0.12 New

    1.0.12

    Bunny Shield: stop login attacks at the edge The Edge Blocking tab now has two sub-tabs. IP Blocking works as before. Bunny Shield is new and blocks attacks on the Bunny side…

    Bunny Shield: stop login attacks at the edge

    The Edge Blocking tab now has two sub-tabs. IP Blocking works as before. Bunny Shield is new and blocks attacks on the Bunny side, before they reach your server.

    New

    • One-click login rate limit. Turn on a single switch and any IP flooding your login page is blocked at the edge. This covers wp-login.php, xmlrpc.php and your custom login path, and the rule follows when you change that path. It’s set up directly through the Bunny API.
      • Free plan (Shield Basic): set up for you automatically. More than 10 requests in 10 seconds gets the IP blocked for 1 minute.
      • Shield Advanced and up: choose your own requests, time window and block length (up to 1 hour).
    • Locked-out IPs blocked worldwide in seconds. If your pull zone has Bunny Shield, locked-out IPs go to a Shield access list automatically. There’s nothing to set up. The Bunny Shield tab lists every blocked IP with an Unblock button. Each IP is removed when its lockout ends or when you unlock it.
    • Block whole attacker networks. Attackers switch IPs but usually stay on the same hosting network. “Block network…” on an active lockout finds that network and, after you confirm, blocks all of it. This needs Shield Advanced.
    • Shield health check with one-click fixes. The tab shows your Shield plan. It also warns you when learning mode or the WAF’s “Log only” setting is quietly stopping Shield from blocking, and fixes either with one click.
    • Works with Nahnu Cache Connector for Bunny.net. The two plugins work together on the same pull zone without overwriting each other’s rules in Bunny. Login Shield adds its own Shield rules: the login rate limit and the lists of blocked IPs and networks. The Cache Connector keeps your custom login path out of Bunny’s edge cache and updates that the moment you change the path. That way the rate limit sees every login request and no login page is ever served from cache. You can also reuse the Cache Connector’s Bunny connection instead of entering your API key twice.
      Requires Nahnu Cache Connector for Bunny.net (free on WordPress.org).

    Improved

    • Block pages (“Access temporarily restricted” and geo-block) now return HTTP 403 and are never cached, so a CDN can’t show a block page to other visitors.
    • Bunny error messages now appear in full instead of a bare error code.
    • The plugin remembers which Edge Blocking sub-tab you used last.

    Fixed

    • After saving your Bunny API key or pull zone, the key line could show “Request failed” and the Bunny Shield tab could still say “Connect Bunny.net first” until you reloaded. Both now update right away.

  11. v1.0.11 Improved

    1.0.11

    Improved Put your own username on the honeypot list. Usernames are public (author pages, feeds, the REST API), so bots try them. Add yours to the honeypot list and sign in with…

    Improved

    • Put your own username on the honeypot list. Usernames are public (author pages, feeds, the REST API), so bots try them. Add yours to the honeypot list and sign in with your email address instead. Anyone who tries the username gets locked out like a bot. Real email addresses are never blocked, so you can always get in. The Lockout tab shows which entries on the list are real accounts, and reminds you if one of them is yours.
  12. v1.0.10 New

    1.0.10 (Initial public release)

    Login protection Brute-force lockout with escalating lockout times, per-IP and per-username. Honeypot usernames: anyone who tries admin (or names you choose) is blocked instantly. CAPTCHA on login, registration and lost-password forms, with…

    Login protection

    • Brute-force lockout with escalating lockout times, per-IP and per-username.
    • Honeypot usernames: anyone who tries admin (or names you choose) is blocked instantly.
    • CAPTCHA on login, registration and lost-password forms, with your choice of OOPSpam, Google reCAPTCHA v2/v3, hCaptcha, Cloudflare Turnstile (managed or invisible) or Friendly Captcha.
    • A JavaScript check that stops simple bots before they reach the login.
    • Custom login URL that hides wp-login.php.
    • IP allow list and block list, plus an emergency bypass constant (NAHNLS_BYPASS_IP) for wp-config.php.
    • Optional early blocking: a one-click must-use plugin that turns away locked-out IPs before WordPress loads.

    Two-factor authentication

    • Authenticator app (scan a QR code), email code or passkey, and users can combine methods.
    • Backup codes for every method.
    • Enforce mode: require 2FA for chosen roles.
    • Wrong codes are limited; a 2FA attempt is cancelled after 5 wrong codes and expires after 30 minutes.

    Passwordless sign-in

    • Passkeys: sign in with Face ID, Touch ID, Windows Hello, your phone or a security key.
    • Magic links: sign in with a single-use link sent by email.
    • Both respect lockouts, geo-blocking and 2FA.

    WooCommerce

    • Protection for My Account login, registration, lost password, checkout and order tracking.
    • A “Login & security” tab in My Account, where customers manage passkeys, 2FA and sign-in options without seeing wp-admin.
    • Customers complete 2FA on the My Account page, styled by your theme.
    • [nahnls_ account_ security] (added spaces so shortcode would not load) shortcode to show the same panel on any page.

    Access control

    • Disable XML-RPC.
    • Restrict roles to specific IP addresses or ranges (IPv4 and IPv6).
    • Login and logout redirects by role.
    • Signup email verification: new accounts are held until the email is confirmed.
    • REST API protection, including blocking username enumeration.
    • Idle-session timeout with a warning, and force-logout of all sessions.

    Geo-blocking and edge firewall

    • Block or allow countries using Cloudflare, Bunny.net and other CDN headers, with a free IP-lookup fallback.
    • Push blocks to the Bunny.net or Cloudflare firewall automatically, with automatic expiry.

    Insight

    • Event log with search, filters, date range and CSV export.
    • Analytics: daily chart, top IPs and usernames, event breakdown.
    • “When attacks happen” heatmap by weekday and hour.
    • Security Checklist with 24 checks, a score and one-click fixes.
    • Email alerts for logins, lockouts and new countries, plus a weekly digest.
    • Optional dashboard widget.

    Form integrations

    • Bricks Builder forms, SureForms and WordPress comments.

    For developers

    • Template tags, shortcodes, actions and filters, REST routes and a JavaScript API for passkeys, magic links, 2FA and CAPTCHA.
    • Run 2FA inside pop-up or slide-out login forms without a page reload.
    • CAPTCHA widgets that work in forms built by JavaScript.

    Design and languages

    • The Login & security panel and the 2FA screen support dark mode, right-to-left languages and your theme’s colours.
    • Fully translatable, and follows the WPML and Polylang language on the front end.

    Privacy

    • No tracking, and nothing is sent to us.
    • No scripts are loaded from CDNs; external services are only contacted when you turn them on.
    • Uninstalling removes all of the plugin’s data.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only