Multisite
Nahnu Login Shield is built for single WordPress sites. It has not been tested on WordPress Multisite, and network activation is not recommended. This topic explains what that means in practice, what is safe to do, and what to watch for if you try it anyway.
What we support#
| Setup | Status |
|---|---|
| A single WordPress site | Supported. This is what the plugin is built and tested for. |
| Multisite, plugin activated on individual sites | Not tested. It may work, but it is not supported. |
| Multisite, Network Activate | Not recommended. |
If you run Multisite, please test on a staging copy first, and keep your recovery options ready (see I locked myself out).
Why network activation isn’t recommended#
The plugin has no network-level settings screen and no Network Admin menu. It was written to work one site at a time, so a few things behave differently from what you might expect on a network:
- Settings are per site. Every site on the network has its own copy of the settings: lockout limits, blocklist, whitelist, CAPTCHA provider and keys, geo-blocking, 2FA rules, and so on. Changing them on one site does not change the others. There is no way to set them once for the whole network.
- Each site has its own log and lockout list. The event log is stored per site, and so are the lockouts. An attacker locked out on one site is not locked out on the others.
- Setup runs on the site where you activate it. Network activation runs the plugin’s setup once, not for every site on the network, and the plugin does not set itself up on sites created later. From 1.0.18 each site creates its tables on its first page load. The daily clean-up task is scheduled only where the plugin was activated, so on other sites the log is not trimmed until you deactivate and activate the plugin there.
- Users belong to the whole network, but plugin data per site. Two-factor settings, passkeys and magic-link data are stored against the user account, so a user’s 2FA setup and passkeys follow them across the network, while the rules (which roles need 2FA, and so on) are set per site. Plan for this before you turn 2FA on for a role.
- The early-block mu-plugin is shared. There is only one must-use plugins folder for the whole network, so the early-block file is a single file used by every site. It reads each site’s own settings, but installing or removing it affects all sites at once. Deactivating the plugin on one site removes the file for everyone.
- Force logout reaches the whole network. Users are shared, so the Force logout button on one site ends sessions for those users on every site.
- Passkeys are tied to a domain name. A passkey works only on the domain it was created on. If your subsites use different domains or subdomains, a passkey made on one won’t work on another, unless you set a shared passkey domain (see Passkeys).
- Uninstalling cleans every site. Deleting the plugin runs a clean-up that visits each site on the network and removes its settings, log table and stored data. If you delete the plugin on a network, all sites lose their data. See Uninstalling and removing your data.
If you want to use it on a network#
The safest approach:
- Activate it on individual sites, not network-wide. In the Network Admin plugin list, leave it as Activate (not Network Activate), then activate it from each site’s own Plugins screen.
- Configure each site separately under Settings → Login Shield. Use the same values for sites that should behave alike.
- Be careful with the early-block mu-plugin. Install it only if every site on the network should use it, and remember that turning it off on one site removes it for all.
- Whitelist your own IP on every site, or define
NAHNLS_BYPASS_IPinwp-config.php. That constant is network-wide because it is a single file for the whole installation. - Decide on passkeys before rolling out. If sites use different domains, check Passkeys for the shared domain setting.
- Test a lockout on a staging copy before you rely on it for the live network.
Things that may go wrong#
| Symptom | Likely cause | What to do |
|---|---|---|
| The log on a subsite keeps growing and old entries are not removed | The daily clean-up task was never scheduled on that site | Deactivate and activate the plugin on that site |
| A setting you changed on one site is not on another | Settings are per site | Change it on each site |
| Everyone is signed out on every site | Force logout acts on shared users | Use it with care on a network |
| The early-block file disappears | The plugin was deactivated or deleted on one site | Reinstall it from a site where the plugin is active |
| A passkey doesn’t work on another subsite | Passkeys are tied to one domain | See Passkeys; use a shared passkey domain or enroll separately |
| Lockouts on a subsite hit users on another | They shouldn’t: lockouts are per site. Check Lockouts are keyed to the wrong IP if a CDN is involved | Check IP detection |
Reporting problems#
If you run the plugin on a network and find a problem, please tell us. Use the page on the website and include your WordPress version, how many sites are on the network, whether sites use subdomains, subfolders or mapped domains, and how the plugin was activated. Multisite support is decided by what people ask for. See Protect any other form for how to request an integration or feature.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!