Plugin screenshot thumbnail 1/2
Plugin screenshot thumbnail 2/2

Login Lockdown stops brute force password attacks at the source. It tracks failed logins per IP address and blocks an IP that keeps failing from logging in to the control panel and your front-end login forms, for as long as you choose. You're notified by email or Pushover when it happens.

Login Lockdown and Craft's built-in protection

Craft already slows down password guessing. Login Lockdown adds what Craft doesn't do: it blocks the attacker, across every username.

ProtectionCraft 5.9.15+Craft 6Login Lockdown
Lock an account after repeated bad passwords5 in an hour, 5-minute cooldownSame—
Rate-limit login attempts per IP10 per minuteSame—
Rate-limit per login name + IP—5 per minute—
Hide whether an account existsOff by defaultOn by default—
Block an IP after failed logins across any usernames——✓ Threshold and window you set
Long lockouts that grow while the attack continues——✓ Default 24 hours
Cover the whole control panel and front-end login forms——✓
Allowlist your own IPs——✓
See and manage blocked IPs and attempt history——✓ Control panel and CLI
Get told when an IP is blocked——✓ Email and Pushover

Craft's account lockout protects the account, but an attacker can use it to lock a real user out by guessing at their username. Craft's rate limits reset within a minute, so a patient attacker or a botnet keeps going. Login Lockdown stops the source instead, and tells you about it.

How It Works

  1. When a user fails to log in (to either the Control Panel or a front-end login form), the plugin records the attempt along with their IP address.
  2. If the same IP address exceeds the maximum allowed failed attempts within the configured time window, the IP is blocked.
  3. Blocked IPs receive a 403 Forbidden response when attempting to log in via the Control Panel or front-end forms.
  4. After the lockout duration expires, the IP is automatically unblocked.
  5. Whitelisted IPs are never blocked, regardless of failed attempts.

Note: Both Control Panel and front-end login forms are protected by default. Front-end protection can be disabled in the settings if desired.

Client IPs can't be faked with request headers. If your site is behind Cloudflare, a load balancer or another reverse proxy, tell Craft which proxies to trust so the plugin sees each visitor's real IP; the README explains how for Craft 5 and Craft 6.

Craft 5 and Craft 6

One release runs on both: Craft CMS 5.9.18 or later with PHP 8.2, or Craft CMS 6 with PHP 8.5, where it works through Craft's Yii2 adapter.

Configuration

Configure the plugin via Settings → Login Lockdown in the control panel.

All settings support environment variables using the $ENV_VAR syntax. For example, set a field to $MY_VAR and define the value in your .env file.

Protection Settings

SettingDefaultTypeDescription
Enable ProtectiontruebooleanEnable or disable brute force protection
Protect Front-End Login FormstruebooleanBlock login attempts from blocked IPs on front-end forms (not just CP)
Maximum Failed Attempts5integerNumber of failed login attempts before blocking
Attempt Window900integerTime window in seconds for counting failed attempts (15 min)
Lockout Duration86400integerHow long to block an IP in seconds (24 hours)
Block Message(see below)stringMessage displayed to blocked users
Whitelisted IP Addresses(none)arrayIPs that should never be blocked

Default block message: "Access temporarily blocked due to too many failed login attempts. Please try again later."

Notification Settings

SettingDefaultTypeDescription
Enable NotificationsfalsebooleanSend notifications when an IP is blocked
Notification Email(empty)stringEmail address for block notifications
Enable PushoverfalsebooleanSend push notifications via Pushover
Pushover User Key(empty)stringYour Pushover user key
Pushover API Token(empty)stringYour Pushover application API token

Environment Variable Support

All settings support Craft CMS environment variable syntax. In the control panel, enter a value like $MY_ENV_VAR and define the actual value in your .env file.

Installation Instructions

To install this plugin, copy the command above to your terminal.

Reviews

This plugin doesn't have any reviews.

Active Installs
30
Version
2.1.0
License
Craft
Compatibility
Craft 5, Craft 6
Last release
November 12, 2026
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs