A comprehensive WordPress plugin for tracking and monitoring all user login activities with advanced features including IP geolocation, role detection, and privilege tracking.
⬇️ Click here to download the latest version (ZIP)
You can also install it manually using Git or upload the ZIP through the WordPress admin panel.
- Complete User Tracking – Monitors all users, not just administrators
- Login Event Types – Tracks successful logins, failed attempts, and logouts
- User Role Detection – Records user roles and permission levels
- Privilege Tracking – Identifies users with administrative capabilities
- IP Geolocation – Automatically detects country based on IP address
- Browser Detection – Captures user agent information
- Path Tracking – Records the URL path used for login
- SQL Injection Protection – Uses WordPress prepared statements
- XSS Prevention – Full input/output sanitization and escaping
- Direct Access Protection – Blocks unauthorized file access via
.htaccessand PHP checks - Secure IP Detection – Validates and sanitizes IP addresses from headers
- Permission Checks – Log access restricted to administrators only
- Indexed Database – Optimized table structure for fast queries on large datasets
- Automatic Cleanup – Keeps only the last 5,000 logs to prevent bloat
- Caching System – Caches geolocation results for 7 days to reduce API load
- Pagination – Displays 50 logs per page for smooth navigation
- Singleton Pattern – Memory-efficient architecture
- Statistics Dashboard – Visual overview of login metrics (success/failure rates, top countries, etc.)
- Advanced Filtering – Filter logs by action type, user role, privileges, or search by username/IP
- Color-Coded Actions – Clear visual indicators: green (success), red (failed), gray (logout)
- Responsive Design – Fully functional on desktop, tablet, and mobile
- Export Ready – Clean, structured data format suitable for CSV export or external analysis
- Download the plugin ZIP
- Create a folder named
wp-login-loggerin/wp-content/plugins/ - Upload all files into the folder
- Activate the plugin via WordPress Admin → Plugins
- Go to WordPress Admin → Plugins → Add New → Upload Plugin
- Upload the downloaded ZIP file
- Click "Install Now", then "Activate"
cd /path/to/wordpress/wp-content/plugins/
git clone https://github.com/Yamiru/WP-login-logger.git wp-login-logger