Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/basterrika/wp-login-activity/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Just a WordPress plugin that logs authentication attempts and provides a basic admin report under
Tools > Login activity.
Current functionality
- Logs successful and failed login attempts.
- Stores:
- sanitized username (
login) - request URL used for login (
login_url) - IP address (IPv4/IPv6, stored as text so SQL dumps stay portable)
- status (
successorerror) - timestamp (
log_date)
- sanitized username (
- Adds a lockout layer before authentication:
10failed attempts- in
30seconds - lockout for
300seconds (5 minutes)
- Admin listing screen:
- search by username
- filter by status
- filter by month/year
Installation
- Upload the plugin folder to
/wp-content/plugins/or install it from a zip inPlugins > Add New. - Activate
Login Activity. - Open
Tools > Login activityto view logs.
Multisite behavior
- On network activation, the log table is created for all existing sites.
- When a new site is created in a network, its log table is also created if the plugin is network-active.
Data storage
The plugin creates a table named:
- Single site:
{wp_prefix}login_activity - Multisite:
{blog_prefix}login_activityper site
Support
Open issues or feature requests at GitHub.