Description
L2S Login Monitor watches everything around the login of your WordPress site. Everything that protects your site is in this free plugin.
Login log
- Every attempt (success, failure, blocked) through the login form, WooCommerce, XML-RPC, the REST API and application passwords, with IP address, device, entry point, risk score and the decision taken.
- Logouts, password reset requests and resets, new accounts and role changes, refused redirects, settings changes, blocks and closed sessions are logged too.
- Filters, timeline per user and per IP, CSV export protected against formula injection.
- Passwords and verification codes are never recorded. An unknown username typed at login is shortened and marked “unknown”, in case a password was typed in that field.
Brute-force protection
- Counters per IP, per account and per IP + account, with progressive block durations.
- Blocking targets the IP + account pair, so an attacker cannot lock your administrator account.
- Whitelist and blacklist of addresses and CIDR ranges, manual blocks and unblocks.
- Limit on password reset requests.
Suspicious logins
- Each successful login gets a risk score from 0 to 100 with the list of signals that explain it: new device, IP seen in recent failures, success after a series of failures, unusual hour for this user, anonymizing network (ranges you declare). Administrators and editors get a higher score.
- The score never blocks on its own: it raises alerts, and can ask L2S Login OTP 2FA for a verification code.
Sessions and phishing
- Active sessions per user, close one or all of them. An administrator cannot close another administrator’s session, and a user whose session is closed by someone else is told by e-mail.
- Session protection: a login cookie used from another browser and another network (stolen cookie, phishing page in front of your site) closes the session and alerts you. Strict binding to the IP address is optional.
- “This was not me”: after a login from a new device or a password reset, the user gets an e-mail with a link that closes every session and asks for a new password.
- Password reset links are protected against a forged Host header.
- Safe redirects: no open redirect after login, logout or lost password; you can add trusted domains.
- Username scanning: identical error messages,
?author=Nscanning blocked, user list hidden from the REST API. - XML-RPC:
system.multicallblocked, or XML-RPC disabled.
Alerts
- E-mail alerts for attacks, suspicious logins, reused sessions, “this was not me” reports, new administrator accounts and deactivation of the plugin.
Administration
- Overview with the last 24 hours, latest events and a protection check (mode, HTTPS, XML-RPC, two-factor authentication).
- Screens: Overview, Login log, Active sessions, Blocks and lists, Settings, Setup assistant, Documentation.
- “My sessions” section in each user’s profile.
- WP-CLI:
wp l2s-login-monitor log | block | unblock | blocks | sessions. - Observation mode by default: test before you block. Your IP is whitelisted at activation, and a four-step setup assistant guides the first steps.
Privacy
- Data stays on your site. No external service is contacted.
- The log is kept 90 days by default (7 to 90 days), then deleted every day.
- Optional IP anonymization, WordPress personal data export and erasure, suggested privacy policy text.
Languages
English, ready for translation. French, Spanish and German translations are prepared and will be shared on translate.wordpress.org.
With L2S Login OTP 2FA
Works alone, and even better with L2S Login OTP 2FA (two-factor authentication by e-mail, SMS, authenticator app and passkeys): verification results go to the log, and a code can be required when a login is risky.
Pro add-on (planned)
A separate L2S Login Monitor Pro add-on is planned for: alerts by SMS and Telegram with a channel choice for each kind of alert, geolocation and blocking by country, webhooks, statistics and reports, and log retention up to 365 days. This free plugin contains no locked feature and no license check.
External services
L2S Login Monitor does not contact any external service.
Screenshots






Installation
- Upload the
l2s-login-monitorfolder to/wp-content/plugins/, or install it from the Plugins screen. - Activate the plugin. It starts in observation mode, and a notice leads you to the setup assistant.
- Check the alert e-mail and the whitelist, then switch to blocking mode.
Locked out? Add define( 'L2SLM_DISABLE', true ); to wp-config.php.
FAQ
-
My site is behind Cloudflare or a load balancer
-
Declare its addresses in Settings > Trusted proxies and choose the right header. Forwarded IP headers are ignored otherwise, so they cannot be faked.
-
How long is the log kept?
-
90 days by default. You can choose from 7 to 90 days in Settings. Older lines are deleted every day. The Pro add-on will allow up to 365 days.
-
Can I receive alerts by SMS?
-
Not in the free plugin: alerts are sent by e-mail. SMS and Telegram alerts are planned for the Pro add-on, where you will choose which kinds of alert go to which channel. SMS will go through the SMS provider set up in L2S Login OTP 2FA (Twilio, Vonage or TunisieSMS).
-
Does it show the country of each login?
-
Not in the free plugin, which ships no geolocation database. The country, blocking by country and the location signals (new country, impossible travel) are part of the Pro add-on.
-
Will it block my real users?
-
It starts in observation mode: attacks are logged but nobody is blocked until you switch to blocking mode. A change of IP address alone (mobile network, Wi-Fi, VPN) never closes a session.
-
Are passwords stored?
-
Never. Neither passwords nor verification codes are written to the log.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“L2S Login Monitor” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “L2S Login Monitor” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.0.0
- Initial release.
