📥 My Awesome Plugin
This plugin helps you automate tasks and improve web performance.
⬇️ Download Plugin ZIP💌 Subscribe to Updates
Free Plugin for login attempt tracker
This free plugin tracks failed login attempts, provides a shortcode to display the count, and includes an admin page to view details.
Installation and Setup Instructions
- Download the Plugin:
- Copy the PHP code above into a file named wp-login-attempt-tracker.php.
- Place this file in a folder named wp-login-attempt-tracker.
- Already zipped just downloaded and following the guidelines
- Upload to WordPress:
- Zip the wp-login-attempt-tracker folder.
- In your WordPress admin dashboard, go to Plugins > Add New > Upload Plugin.
- Upload the zipped folder and click Install Now.
- Activate the Plugin:
- After installation, click Activate Plugin.
- Display Failed Login Count:
- Use the shortcode [failed_login_count] in any post, page, or widget to display the number of failed login attempts.
- Example: Add [failed_login_count] to a page via the WordPress editor to show “Failed Login Attempts: X”.
- View Failed Login Details:
- In the WordPress admin dashboard, a new menu item called Login Attempts will appear.
- Click it to view a table of the last 50 failed login attempts, including date, time, and IP address.
Features
- Tracks Failed Logins: Records each failed login attempt with timestamp and IP address.
- Displays Count: Use the [failed_login_count] shortcode to show the total number of failed attempts in a styled box.
- Admin Dashboard: View detailed failed login attempts in the WordPress admin area.
- Easy Setup: No coding required; just install, activate, and use the shortcode.
- Single File: All functionality, including styles, is contained in one PHP file for simplicity.
- Secure: Uses WordPress best practices for database interactions and data sanitization.
Notes
- The plugin creates a database table (wp_failed_logins) to store failed login data.
- The shortcode displays a styled box with the failed login count, using inline CSS for simplicity.
- Only administrators can view the detailed failed login attempts in the admin dashboard.
- The plugin is lightweight and compatible with WordPress 5.0 and above.