Docs

What data Nahnu Login Shield stores

7 min readUpdated November 19, 2026

Nahnu Login Shield keeps its data in your own WordPress database and, in one optional case, in a few small files on your server. It has no account system of its own and does not send its logs to us. This topic lists what is stored, where, for how long, and how to remove it.

Which outside services the plugin can contact is covered separately in External services Nahnu Login Shield can contact.

At a glance#

WhatWhereHow long
Event log (IP, username, event, short detail, time)A database table on your site30 days by default, adjustable
Plugin settingsOne settings entry in the databaseUntil you delete the plugin
Active lockoutsA database table on your siteUntil the lockout ends (expired rows are cleared daily)
Two-factor, passkey and sign-in dataStored against each user accountUntil the user or an admin removes it, or the plugin is deleted
Temporary counters, tokens and cachesA small database table and short-lived database entriesMinutes to a few days
One small cookie after a failed loginThe visitor’s browser10 minutes
Early-block rate-limit and lockout files (only if you installed the early-block file)Your uploads folderAbout 15 minutes for rate-limit files; lockout files until the lockout ends

The event log#

The log is a table in your database called nahnls_log, with your site’s table prefix in front (for example wp_nahnls_log). Each row holds:

  • IP address of the visitor
  • Username that was used or tried
  • Event type (for example a failed login, a successful login, a lockout, a block by country, or a failed CAPTCHA)
  • Detail, a short note about the event (up to 120 characters)
  • Date and time

You can read, search and filter these rows on the Log tab, and download them as a CSV file. Nothing else is recorded in this table: no passwords, no cookies, no browser details.

Be aware of the username field. Shield records the text that was typed into the username box. Visitors sometimes mistype, and now and then people type something else into that box. That text is stored as typed.

How long it is kept. The log is cleaned up once a day. Two limits apply, and whichever is reached first removes the oldest rows:

LimitDefaultRange
Keep entries for30 days1 to 365 days
Maximum number of rows50,0001,000 to 500,000

You can change both on the Log tab, and you can clear the whole log there at any time. See Log retention and data removal.

Your settings#

Everything you configure is saved as one settings entry in the database (nahnls_settings). That includes your lockout limits, blocklist and whitelist, honeypot usernames, geo-blocking choices, role rules, redirects, email wording, and the keys for services you turn on (CAPTCHA site and secret keys, API keys for geo lookup, and edge blocking keys unless you set them in wp-config.php).

These keys are saved in your database like other plugin settings. Anyone with access to your database or a backup of it can read them.

Lockout records#

Active IP lockouts are kept in their own database table, nahnls_lockouts (with your table prefix), one row per locked IP. Each row holds the IP, when the lockout ends, the reason, the username that was tried and a short note. Expired rows are removed once a day. Before version 1.0.18 lockouts were one database entry; they are moved to the table automatically when you update. Username lockouts and counters for failed attempts are short-lived (see “Temporary data” below). Edge blocks you push to Bunny.net or Cloudflare are also remembered on your site (nahnls_edge_blocks).

Data stored on user accounts#

Some features store information against a user account, in the standard WordPress user profile data table. All of it begins with _nahnls_.

FeatureWhat is stored
Two-factor authenticationWhether it’s on, the method chosen, the authenticator secret, a hashed set of backup codes and the last code used (to stop a code being used twice)
PasskeysFor each passkey: its ID, public key, a name, the time it was added and last used, and how it connects. A passkey never stores your fingerprint, face or PIN. Those stay on the device.
Magic linksWhether the user allows email login links, and a pending link while one is waiting to be used
Signup verificationA confirmation token, its expiry, and a “pending” mark until the person confirms their email address
Idle timeoutThe time the user was last active, updated at most about once a minute
RemindersWhether the user dismissed the “set up an authenticator app” tip

The email address of a user is not copied. Shield reads it from the WordPress account when it needs to send a code or link.

Temporary data#

Shield stores short-lived items in the database. Failed-attempt counters and country lookups are kept in a small table of their own, nahnls_counters (with your table prefix). Each row is a hashed key, a number and an expiry time, and holds no IP address or username in readable form. The other items use WordPress’s temporary data (transients). All of them disappear on their own:

  • Failed-attempt counters, per IP and per username, for the length of your attempt window, and username lockout markers for the length of the lockout.
  • CAPTCHA and verification tokens issued by the plugin’s own widget, valid for about 20 minutes, and one-time use markers.
  • Country lookups, per IP, so the lookup service isn’t asked again and again. The length is the one you set on the Geo tab.
  • Two-factor and passkey challenges while a sign-in is in progress.
  • The Analytics cache, a summary of the log, for five minutes.
  • The “new login country” memory, if you use the new-country alert.

If your site uses an external object cache (Redis, Memcached), the transient items may live there instead of in the database.

After a failed login, if you chose to show the CAPTCHA only after a failure, Shield sets one cookie called nahnls_show_captcha. It lasts 10 minutes, applies to the login page only, and contains no personal data. It is set only on the failed-login path.

If you use a cookie consent plugin, list this cookie as a necessary security cookie. See External services Nahnu Login Shield can contact for other items to list.

Files on your server#

Shield writes files only in these cases:

  • The early-block file. If you click Install early-block mu-plugin on the General tab, Shield copies one PHP file into your must-use plugins folder (usually wp-content/mu-plugins/). It’s removed when you click Remove, or when the plugin is deactivated or deleted.
  • Rate-limit counter files. While the early-block file is installed, it keeps tiny text files, one per IP, in wp-content/uploads/nahnu-login-shield/ratelimit/. They hold only a count and a time, are protected from the web, and are cleaned up automatically (older than about 15 minutes). The folder is deleted when the plugin is uninstalled.
  • Lockout marker files. While the early-block file is installed, Shield also keeps one tiny file per locked-out IP, and for 15 minutes per IP that was just refused by a country block, in wp-content/uploads/nahnu-login-shield/blocks/, so a locked IP can be turned away without a database query. Each file holds only an expiry time and a reason, and its name is a hash of the IP. They are removed when the lockout ends or is unlocked, and the folder is deleted when the plugin is uninstalled.

If you don’t install the early-block file, no files are written.

Secrets the plugin creates#

Shield generates a private signing secret on your site (nahnls_token_secret) to sign its own verification tokens. A token for the MainWP connection (nahnls_mainwp_token) is also created on every site, whether or not you use MainWP. Neither is shared outside your site.

What it does not store#

  • Passwords. Shield never saves a password. It does not store passwords from failed logins either. The one exception is the case described above, where someone types text into the username box.
  • Payment details, or the content of forms it protects. For protected forms, Shield checks the CAPTCHA and security fields, and leaves the form’s own data to the form plugin.
  • Fingerprints, faces or PINs used with passkeys.
  • Tracking or advertising data. There is no analytics or telemetry sent to Nahnu.

Who can see it#

  • The Log, Analytics and Lockout tabs are visible to users who can manage plugin settings (administrators).
  • The weekly digest and login alert emails go to the address you set. See Login notifications and the weekly digest.
  • Anyone with access to your database, backups or hosting account can read the stored data.

Removing the data#

WhatHow
The event logLog tab → clear the log, or shorten the retention
A single user’s 2FA, passkeys and sign-in dataThe user’s Login & security page, or an administrator resetting it
Active lockoutsLockout tab → unlock
Everything the plugin storesDelete the plugin from the Plugins screen. See Uninstalling and removing your data.

Deactivating the plugin keeps your data. Deleting it removes the settings, secrets, edge block records, the log, lockouts and counters tables, per-user plugin data, temporary entries and the early-block file and its folders.

Was this helpful?

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