Skip to content
Sign in
Login Delay Shield icon

Login Delay Shield

Login Delay Shield slows down brute-force attacks by adding a configurable delay to failed login attempts while keeping successful logins instant.

Not scanned yet WordPress plugin 70 installs

Install in

No install steps yet

Follow the steps on the source page.

WordPress is one of the most widely used content management systems on the internet, making it a frequent target for bots and hackers attempting brute-force attacks.

A brute-force attack works by systematically trying passwords until finding the correct one. Login Delay Shield defends against this by adding a configurable delay after each failed login attempt. Since successful logins are never delayed, legitimate users experience no slowdown. This approach is particularly effective against bots that send thousands of login requests, as each failed attempt forces the attacker to wait before trying the next password.

Features:

  • Distributed attack detection — spot credential-stuffing that rotates IPs, which per-IP lockouts miss.
  • Security Setup Wizard — Choose Conservative, Balanced, or Aggressive protection profiles from the settings page
  • Login delay — Fixed or random delay on failed login attempts (1-10 seconds)
  • Progressive delay — Delay increases with each consecutive failed attempt from the same IP
  • IP lockout — Temporarily block IP addresses after too many failed attempts
  • Username-aware lockout strategy — Choose IP only or IP + username to reduce false positives on shared networks
  • Login feedback — Shows remaining attempts before lockout and a lockout countdown when blocked
  • IP whitelist — Bypass all security measures for trusted IPs (supports CIDR notation)
  • Email notifications — Receive alerts when failed login thresholds are reached
  • Failed login log — Track all failed attempts with a dashboard widget showing recent activity, 7-day trends, and top targeted usernames
  • fail2ban logging (optional) — Write fail2ban-compatible failed-login and lockout lines to a safe log file
  • XML-RPC protection — Apply delays to XML-RPC authentication or block it entirely
  • Password reset protection — Apply delays, lockouts, and logging to password reset submissions without revealing account existence
  • Custom login URL — Move the login page to a custom URL to reduce automated bot traffic targeting /wp-login.php
  • Challenge mode (optional) — After repeated failed sign-ins, the login form asks for a self-hosted verification step before the password is checked: a math question, a one-time code emailed to the account owner, or an in-browser proof-of-work. No third-party CAPTCHA
  • Country blocking (optional) — Block login authentication from selected country codes. Ships no GeoIP database, but reads the country your server or CDN already worked out (Cloudflare’s CF-IPCountry, a server GeoIP module, or an X-Country-Code proxy header); developers can supply it themselves through the wldelay_resolve_country_code filter
  • Emergency recovery URL (optional) — Generate a secret link that clears the lockout for your own IP, so you can get back in even with no admin, shell, or file access
  • Log retention — Automatic cleanup of old log entries (configurable retention period)
  • Accessible admin interface — WCAG 2.1 compliant with keyboard navigation and screen reader support
  • Multilingual — Translated into 18 languages including French, German, Spanish, Japanese, Chinese, Arabic, and more
  • Lightweight and compatible with other security plugins

Free means free

Login Delay Shield has no ads, no upsells, no premium tier, and no account or API key requirement. Every admin notice is dismissible, and the plugin never nags you to upgrade — there is nothing to upgrade to.

You can always get back in

A security plugin that locks out its own administrator is worse than no security at all. Login Delay Shield is built so an admin can always recover access:

  • Whitelisted IPs (including CIDR ranges) bypass every delay and lockout
  • The Active Lockouts manager on the settings page lists current lockouts with a one-click Unlock for each, plus an “Unlock Current IP” action
  • The optional Emergency Recovery URL — a secret link you save in advance — clears your own IP lockout even when you have no admin, shell, or file access
  • WP-CLI recovery commands: wp wp-login-delay unlock-ip <ip> and wp wp-login-delay flush-lockouts
  • Lockouts are always temporary (24 hours maximum) — there are no permanent bans

This plugin is not a complete security solution — dedicated security plugins offer more comprehensive protection. However, Login Delay Shield adds an effective layer of defense that works alongside your existing security measures without conflict.

Note: This plugin was formerly known as “WP Login Delay”.

Contribute

Found a bug or want to suggest an improvement? Open a thread in the support forum on WordPress.org.

Want to help translate the plugin into your language? Visit translate.wordpress.org.

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

Brute Forcelockoutloginsecurityxmlrpc
28 Nov 2026
Version 2.7.1 released. Not scanned yet.

2.7.1

  • Tested with WordPress 7.2.
  • Fix: the Emergency Recovery URL card header now tells screen readers it is expanded, matching what is shown. Before, it announced the opposite state on every toggle.
  • Fix: the security score on the settings page no longer triggers a jQuery Migrate deprecation warning, so it is ready for jQuery 4.

2.7.0

  • New: Challenge mode is now active. After a configurable number of failed sign-ins from an IP, the login form presents a self-hosted challenge — a math question, an emailed one-time code, or an in-browser proof-of-work — that must be solved before credentials are checked, so password validity never leaks. Non-interactive logins (XML-RPC, REST, application passwords) are blocked outright. No third-party CAPTCHA. Developers can register custom challenge providers via the wldelay_challenge_providers filter.
  • Fix: failed sign-ins on the standard login form now correctly count and apply the configured delay, so IP lockout, email alerts, progressive delay, and challenge mode trigger as intended (previously the counter and delay could be skipped for wp-login attempts).
  • Fix: with XML-RPC protection on (delay mode), failed XML-RPC sign-ins now count toward lockout and apply the delay too; previously they were only logged, so an XML-RPC-only brute force never reached the lockout threshold.
  • Fix: with the IP + username lockout strategy, a failed sign-in is now counted under the same (lowercased) username every check uses, so typing the username with different capitalisation no longer avoids the lockout.
  • New: country blocking now works without writing any code. It reads the country your server or CDN already determined — Cloudflare’s CF-IPCountry (only when “Trust proxy headers” is on and the request really comes from a Cloudflare edge), a server GeoIP module (GEOIP_COUNTRY_CODE), or a generic X-Country-Code proxy header (when “Trust proxy headers” is on). The settings page now shows which country is detected for your own request, so you can tell at a glance whether detection works on your host. A resolver supplied through the wldelay_resolve_country_code filter still takes precedence, and still receives an empty value, so it can never be handed a visitor-supplied header.
  • Fix (security): country blocking could be bypassed by a sign-in with valid credentials, because WordPress re-checks the credentials after the block runs and overwrote the rejection. The block is now re-asserted after the username is resolved and before the password is verified, and again after every other authenticator has run, so it also holds for XML-RPC application passwords.
  • Fix: a blocked country (and any other plugin block, such as an active lockout) is no longer counted as a failed sign-in on the REST and application-password paths, so blocked requests can no longer drive a legitimate visitor into lockout.
  • Fix: HTTP Basic authentication on a normal page (for example an htpasswd-protected staging site) is no longer mistaken for an application-password sign-in, which counted every login-page view as a failed attempt and logged blocked sign-ins twice.
  • Fix: the lockout message on the login page no longer shows a frozen “You can try again in 59 seconds” next to the live countdown; once the countdown starts it is the only time shown (without JavaScript the static time remains).
  • The Country Blocking and Challenge Mode settings cards now have “Learn more” links to the user guide, like the other cards.

2.6.0

  • New: Emergency Recovery URL — an opt-in secret URL to clear your own IP lockout when locked out with no admin or server access. Stores only a hash of the token, requires a confirm click, is rate-limited, and is fully audited.
  • New: Country blocking (optional, off by default) — block login authentication from selected ISO country codes. Ships no GeoIP database; a developer supplies the visitor country via the wldelay_resolve_country_code filter. Whitelisted IPs and safe mode bypass it. Also enforced on the REST application-password path.

2.5.0

Distributed attack detection.

New Features:
* Distributed-attack (botnet) detection — alerts when one username is targeted from many IP addresses, the credential-stuffing pattern that per-IP lockouts cannot see. Detection is on by default and never blocks: you get an audit-log entry, a dashboard warning, and (when email alerts are enabled) an email with the targeted username and sample IPs. Threshold and detection window are configurable.
* Downloadable fail2ban configuration — one click generates the filter and jail config matching your current log path and format.
* Settings coherence warnings — the settings page now flags contradictory combinations (empty whitelist, unwritable fail2ban path, alert thresholds that can never fire) without blocking the save.
* “Learn more” documentation links — each settings card links to the matching section of the online user guide. The base URL is filterable (wldelay_help_base_url) and can be disabled.

Improvements:
* All login-protection entry points now share one failure-processing pipeline, eliminating drift between wp-login, XML-RPC, REST, application-password, and password-reset handling.
* fail2ban log lines are buffered and written once per request instead of one write per attempt — less disk I/O under brute-force load.
* Login-log statistics and CSV export on the settings page are rate-limited per administrator to one expensive query per minute.

Fixes:
* Corrected the text domain to match the WordPress.org plugin slug so bundled and community translations load reliably.
* Settings page layout fixes: profile cards no longer overflow their column, the two-column widgets size evenly on desktop, profile checkmarks align with their bullets, and the “Apply selected profile” button now works.

2.4.1

Packaging fix.

Maintenance:
* The wordpress.org package no longer includes development files (test suite, Docker setup, build scripts, composer manifest). These were never loaded or executed by WordPress, but they inflated the download since 2.2.4. Added a .distignore so automated deploys ship only runtime files.
* Fixed the packaging validation script omitting uninstall.php; the uninstall cleanup routine itself always shipped correctly.

2.4.0

Lockout-proof recovery and proxy/CDN awareness.

New Features:
* Proxy/CDN-aware IP detection — new supported headers behind the “Trust proxy headers” setting: CF-Connecting-IP (accepted only when the connection comes from Cloudflare’s published IP ranges, so it cannot be spoofed), X-Sucuri-ClientIP, and X-Real-IP.
* Proxy configuration health check on the settings page — warns when the site appears to be behind a proxy or CDN while header trust is disabled (mass-lockout risk), and when trust is enabled without a proxy in front (spoofing risk).
* WLDELAY_SAFE_MODE emergency constant — define it as true in wp-config.php to disable all delays and lockouts while you recover access. A persistent admin warning shows while it is active.
* Custom Login URL self-check — when the feature is enabled or the slug changes, the plugin verifies the new URL responds and automatically disables the feature if it would return a 404, instead of stranding everyone behind a dead login page.
* The new custom login URL is emailed to the site admin as a recovery aid (disable with the wldelay_send_custom_login_email filter).

Security:
* All proxy header values are now validated as IP addresses; garbage values fall back to the connection IP instead of poisoning lockout keys.

Improvements:
* The Custom Login URL settings card now documents the WLDELAY_DISABLE_CUSTOM_LOGIN emergency bypass and prompts you to bookmark the new URL before enabling.
* New FAQ entries: self-lockout recovery, Cloudflare/proxy configuration, custom login URL recovery, and ads/premium policy (there are none — and now the readme says so).

2.3.4

fail2ban logging hardening.

Improvements:
* The fail2ban log is now rotated to a single .log.1 backup once it reaches 5 MB, preventing unbounded growth on installs without external log rotation. Configure or disable via the new wldelay_fail2ban_max_log_bytes filter.
* Web-server protection files (.htaccess, index.html, index.php) are now written to every fail2ban log directory, including custom directories added via the wldelay_fail2ban_allowed_log_dirs filter.

Maintenance:
* Added an uninstall routine that removes plugin options, the failed-login log table, registered transients, and the plugin-owned fail2ban log directory when the plugin is deleted (multisite-aware). Custom fail2ban log paths are left untouched.

2.3.3

Security Setup Wizard.

New Features:
* Added a Security Setup Wizard with Conservative, Balanced, and Aggressive protection profiles. Applying a profile configures delay, progressive delay, lockout, email alerts, and authentication endpoint settings in one step while keeping every individual control editable.

Bug Fixes:
* Protection profiles no longer overwrite the log retention period, preventing unintended deletion of existing failed-login logs.
* The current-profile badge now reflects the actual stored configuration and shows “Custom” after manual edits.
* Pressing Enter in a settings field no longer applies a profile over manual edits; the Save Changes button now handles implicit form submission.

Security:
* The Aggressive profile counts lockouts by IP rather than IP + username, closing a password-spray gap where a single IP could try multiple usernames without locking out.

2.3.2

Password reset protection.

New Features:
* Added optional password reset protection that applies delay, lockout, whitelist bypass, and telemetry logging to password reset submissions.
* Added password reset attempts as a distinct telemetry source (password-reset).
* Added password reset protection to the settings page, feature summary, and Security Health Score.

Security:
* Password reset throttling uses isolated counters and lockouts so reset-form abuse cannot lock a user out of normal login.
* Password reset attempts do not trigger failed-login email alerts.

Improvements:
* Admin recovery tools now clear password-reset-specific throttling keys.

2.3.1

Patch release with CI fixes and new telemetry feature.

New Features:
* Added “Top target pairs” card to telemetry — ranks the most common IP + username combinations from failed login attempts for faster incident triage.

Bug Fixes:
* Fixed unit tests failing in CI due to unmocked get_option() calls in fail2ban and sanitization test suites.
* Fixed wp plugin check failing in CI because the plugin-check plugin was not activated before use.

2.3.0

Performance, UX, architecture, and CI improvements.

New Features:
* Security Health Score — 0-100 score card on the settings page showing protection posture with “next recommended” guidance.
* “What’s New” banner — dismissible notice after plugin upgrade highlighting new features.
* Referral card — “Leave a review” and “Get support” links in the dashboard widget.
* Contextual help links — tooltip system now supports optional “Learn more” URLs linking to documentation.
* Pluggable username normalization — wldelay_normalize_username filter hook for LDAP, email-as-login, and SSO backends.
* CI/CD test pipeline — GitHub Actions workflow running PHPUnit and wp plugin check on every push and PR.

Performance:
* Whitelist IP validation optimization — exact IPs checked via O(1) hash lookup; CIDR ranges iterated only on miss. Cached per-request.
* Telemetry pagination drift detection — snapshot hash warns when data changes between pages during active attacks.

2.2.4

Top targeted usernames in login telemetry and hardening.

New Features:
* Added “Top usernames” card to the telemetry summary — ranks the most-targeted usernames by failed login attempts with description text for admin context.

Improvements:
* Added database index on the username column for faster GROUP BY queries at scale.
* Username aggregation excludes NULL, empty, and whitespace-only values using parameterized TRIM filter.
* Expanded PHPDoc return types for wldelay_get_login_log_summary() with full nested array structures.
* Updated readme feature list and FAQ to mention top targeted usernames.

2.2.3

Complete Custom Login URL runtime, Trend Analytics queries, and bug fixes.

New Features:
* Custom Login URL runtime — custom slug now fully functional with login, logout, lost password, and password reset all routed through the custom URL.
* Custom Login URL admin UI — settings card with enable/disable toggle, slug input, status badge, and tooltip help.
* Trend Analytics query functions — wldelay_get_top_ips(), wldelay_get_top_usernames(), and wldelay_get_daily_attempts() for dashboard trend data.

Bug Fixes:
* Fixed double wp_unslash() on login username that could corrupt usernames with literal backslashes.
* Fixed wp_login_url filter name (was wp_login_url, should be login_url) preventing URL rewriting.
* Fixed canonical redirect leaking custom login slug via 302 when /wp-login.php is accessed through the front controller.
* Fixed login_init blocking internal WordPress paths (e.g. /wp/wp-login.php) used for legitimate auth redirects.

Improvements:
* Expanded reserved slug list with wp-json, wp-content, wp-includes, wp-signup, wp-activate, xmlrpc, feed, robots, sitemap.
* Replaced production wldelay_unlock_current_ip_should_exit filter with WP_TESTS_DOMAIN constant check — no longer exposes a testability surface in production.
* Wrapped Custom Login URL section titles in esc_html__() for i18n completeness.
* Added Custom Login URL to the protection features summary box.
* Added Playwright end-to-end tests for full Custom Login URL verification.

2.2.2

Micro-hardening — input sanitization, i18n completeness, and code documentation.

Improvements:
* Added wp_unslash() before sanitize_user() in login username extraction to correctly handle WordPress magic-quote slashes.
* Wrapped email notification subject and body in __() for full i18n/l10n support.
* Added detailed inline comments explaining the IPv6 CIDR binary mask bit-shift logic.

2.2.1

Code housekeeping — JavaScript extraction and admin UI consistency.

Improvements:
* Extracted all inline JavaScript from the settings page view into a standalone admin.js file, loaded via wp_enqueue_script().
* Used wp_localize_script() to pass PHP-side translatable strings to JavaScript (Enabled/Disabled badge labels).
* Standardized <label> association across all settings field callbacks.
* Removed unused data-section attributes from settings card elements.

2.2.0

Adds Custom Login URL — the last major unimplemented roadmap feature.

New Features:
* Custom Login URL — optionally move the WordPress login page to a configurable slug (e.g., /my-login). When enabled, direct access to wp-login.php is blocked and all auth flows (login, logout, lost password, password reset) are routed through the custom slug.
* Emergency recovery bypass — define WLDELAY_DISABLE_CUSTOM_LOGIN in wp-config.php to restore access to wp-login.php without disabling the plugin.
* WP-CLI, cron, and REST API contexts are automatically excluded from custom login routing.
* All WordPress URL generation functions (wp_login_url, logout_url, lostpassword_url) and password-reset emails are transparently updated to use the custom slug.

Improvements:
* New settings card for Custom Login URL in the admin UI, following existing WCAG 2.1 AA accessibility patterns.
* Custom Login URL feature appears in the protection status summary box.
* Rewrite rules are automatically flushed when the slug or enabled state changes.

2.1.6

Small release focused on dashboard observability, admin polish, and release metadata improvements.

New Features:
* Added a lightweight failed-login trends panel to the dashboard widget with 7-day activity, top sources, and top IPs.

Improvements:
* Updated the dashboard widget cache to store both recent attempts and trend snapshots while remaining backward-compatible with the previous cache format.
* Updated the WordPress.org listing metadata, including a more accurate minimum PHP version and refreshed tags.
* Extracted admin inline JavaScript into a dedicated file for easier maintenance.
* Standardized settings checkbox rendering for a more consistent admin UI.
* Added input unslashing before username normalization for safer WordPress-style request handling.

2.1.5

Patch release focused on safer defaults for migrated/legacy installs.

Improvements:
* Hardened REST and application-password protection toggles when related option keys are missing.
* Preserves behavior for sites with explicitly saved toggle values while avoiding unintended strict defaults on legacy option states.

2.1.4

Adds 2FA health check notice and code quality improvements.

New Features:
* 2FA health check notice on the settings page — detects common 2FA plugins (Two-Factor, WP 2FA, miniOrange, Google Authenticator) and reminds administrators to verify coverage.
* Extensible wldelay_2fa_providers filter hook for adding custom 2FA provider detection.

Improvements:
* CSV export now uses the dedicated request filter reader for consistency and safer parameter handling.
* Renamed 2FA noti

18 Aug 2013Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)