Login notifications and the weekly digest
Shield can email you when something happens at your login, and send a weekly summary. Everything here is off by default. Turn on only what you will actually read, so the important alerts don’t get lost in noise.
Where to find it
Go to Settings → Login Shield → General tab, then scroll to three sections:
- Admin notifications (“Email alerts for security events”)
- Login notifications (“Email alerts sent automatically on specific login events”)
- Weekly digest
Click Save general settings at the bottom of the tab after any change.

Before you start: check that your site can send email
All of these alerts use WordPress’s normal email system. If your site’s email is unreliable, alerts won’t arrive. Install an SMTP plugin or a mail service and send a test message first. The weekly digest and the other alerts have no “send test” button.
Admin notifications
These are short plain-text emails about security events. Set Alert email first. You can enter more than one address, separated by commas. Nothing is sent if it’s blank.
Under Notify on, tick the events you want:
| Option | When it sends |
|---|---|
| IP lockout triggered | An IP address or a username is locked out |
| Honeypot username attempt | Someone tries a honeypot username |
| Geo block triggered | A visitor is turned away because of their country |
| OOPSpam block | OOPSpam rejects an attempt |
| Successful login | Every successful login |
Each email has the subject “[Your site] Nahnu Login Shield: IP Lockout” (or the matching event name) and lists the event, the IP address, the username, the site and the time.
Be careful with two of these:
- Successful login emails you every time anyone logs in. Use it only on a small site, or briefly while you investigate.
- Lockout and honeypot alerts are sent once per lockout. They are queued and go out in batches, usually within a minute. Geo block alerts on the login page are limited to one per IP per minute. During a large attack you can receive many emails. Most people leave these off and rely on the weekly digest and the Log tab.
Login notifications
These three alerts are sent automatically each time someone logs in.
Notify user on login. Emails the person who just logged in, with the time, IP address and device. It lets people spot a login they didn’t make. The email says “A new login to your account was just detected” and has a Secure my account button that opens their profile page. It’s sent to every user who logs in, whatever their role. The email says “new login” every time, not just for new devices.
Alert on admin login. Emails you whenever an account that can manage the site (an administrator) logs in. It shows the username, time, IP address and device, with a View security log button. Enter the recipients in the box underneath, separated by commas.
New country alert. Emails you the first time a user logs in from a country they haven’t logged in from before. It shows the country code, username, IP address and time, with a Review security log button. It needs Shield to know the visitor’s country, so set up Geo first (see “How geo-blocking works” and “Geo-blocking without a CDN”). It goes to the Alert email address.
For the new country alert:
- The first time each user logs in after you turn the alert on, it counts as a new country. Expect one email per active user at the start.
- Shield remembers up to 50 countries per user.
- If Shield can’t work out the country, no email is sent.
The weekly digest
The digest is a summary of the last seven days, sent once a week.
- Turn on Send weekly digest.
- Enter one or more addresses in Digest recipient.
- Click Save general settings.
What’s in the email
- Four totals: failed attempts, lockouts, honeypot hits and logins.
- The five IP addresses with the most attacks.
- The five most targeted usernames.
- The number of IPs locked out right now.
- View analytics and View log buttons.
It’s sent by WordPress’s scheduled-task system (WP-Cron), so it needs traffic on your site, or a real server cron job, to run on time. The first digest is scheduled as soon as you turn the option on and WP-Cron next runs, then it repeats weekly. Turning the option off cancels it.
What the emails look like
The login notifications and the digest have Shield’s own design: a dark header with your site name and a “Nahnu Shield” tag, and a footer reading “Sent by Nahnu Login Shield on [your site]” with a link to the plugin settings. The Admin notifications emails are plain text. These emails don’t use your Email branding settings, and you can’t edit their wording in the plugin.
Recommended setup
- Small site, one admin: turn on Alert on admin login, New country alert and the weekly digest.
- Site with customers: leave Notify user on login off unless you want customers to get an email at every login.
- Site under attack: turn on IP lockout alerts for a day or two, then turn them off.
Troubleshooting
- No emails arrive. Check your spam folder, test that your site can send email, and confirm the Alert email or recipient addresses are valid and that you clicked Save.
- The admin login alert or the digest never arrives. Check the recipient box and your site’s email delivery. If the box is blank, the email goes to the Alert email address, or to the site’s admin email when that is blank too.
- No weekly digest. Check that WP-Cron isn’t disabled. If
DISABLE_WP_CRONis set, you need a real cron job. - Too many emails. Turn off the Successful login and Notify user on login options.
- The new country alert never comes. Geo isn’t set up, or the user has already logged in from that country.
- I received a “new login” email for my own login. That is expected. The email goes out on every login.
Was this helpful?
Thanks for your feedback!
✓ Feedback received. Thank you!