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 b
PricingFree downloadThe WordPress.org download is free. Pro versions, add-ons or external services may cost extra.
CompatibilityRequires WordPress 3.5.1 and PHP 7.4.
SourceWordPress plugins · Nov 24, 2026
01 / Source details
Aboutthistool.
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
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 .
See it in action
Screenshots & previews.
Settings page with Security Setup Wizard and delay configuration options.Email notification and IP lockout settings.IP whitelist and XML-RPC protection settings.Dashboard widget showing recent failed login attempts.
02 / Source details
Gettingstarted.
01Upload the wp-login-delay folder to the /wp-content/plugins/ directory
02Activate the plugin through the ‘Plugins’ menu in WordPress
03That’s it, Login Delay Shield is installed and working
03 / Source details
Frequently asked questions.
How does this plugin protect my site?
When a bot attempts a brute-force attack, it tries thousands of passwords as fast as possible. By adding a delay (even just 1 second) after each failed attempt, the attack becomes impractical. A one-second delay is barely noticeable to legitimate users but makes a huge difference when multiplied across thousands of attempts.
Where are the plugin settings?
Go to Settings > Login Delay Shield
What are protection profiles?
Protection profiles are guided presets in the Security Setup Wizard. Applying a profile updates the main delay, progressive delay, lockout, email alert, and authentication endpoint settings, while still leaving every individual control editable.
What is progressive delay?
Progressive delay increases the wait time with each consecutive failed attempt from the same IP address. For example, the first failure might delay 1 second, the second failure 2 seconds, and so on. This makes repeated attacks increasingly slow.
How does IP lockout work?
After a configurable number of failed attempts (default: 10), login attempts are temporarily blocked. You can choose whether attempts are counted by IP only or by IP + username (recommended for shared office/mobile IPs). Lockout duration is configurable (default: 60 minutes).
What are the “attempts remaining” and countdown messages?
When lockout is enabled, failed logins show how many attempts remain before temporary lockout. If lockout is triggered, the error message includes a countdown (for example, “try again in 2 minutes”) so users know when to retry.
How do I whitelist my own IP?
Enable the IP whitelist feature and add your IP address (or a range using CIDR notation like 192.168.1.0/24 ). Whitelisted IPs bypass all delays and lockouts, ensuring you never lock yourself out.
What happens if I lock myself out?
You can always get back in. Lockouts are temporary by design (24 hours maximum — there are no permanent bans), so waiting always works. To recover immediately:
If another administrator can log in, the Active Lockouts manager on the settings page shows every current lockout with a one-click Unlock, and an “Unlock Current IP” action.
If you set up the optional Emergency Recovery URL in advance, open that saved link and confirm — it clears your own IP lockout with no admin, shell, or file access needed. See the next question.
With shell access, use WP-CLI: wp wp-login-delay unlock-ip <ip> or wp wp-login-delay flush-lockouts .
With only FTP access, add define( 'WLDELAY_SAFE_MODE', true ); to wp-config.php — this safe mode disables all delays and lockouts until you remove the line (a warning shows in the admin while it is active).
To avoid lockouts entirely, whitelist your own IP (CIDR ranges supported) — whitelisted IPs bypass all delays and lockouts.
What is the Emergency Recovery URL?
It is an optional, off-by-default secret link you generate in advance from the settings page (Settings > Login Delay Shield). Save it somewhere safe and off your site — it is shown once on screen, emailed to your admin address, and offered as a .txt download. If you are ever locked out with no admin login, no shell, and no file access, open the link and confirm: it clears the login lockout for your current IP only. It never logs you in (you still sign in normally afterwards) and never disables protection.
Because anyone who holds the link can clear their own lockout, treat it like a password. The plugin stores only a hash in its long-term settings, but the freshly generated URL may exist briefly in transient storage so it can be shown and downloaded once. Opening the link asks for a confirmation click before doing anything, attempts are rate-limited and recorded in the audit log, and the plugin reminds you to regenerate it after 90 days (regenerating invalidates the previous link immediately).
Is there a premium version? Will I see ads or upsells?
No. Login Delay Shield is completely free: no ads, no upsells, no premium tier, no account, and no API keys. Every admin notice is dismissible.
What if my custom login URL stops working?
Some plugins that move the login page can lock you out behind a 404 with no way back. Login Delay Shield ships an emergency bypass: add define( 'WLDELAY_DISABLE_CUSTOM_LOGIN', true ); to wp-config.php and the standard wp-login.php works again immediately — no need to disable the plugin. The custom slug also uses raw path matching, so it keeps working even with stale rewrite rules or plain permalinks.
I use Cloudflare (or another proxy/CDN) — do I need to configure anything?
Yes: enable “Trust proxy headers” under Advanced settings. Behind a proxy or CDN, every visitor reaches your server from the proxy’s IP address — without this setting, one attacker’s failed logins would count against everyone and could lock out all users. With it enabled, the plugin reads the visitor’s real IP from CF-Connecting-IP (accepted only when the connection actually comes from Cloudflare’s published IP ranges, so it cannot be spoofed), X-Sucuri-ClientIP , Client-IP , X-Real-IP , or X-Forwarded-For . The settings page shows a warning when it detects a proxy while this setting is off — and the reverse warning if it is on without a proxy in front, since that would allow IP spoofing.
Should I block XML-RPC?
If you don’t use the WordPress mobile app or remote publishing tools like Windows Live Writer, blocking XML-RPC authentication removes a common attack vector. You can also choose to just apply delays without blocking it entirely.
Should I protect password reset requests?
Yes, for most sites. Attackers can abuse password reset forms to probe accounts or create noise during credential attacks. Password reset protection applies the same delay and lockout behavior used for login attempts, logs the source as password-reset , and keeps messages generic so the form does not reveal whether a username or email exists.
How does challenge mode work?
Challenge mode is off by default. Once an IP (or, with the IP + username strategy, an IP and account) reaches the failed sign-in threshold you set, the login form shows one extra verification step, which must be completed before the password is checked, so a correct password is never confirmed to someone who has not passed it. Choose one type:
Question / math — a simple sum. Needs no email and no JavaScript.
Email code — a 6-digit code sent to the account’s email address. Up to five codes are sent per IP and per account every 10 minutes, and each code allows five wrong answers.
Proof of work — the browser solves a short computation. It needs JavaScript and HTTPS (browsers only offer the required cryptography on secure pages); on a plain-HTTP site the math question is shown instead.
Sign-ins that cannot show a form — XML-RPC, REST, and application passwords — are refused while a challenge is required. Whitelisted IPs and safe mode bypass challenge mode.
How does country blocking work?
Country blocking rejects login authentication from ISO 3166-1 alpha-2 country codes you list (for example RU, CN, KP). It is off by default. The plugin ships no GeoIP database and performs no network lookup — it reads a country your server or CDN has already determined:
Cloudflare’s CF-IPCountry header, used when “Trust proxy headers” is enabled and the connection really comes from a Cloudflare edge IP. Checked first, because behind Cloudflare a server GeoIP module sees the edge server’s address rather than the visitor’s.
A server GeoIP module (Apache mod_geoip, MaxMind, nginx GeoIP), which sets GEOIP_COUNTRY_CODE . Used without “Trust proxy headers”, because only the server can set it. Behind any other reverse proxy, make sure the module looks up the forwarded client address, or it will report the proxy’s country.
A generic X-Country-Code proxy header, used when “Trust proxy headers” is enabled.
If none of those is available, country blocking does nothing until a developer supplies the country by hooking the wldelay_resolve_country_code filter, which always takes precedence over the built-in detection (built-in detection is only consulted when the filter returns nothing). Blocked-country logins are rejected across wp-login, XML-RPC, and REST application-password authentication. Whitelisted IPs and safe mode always bypass it.
Header-based detection is only as trustworthy as your proxy setup: with “Trust proxy headers” enabled, any visitor able to reach your server directly (bypassing the CDN) could send a country header of their choosing. Restrict direct access to your origin if you rely on it.
How do email notifications work?
When enabled, the plugin tracks failed login attempts per IP address. Once the threshold is reached (default: 5 attempts), an email is sent to alert you. The counter resets after one hour of no failed attempts from that IP.
Where can I see failed login attempts?
A dashboard widget shows the 10 most recent failed login attempts, including the time, username attempted, IP address, and source. It also includes a lightweight 7-day trends panel with daily totals, top sources, top IPs, and top targeted usernames. The widget is only visible to administrators ( manage_options ). Note: because the log records whatever was typed into the username field, a user who accidentally types their password there will have it shown in the widget and stored in the log — treat the log as sensitive.
How do I use fail2ban logging?
Enable fail2ban logging under Settings > Login Delay Shield > Login Log . If the log path is empty, Login Delay Shield writes to login-delay-shield-fail2ban/login-delay-shield-fail2ban.log in a plugin-owned temporary directory outside the WordPress uploads tree and adds basic .htaccess / index.html protections. Custom paths are restricted to the protected default directory by default; use the wldelay_fail2ban_allowed_log_dirs filter only for server-protected directories. If a custom path is rejected, logging is disabled instead of silently writing somewhere else. If lockout-event logging is enabled, an attempt that triggers a lockout
FinderPress Media Auditor helps site administrators scan for broken images, missing Media Library files, unreachable media URLs, and other media issues across WordPress content. Use it to audit images, video, audio, PDFs, featured images, and attachment files without sending scan data to an external
The Accepted Payment Methods plugin is a straightforward, lightweight solution that enhances your website by displaying visually appealing icons of the payment methods you accept. This plugin is ideal for a variety of websites, including e-commerce platforms, service-oriented websites, and informati