Skip to content
Sign in
Limit Login Attempts (Spam Protection) icon

Limit Login Attempts (Spam Protection)

Limit rate of login attempts, including by way of cookies, for each IP.

Not scanned yet WordPress plugin 200 installs

Install in

No install steps yet

Follow the steps on the source page.

Limit the number of login attempts possible both through normal login as well as using auth cookies.

By default WordPress allows unlimited login attempts either through the login page or by sending special cookies. This allows passwords (or hashes) to be brute-force cracked with relative ease.

Limit Login Attempts blocks an Internet address from making further attempts after a specified limit on retries is reached, making a brute-force attack difficult or impossible.

✨ Engineered for Reliability, Speed, and Real-World Defense

WordPress login pages are targeted around the clock by automated bots, credential-stuffing scripts, and XML-RPC floods. Limit Login Attempts (Spam Protection) transforms your authentication gateway into a server-enforced, high-performance defense layer — built with clean native WordPress standards, zero front-end bloat, and safeguards designed so you stay in complete control.

  • 🛡️ True Server-Side Enforcement — Enforces lockouts and IP rules directly on WordPress’s authenticate hook, stopping automated POST requests, XML-RPC brute-force floods, REST API attempts, and WooCommerce login bypasses — not merely hiding the form in the browser.
  • 🔐 Cryptographic Token Security — Uses cryptographically secure random tokens (random_bytes()), SHA-256 hashed database and transient storage, automatic 24-hour expiration, and timing-safe hash_equals() verification so unlock and emergency bypass links can never be guessed or abused.
  • 🧯 Built-In Self-Lockout Safeguards — Pre-save detection warns and requests explicit confirmation before any IP range rule blocks your own connection, paired with a one-click “Use my IP” allowlist shortcut and emergency unlock links delivered straight to your admin inbox.
  • ⚡ Lightweight & Indexed for High Traffic — Powered by composite MySQL database indexes, transient-cached GeoIP lookups, locally hosted country flag assets, and lightweight vanilla JavaScript on wp-login.php (zero jQuery overhead). Strong protection without slowing down your site.
  • 🌍 Privacy-First & GDPR-Conscious — Zero third-party tracking scripts, locally stored flag icons, admin-only (manage_options) visibility for all security logs and dashboard widgets, and no plain-text password storage.
  • 🎨 Modern Native WordPress Experience — Clean card-based interface, unified tabbed navigation, live Protection Active status indicator, collapsible third-party Notifications Tray, accessible <dialog> confirmation modals, and full RTL (Right-to-Left) support.

🚀 Core Security Features

🔒 Smart Brute-Force & Lockout Engine

  • ✅ Customizable Retry & Lockout Rules — Set the exact number of allowed retries, lockout window duration (in minutes), and custom redirect URL for denied visitors.
  • ✅ Real-Time Login Feedback — Clearly informs legitimate users of remaining login attempts or exact minutes until lockout expiration with accessible, RTL-ready notices.
  • ✅ Instant One-Click AJAX Unlock — Lift an active lockout immediately from the Lockout Log (resetting the IP’s failed counter automatically) or via a single-use cryptographic link in your alert email.
  • ✅ Allowlist Priority — Trusted IPs bypass failed-attempt counting and lockouts completely so accidental typos never lock out your team.
  • ✅ Safe Protection Pause — Temporarily pause retry lockouts anytime while keeping explicit IP deny lists strictly enforced.

🌐 Precision IPv4 & IPv6 Access Control

  • ✅ Full IPv4 & IPv6 Support — Block (Deny List) or exclude (Allowlist) single IP addresses or complete IP ranges using binary inet_pton() matching — accurate across IPv4, IPv6, and 32-bit/64-bit servers.
  • ✅ One-Click “Use my IP” Allowlisting — Instantly view your current IP address, check whether it is already allowlisted, and prefill it into the Allowlist with a single click.
  • ✅ Anti-Spoofing IP Detection — Reads REMOTE_ADDR by default to prevent forged header bypasses, with a dedicated wpb_get_ip developer filter for reverse proxies and CDNs.

Chasing automated attackers one IP at a time quickly becomes exhausting when botnets switch addresses every few seconds. When most unwanted traffic comes from regions your business doesn’t serve, shutting out entire high-risk countries with GeoIP rules stops those waves before a single retry ever reaches your login form.

📊 Real-Time Security Dashboard, Widgets & Searchable Logs

  • ✅ At-a-Glance Security KPI Cards — Monitor Total & Today’s Failed Attempts, Lockouts, Unique Attacking IPs, Originating Countries, and Last Attempt timestamps in real time.
  • ✅ 4 Actionable Reports & Admin Dashboard Widgets — Track Top 10 Failed Logins (highlighting real user accounts and Administrator role badges), Top 10 Blocked IPs, Top 10 Blocked Countries, and Recently Blocked Attacks with proportional visual bars.
  • ✅ Origin Intelligence Breakdown — See “Where attacks on your site come from” ranked by country with visual intensity bars based on live site logs.
  • ✅ Fast Server-Side Searchable Logs — Search and sort Failed Attempts and Lockout Logs instantly by username, IP address, country, or city — complete with live lockout countdown tags (Locked · X mins left / Expired), relative timestamps with full-date tooltips, and direct DB-IP lookup links.

