跳到内容

Birim Login Lock – Limit Login Attempts & Two-Factor

v1.0.1

Melih Birim · 2026年11月25日 上架

Limit login attempts on the login form, XML-RPC and app passwords, plus free two-factor sign-in. Imports Limit Login Attempts settings. No nags.

正在使用
10 以下
评分
暂无
累计下载
0
最近更新
2026年11月25日
需要 WordPress 6.0+已测试到 7.1.5PHP 7.4+

贡献者

截图

Lockouts: addresses locked out now, with Unlock and Unlock and allowlist, plus the top IPs and usernames of the last 24 hours.
Lockouts: addresses locked out now, with Unlock and Unlock and allowlist, plus the top IPs and usernames of the last 24 hours.
Settings: limits, the visitor IP as the plugin sees it, Cloudflare and proxy modes.
Settings: limits, the visitor IP as the plugin sees it, Cloudflare and proxy modes.
Import from Limit Login Attempts Reloaded: every change shown before it is applied.
Import from Limit Login Attempts Reloaded: every change shown before it is applied.
Two-factor sign-in on the profile screen: scan the QR code or type the key, or use codes by email.
Two-factor sign-in on the profile screen: scan the QR code or type the key, or use codes by email.
The second step at sign-in.
The second step at sign-in.

Limit login attempts and add two-factor sign-in in one small plugin, with no cloud service, no upsell notices and no emails unless you ask for them. A maintained replacement for Limit Login Attempts, with one-click settings import.

Bots try thousands of passwords against wp-login.php and XML-RPC every day. Birim Login Lock counts failed sign-ins and locks the address out before a password is ever checked again.

Limit login attempts

  • Every way in: the login form, WooCommerce and other wp_signon() forms, XML-RPC and application passwords.
  • Lockouts that escalate: 4 failures lock an address out for 20 minutes; the 4th lockout in 24 hours lasts 24 hours. Same defaults as Limit Login Attempts, all adjustable.
  • Checked before the password: a locked-out address is refused without checking the password, even if it is right.
  • One message for every wrong attempt: the error never says whether the username or the password was wrong.
  • Allowlist and blocklist for IPs and ranges (CIDR, IPv4 and IPv6). Saving never blocklists your own address.
  • Blocked usernames: anyone who tries admin (or any name you list) is locked out at once. Names of real accounts are refused.
  • Password reset limit: 3 requests per hour per address and per user, so nobody can flood your users’ inboxes.
  • IPv6 done right: addresses are counted per /64 network, so an attacker cannot rotate through addresses to reset the count.

The right visitor IP

Many login limiters see every visitor as one address behind Cloudflare or a host proxy and lock everyone out, or trust an X-Forwarded-For header that anyone can fake.

  • Direct (default): the connection’s own address.
  • Cloudflare: reads CF-Connecting-IP, but only on requests that really come from Cloudflare’s published ranges.
  • Other proxy: reads the header you name, but only on requests from the proxy addresses you list.
  • The Settings screen shows your IP as the plugin sees it and suggests a mode if your site looks like it is behind a proxy.

Free two-factor sign-in

  • Authenticator app (Google Authenticator, Microsoft Authenticator, 1Password, Bitwarden and any other TOTP app): scan a QR code or type the key.
  • Codes by email, for people without an app.
  • 10 recovery codes, each usable once, shown once, with a download link.
  • Require it for roles you choose: users without a method set one up right after their password. No account can skip it.
  • For every user, free: each person turns it on under Users > Profile. Administrators can reset it for someone who lost their phone.
  • XML-RPC cannot ask for a code, so account passwords of two-factor users are refused there (on by default). Application passwords keep working.

Protection for a username attacked from many IPs

When one username gets 20 failed sign-ins from 3 or more addresses in an hour, a browser that has not signed in as that user before also needs a code from the user’s email for the next hour. Browsers the user signed in from before are not affected. The attack gets nothing, and the real user is never locked out.

Moving from Limit Login Attempts

Settings > Login Lock finds the settings of Limit Login Attempts (1.x and 2.x) and Limit Login Attempts Reloaded. It shows exactly what will change (limits, lockout times, allowlist, blocklist, blocked usernames, Cloudflare) and what is not imported, and then offers to deactivate the old plugin, because two limiters count every failure twice.

Screens

  • Lockouts: who is locked out now, with Unlock and Unlock and allowlist, plus the top IPs and usernames of the last 24 hours.
  • Log: every failed sign-in, lockout and password reset request, filterable by IP, username and result. Kept 30 days by default.
  • Settings: limits, visitor IP, lists, emails and two-factor rules.

Quiet by default

No emails unless you turn them on: an alert when an administrator’s username is attacked, and a weekly summary. No dashboard widget, no review requests, no “attack” banners.

Lightweight

Two small tables, indexed queries, nothing growing in wp_options. No external requests, no tracking, no ads. Works on PHP 7.4 and up.

Third-party code

QR codes are drawn in the browser by QR Code Generator for JavaScript 2.0.4 by Kazuhiko Arase (MIT license), included unmodified as assets/qrcode.js. Source: https://github.com/kazuhikoarase/qrcode-generator

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums