# Login Lockdown for WordPress

> Block an IP address (and optionally a username) for a while after too many failed logins, including XML-RPC. Locked out yourself? Wait it out, or add…

TW-SEC-09 Security


Block an IP address (and optionally a username) for a while after too many failed logins, including XML-RPC. Locked out yourself? Wait it out, or add TOGGLEWORKS\_SAFE\_MODE to wp-config.php.

[Get it from $26 a year](https://togglework.app/pricing/#plans) [Try it in the demo](https://togglework.app/demo/)

Login Lockdown

**Part number**
: TW-SEC-09
**Section**
: [Security](https://togglework.app/features/security/)
**Settings**
: 8 (3 on/off)
**Starts**
: Switched off
**In plans**
: Every plan

## Why it matters

WordPress lets anyone try to log in as many times as they like. Bots take advantage of that around the clock, trying common passwords against wp-login.php and, less visibly, through XML-RPC, which can test many passwords in a single request.

Limiting failed attempts turns an unlimited guessing game into a handful of tries per half hour, which is enough to stop automated attacks without bothering real people who mistype a password.

### What it does

- Locks an IP address out after a set number of failures (default: 5 in 15 minutes, for 30 minutes).
- Doubles the lockout for repeat offenders within 24 hours, up to 7 days.
- Counts failed logins through XML-RPC too.
- Hides the login form from a locked-out IP, so bots have nothing to submit.
- Optionally locks a username after too many failures from any IP.

![Login Lockdown settings screen in the Toggleworks WordPress plugin, showing Failed attempts allowed per IP, Within (minutes), Lockout length (minutes), Escalate repeat lockouts](https://togglework.app/wp-content/themes/toggleworks-site/assets/img/parts/security-login-lockdown.webp?v=1795524233)

The Login Lockdown screen in wp-admin, where you switch it on and change its settings.

## Set it up

1. Switch Login Lockdown on. The defaults are sensible for most sites.
2. Add your office or home IP to **Never lock out these IPs** .
3. Leave username locking off unless you have a reason; see below.

## What you can set

Switch Login Lockdown on in Toggleworks → Security, then adjust any of these. Each one starts with a default, so you can switch the part on first and fine-tune later.

- Failed attempts allowed per IP
- Within (minutes)
- Lockout length (minutes)
- Escalate repeat lockouts
- Also lock usernames
- Failed attempts allowed per username
- Never lock out these IPs
- Hide the login form while an IP is locked out

## Good to know

- Username lockouts let an attacker keep a real person out by failing on purpose. Use them only with allowlisted IPs for your own team.
- Locked yourself out? Wait for the lockout to expire, or add `TOGGLEWORKS_SAFE_MODE` to wp-config.php.
- Pair it with [Two-Factor Authentication](https://togglework.app/features/security/two-factor/). Lockouts slow guessing; two-factor makes a guessed or leaked password useless.

[Guide: The WordPress security checklist, in the order that matters](https://togglework.app/guides/wordpress-security-checklist/)

## One less plugin to install

Login Lockdown does a job people often install a separate plugin for:

- Limiting login attempts and blocking brute forceOften done with Wordfence
- Locking out repeated failed loginsOften done with Solid Security

## Comes with 187 more parts

Login Lockdown is one part of Toggleworks, a single plugin for security, speed, SEO, backups, email and store tools. Switch on what your site needs; the rest stays off and loads nothing.

[All 18 Security parts](https://togglework.app/features/security/)

### People also look for it as

- brute force
- limit login attempts
- lockout
- failed login
- xmlrpc
- ban

## Often switched on with it

- [Custom Login URL](https://togglework.app/features/security/login-url/) — TW-SEC-11 · Move the login page to a secret address and hide wp-login.php and /wp-admin from visitors who are not logged in. Forgot the… · 3 settings
- [Email & SMS Login Codes](https://togglework.app/features/security/login-codes/) — TW-SEC-08 · Let people log in with a one-time code sent to their email (or phone by SMS) instead of a password, and sign up by confirming… · 7 settings
- [Hardening](https://togglework.app/features/security/hardening/) — TW-SEC-07 · Switch off XML-RPC and the file editor, hide the WordPress version, stop username discovery, and limit the REST API for visitors. · 10 settings
- [Login & Logout Redirects](https://togglework.app/features/security/login-redirects/) — TW-SEC-10 · Choose where each role lands after logging in or out, and optionally keep non-admins out of the dashboard. · 10 settings
- [Login Branding](https://togglework.app/features/white-label/login-branding/) — TW-WHL-02 · Put your own logo, colors and background on the WordPress login page. · 16 settings
- [Activity Log](https://togglework.app/features/security/activity-log/) — TW-SEC-01 · Keep a record of logins, user and role changes, plugin and theme changes, core updates, content changes and key settings. · 2 settings

## Questions

**Is Login Lockdown included in every Toggleworks plan?**

Yes. Every plan includes all 188 parts, Login Lockdown among them. Plans differ only in how many sites you can use them on, and staging or local copies of a site don’t count.

**Does Login Lockdown slow my site down when it’s switched off?**

No. Every part starts switched off, and a part that is off loads none of its code. Switch on Login Lockdown only if your site needs it.

**What if a setting locks me out?**

Add `define( 'TOGGLEWORKS_SAFE_MODE', true );` to wp-config.php. It pauses every part until you remove the line, and Tools → Recent changes lets you undo a change.

**Can I try Login Lockdown before I buy?**

Yes. The [live demo](https://togglework.app/demo/) runs a WordPress site with Toggleworks in your browser, and every plan has a 14-day refund.

## Switch off the plugin pile.

All 188 parts, one license, updates and support. 14-day refund.

[Choose a plan](https://togglework.app/pricing/#plans) [Try the live demo](https://togglework.app/demo/)

---

Source: https://togglework.app/features/security/login-lockdown/