📧 Security Alerts & Ecosystem Compatibility

  • ✅ Detailed HTML Security Email Alerts — Receive instant lockout notifications including date/time, country flag, IP address with lookup link, detected device type, targeted username, direct log filter link, and one-click cryptographic unlock link.
  • ✅ Broad WordPress Ecosystem Compatibility — Works seamlessly alongside WooCommerce login forms, Wordfence, Sucuri, Google reCAPTCHA, Captcha Plus, SMTP mailers, and modern MySQL 8+ (ONLY_FULL_GROUP_BY) environments.
  • ✅ Clean Edition Coexistence — Shares the same database architecture with the PRO edition and handles mutual deactivation automatically to prevent plugin conflicts.

🏆 Complete Perimeter Defense (PRO Edition)

A temporary lockout slows a bot down — it rarely makes it go away. Once the timer expires, the same attacker can return immediately, rotate to a fresh proxy IP, or quietly test leaked credentials against an administrator account while you are away from your dashboard. When your site, WooCommerce store, or client portfolio needs more than rate-limiting, Limit Login Attempts (Spam Protection) PRO closes those exact gaps on the same hardened foundation:

  • 🗺️ GeoIP Country Blocking & “Allow-Only” Lockdown — Stop fighting rotating IPs one by one. Block entire high-risk regions in a single click, or lock down your login page globally while allowlisting only the countries where your team operates — complete with pre-save self-lockout protection and one-click “Use my country” allowlisting.
  • 🔥 Interactive World Threat Heat Map — Replace guesswork with instant clarity through an interactive SVG world map visualizing live blocked and failed attempt volumes across every country.
  • 🔍 Privacy-Controlled Password Auditing — A username log alone never tells you how close an attacker actually got. Optionally inspect partially masked passwords from failed attempts (disabled by default, with clear privacy guidance) so you can tell blind dictionary noise from a leaked password before an account is compromised.
  • 📱 Mobile Companion App & Hardened REST API — Stay ahead of attacks even when you are away from your computer. Monitor live statistics, threat maps, and logs — and control IP or country rules from your phone — via instant QR-code pairing, connected-device management, and timing-safe API key rotation (Companion APK).
  • 🔄 Seamless Zero-Friction Continuity — Uses the exact same database tables, security architecture, and native interface so every existing setting, IP rule, and historical log carries over intact without reconfiguration.

If recurring attack waves, rotating proxy botnets, or login blind spots are costing you peace of mind, see how the PRO edition completes your WordPress login perimeter.

🎬 Video Walkthroughs

Overview

Plugin Settings and Reports

Written by Joobi from the project's own listing. See the source page

anti-spamfirewallLogin Attemptsprotectionsecurity
28 Nov 2026
Version 5.8 released. Not scanned yet.

5.8

  • 🛡️ Security: Upgraded unlock and emergency bypass tokens to store SHA-256 hashes exclusively (in WPLFLA_log_block_ip and 24-hour expiring transients) with timing-safe hash_equals() verification, plus an automatic one-time migration (WPLFLA_migrate_unlock_tokens) that purges legacy plain-text tokens.
  • 🛡️ Security: Restricted all 4 WordPress Dashboard security widgets to administrators (manage_options) so attacker IPs and targeted usernames are never exposed to non-admin roles.
  • 🛡️ Security: Ensured explicit IP and country deny lists remain strictly enforced at both login_init and the authenticate filter even when retry lockouts are paused, while allowlisted IPs cleanly bypass attempt counting and lockouts.
  • 🛡️ Security: Added automatic skipping of private/reserved IP ranges during GeoIP lookups and avoided external lookups whenever no country rules exist.
  • ✨ New Feature: Completely redesigned the admin experience with a modern, native, RTL-ready WordPress card UI — featuring a branded header with live Protection Active / Lockouts Paused badge, unified tabbed navigation, card-based Settings with unit suffixes, and a collapsible third-party Notifications Tray.
  • ✨ New Feature: Added real-time At-a-Glance Security KPI Cards (Failed Attempts, Lockouts, Attacking IPs, Last Attempt) above the Statistics reports, plus proportional magnitude bars, user role badges, and relative timestamps with full-date tooltips.
  • ✨ New Feature: Added One-Click AJAX IP Unlock, live lockout countdown badges (Locked · X mins left / Expired), and pre-filtered ?ip= deep-linking directly in the Lockout Log.
  • ✨ New Feature: Added Self-Lockout Prevention Guard when adding a Deny List IP range covering your current IP, one-click “Use my IP” allowlist button with live Allowlisted badge, and optional “End IP” for effortless single-IP entry.
  • ✨ New Feature: Added “Where attacks on your site come from” live country breakdown and transparent management/removal for any active PRO country rules.
  • ✨ New Feature: Added accessible native <dialog> confirmation modals, live button progress states (Saving…, Unlocking…, Clearing…), smart DataTables empty states, and automatic removable_query_args URL cleanup to prevent repeat actions on page refresh.
  • ✨ New Feature: Added automatic Free/PRO mutual deactivation with an informative admin notice (including WordPress Multisite support) to ensure conflict-free edition switching.
  • ⚡ Enhancement: Replaced login-page jQuery dependency with lightweight vanilla JavaScript and clean RTL-ready notices using logical CSS properties and ARIA alert/status roles.
  • 🔧 Bug Fix: Fixed partial settings save feedback when individual fields fail validation, preserved case-sensitive active tab slug detection, and improved error messages for expired AJAX sessions and network failures.

5.7

  • Security: Enforced server-side login lockout via the authenticate filter (prevents direct POST, XML-RPC, and REST API bypasses).
  • Security: Replaced predictable md5(id) unlock links with cryptographically random 64-character unlock_token values and hash_equals() verification.
  • Security: Removed unauthenticated wp_ajax_nopriv_* handlers from admin endpoints and enforced capability (manage_options) and nonce (check_ajax_referer / check_admin_referer) checks across logs, IP range management, and clear/delete actions.
  • Security: Migrated remaining SQL queries to $wpdb->prepare(), whitelisted sortable columns, escaped dynamic HTML/email outputs, and added exit; after wp_redirect().
  • Security: Prevented IP spoofing via untrusted proxy headers in GeoIP lookups and stopped storing masked passwords in the free lockout log.
  • Bug Fix: Fixed self-deactivation bug during plugin activation in failed.php, fixed plugin_row_meta and Settings action link URLs, and fixed wrong table count query in Lockout Log.
  • Bug Fix: Fixed immediate lockout and email notification on reaching max allowed retries, fixed remaining attempts calculation, and resolved undefined variables/methods in menu.php and login.php.
  • Bug Fix: Fixed DataTables default sorting across translated sites, fixed settings sanitization/validation in setting.php, fixed admin CSS enqueueing on all plugin pages, and closed unclosed HTML container in countries.php.
  • Enhancement: Added full IPv6 support (varchar(45) columns and inet_pton() range matching), database indexes for faster lookups, GeoIP transient caching, and MySQL ONLY_FULL_GROUP_BY compatibility in dashboard widgets.

5.6

Security Bug fixing – part 2

5.5

Security Bug fixing

5.4

Security Bug fixing

5.3

Bug fixing in log report

5.2

Checking with wordpress version 6.2

5.1

  • Bug fixing in lockout (locked accounts) report (security issiu reported by WPScan)

4.9.1

  • Bug fixing in log report (security issiu reported by WPScan) – part 3

4.9

  • Bug fixing in log report (security issiu reported by WPScan) – part 2

4.8

  • Bug fixing in log report (security issiu reported by WPScan)

4.7

  • Bug fixing in dashboard & email reports

4.6

  • Bug fixing – Use local flags instead of using third party website

4.5

  • Bug fixing – Remote get issue

4.4

  • Bug fixing – PHP notice message

4.3

  • Bug fixing in login attempts counter

4.2

  • Bug fixing in email alerts

4.1

  • Bug fixing in email alerts

4.1

  • Adding statistics page & new statistics widgets
  • Adding a new feature: Block by IP and Range IP
  • Bug fixing and enhancements

2.8

  • bug fixing in settings

2.7

  • Compatibility with SMPT plugins

2.6

  • bug fixing in attempts count
  • bug fixing in email alerts

2.5

  • Bug fixing in a timezone
  • Bug fixing in the lockout timer

2.4

  • Bug fixing in recording attempts

2.3

  • Bug fixing in the email alerts

2.2

  • improvements in reports
  • improvements in dashboard widgets

2.1

  • hot fixes in the wp-buy cp page

1.9

  • hot fixes
  • improvements

1.8

  • Add one starting page for all of our plugins
  • Add links to dismiss the new start page links

1.7

  • Adding new feature (IP blocking)
  • Adding new feature (search by IP, country, username)
  • Adding new feature (show username and password in the log reports)

1.6

  • Bug fixing – PHP Notice -> Undefined index

1.5

  • Adding username and user role to the log
  • Adding search by username, IP, role, country

1.4

  • Email template improvements

1.3

  • Display GEO location in detail for any blocked IP address

1.2

  • Bug fixing in the user permissions
  • adding “Vote” message

1.1

  • CSS enhancements

1.0

  • First beta release
20 Feb 2020Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)