Log User IP on Login
Keep a clean, searchable audit trail of every successful login on your WordPress site.
See who logged in, from which IP, and when—instantly.
Why this plugin
- Security visibility: Quickly see who accessed your site and from where.
- Accountability: Maintain a reliable audit trail for compliance or internal reviews.
- Troubleshooting: Correlate login activity with support tickets or site issues.
- Lightweight: Minimal overhead—built on native WordPress database APIs.
Key Features
- Automatic logging: Username, IP address, and login time saved on every successful login.
- Instant log viewer: Dedicated Login Logs admin page with a fast username filter.
- Timezone aware: Displays times using your site’s timezone and date/time formats.
- Keyboard-friendly: Ctrl/Cmd + S submits forms in admin settings.
- Clean database structure: Creates a single table (
wp_login_logs
) on activation. - WordPress-native: Hooks into the
wp_login
action; no invasive code.
How it Works
On each successful login, the plugin writes a row to wp_login_logs
with:
- username – the account used
- ip_address – captured from
$_SERVER['REMOTE_ADDR']
- login_time – stored in UTC, displayed in your site’s timezone
View all entries in the Login Logs page of your WordPress admin, sorted newest-first. Filter by username with a single click.
Who it’s For
- Site owners who want simple, dependable login tracking.
- Agencies managing multiple client sites needing quick visibility.
- Security-minded teams who prefer lean, native solutions over bulky suites.
Requirements & Compatibility
- WordPress: Tested up to 6.7.1
- Dependency: Requires the
flwsecureupdates
plugin - Multisite: Works per-site (logs stored with each site’s DB prefix)
Installation
- Install and activate flwsecureupdates.
- Install and activate Log User IP on Login.
- That’s it—
wp_login_logs
is created automatically. - Go to Login Logs in your WordPress admin to view and filter entries.
Privacy & Compliance
- This plugin stores IP addresses, which may be considered personal data (e.g., GDPR). Update your Privacy Policy accordingly.
- No auto-purge: You control retention with database tools or your own workflow.
- CDN/proxies:
$_SERVER['REMOTE_ADDR']
may reflect a proxy IP. Configure real-IP headers if you need the true client address.
FAQs
Does it log failed logins?
No—only successful logins.
Where are logs stored?
In the wp_login_logs
table with username, IP, and login time.
Can I export the logs?
Not built-in. Use your database tools or an export plugin.
Will it slow down logins?
No. Inserts are lightweight and optimized.
Which timezone is used?
Stored in UTC, displayed with your site’s timezone and date/time format.
Can I filter by date or IP?
UI filters by username. Use custom queries or exports for advanced filtering.
Changelog & Support
- See
changelog.txt
in the plugin package (current version: 1.6.1). - Need help or have a feature request? Contact Frost Line Works.
Call to Action
Get instant visibility into your WordPress logins.
Install Log User IP on Login today and keep your audit trail clear, simple, and dependable.