Title: Knockgate &#8211; Hidden Login, 2FA &amp; Login Protection
Author: Quintaphon
Published: <strong>December 4, 2026</strong>
Last modified: December 4, 2026

---

Search plugins

![](https://ps.w.org/knockgate/assets/banner-772x250.png?rev=3844170)

![](https://ps.w.org/knockgate/assets/icon.svg?rev=3844170)

# Knockgate – Hidden Login, 2FA & Login Protection

 By [Quintaphon](https://profiles.wordpress.org/quintaphon/)

[Download](https://downloads.wordpress.org/plugin/knockgate.1.1.1.zip)

 * [Details](https://wordpress.org/plugins/knockgate/#description)
 * [Reviews](https://wordpress.org/plugins/knockgate/#reviews)
 *  [Installation](https://wordpress.org/plugins/knockgate/#installation)
 * [Development](https://wordpress.org/plugins/knockgate/#developers)

 [Support](https://wordpress.org/support/plugin/knockgate/)

## Description

Knockgate protects the WordPress sign-in from password guessing, stolen passwords
and bots, and tells you when something looks wrong. One clean settings screen, no
account, and it works on unlimited sites.

Plugin site: [quintaphon.com/wordpress/knockgate](https://quintaphon.com/wordpress/knockgate/)

Documentation: [quintaphon.com/docs/wordpress/knockgate](https://quintaphon.com/docs/wordpress/knockgate/)

#### Custom login address

 * Move the sign-in page from wp-login.php to an address you pick, such as `/team-
   door/`.
 * Visitors who open wp-login.php or wp-admin see the “page not found” page, or 
   the home page if you prefer.
 * Every link WordPress makes to the login page (lost password, registration, emails)
   points to the new address.
 * The new address is emailed to the site admin address whenever it changes.

#### Limit failed attempts

 * Lock an address out after a number of failed sign-ins within a time window, with
   a longer lockout for repeat offenders.
 * Shows how many tries are left, or a message of your own.
 * Instant lockout for usernames only bots use (such as “admin” when no such account
   exists).
 * Counts failures from wp-login.php, XML-RPC, the REST API, two-factor codes and
   CAPTCHA, without counting one failure twice.
 * Lockouts screen: unlock one address or all of them, lock an address for a set
   time, or move it to the allowlist or blocklist.

#### Allow and block lists

 * Allowlist and blocklist with single addresses, ranges and CIDR networks (IPv4
   and IPv6), each with a note.
 * Reads the real visitor address behind Cloudflare and other proxies, and warns
   you when the setting looks wrong.
 * Your own address can never be locked out by accident from the settings screen.

#### Two-factor sign-in by email

 * A one-time code by email after the password.
 * Require it for chosen roles.
 * Each user turns it on or off on their profile; administrators can reset a user.

#### Passwords

 * Minimum length for new passwords.
 * Blocks common passwords.

#### Google reCAPTCHA

 * reCAPTCHA v2 (checkbox) and v3 (invisible score).
 * On the sign-in, registration and lost-password forms.

#### Login page designer

 * 3 templates: Classic, Clean Card and Minimal Line.
 * Your logo with its link and width (or the site icon, or the site name as text),
   and the browser tab title.
 * Background, card, text, accent, link and field colours.
 * Your own heading, message above the form and footer text; hide the “Go to site”
   link, the language switcher or “Lost your password?”.
 * Live preview in the settings screen, on desktop and phone sizes, before you save.

#### Activity log and dashboard

 * Every sign-in, failure, lockout, two-factor step, password change and settings
   change, kept for 30 days by default and up to ten years, with address, country
   and device.
 * Filter and search.
 * Dashboard with a 14-day chart, two-factor coverage and a checklist of what to
   fix.

#### Email alerts

 * Long lockouts, new administrators, and two-factor turned off for a user.

#### Hardening

 * XML-RPC: keep it, remove password methods only, or turn it off.
 * Hide usernames from author scans, the REST API users list and the users sitemap.
 * Vague login errors that do not tell which part was wrong.
 * Limit or turn off application passwords.
 * Session length, “Remember me” length and one session per user.
 * Hide the WordPress version.

#### Multisite

 * Activate per site or network-wide; each site keeps its own settings and log.

#### Knockgate Pro

An optional add-on, sold separately on [quintaphon.com](https://quintaphon.com/wordpress/knockgate/#pricing),
adds authenticator apps and backup codes, Cloudflare Turnstile and hCaptcha, more
login page templates and fonts, country rules, Slack and webhook alerts, active 
sessions, social login, access links and a multisite network mode. This plugin works
fully on its own and contains no code of the add-on.

### External services

Knockgate connects to the external service below only when you turn it on and set
it up yourself; otherwise it contacts no outside service. No data is sent to Quintaphon.

#### Google reCAPTCHA

What it is for: telling people from bots on the sign-in, registration and lost-password
forms (CAPTCHA, provider reCAPTCHA v2 or v3).

What is sent and when: only when reCAPTCHA is the chosen provider. The visitor’s
browser loads `https://www.google.com/recaptcha/api.js` on the protected forms, 
and Google receives what its script collects. When the form is sent, your server
sends the token, your secret key and the visitor’s IP address to `https://www.google.
com/recaptcha/api/siteverify`.

Google [Terms of Service](https://policies.google.com/terms) and [Privacy Policy](https://policies.google.com/privacy).

No other external requests are made. The admin screens and the Inter font are served
from your own site.

### Third-party libraries

 * **Inter** variable font 4.x (latin, latin-ext), SIL Open Font License 1.1 (assets/
   fonts/OFL.txt). Used by the admin screens only. Source: https://github.com/rsms/
   inter

### Developer hooks

Actions: `qbls_event` (every logged event, with its data), `qbls_settings_updated`,`
qbls_settings_reset`.

Filters: `qbls_modules`, `qbls_has`, `qbls_schema`, `qbls_nav`, `qbls_section_file`,`
qbls_settings_store`, `qbls_settings_values`, `qbls_admin_cap`, `qbls_admin_base`.

Constant: `QBLS_DISABLE` (pause the whole plugin).

## Screenshots

[⌊Dashboard with today's sign-ins and failures, a 14-day chart and the security 
checklist.⌉⌊Dashboard with today's sign-ins and failures, a 14-day chart and the
security checklist.⌉[

Dashboard with today’s sign-ins and failures, a 14-day chart and the security checklist.

[⌊The login page restyled with the Clean Card template, a logo and your own texts.⌉⌊
The login page restyled with the Clean Card template, a logo and your own texts.⌉[

The login page restyled with the Clean Card template, a logo and your own texts.

[⌊The two-factor step: a one-time code sent by email after the password.⌉⌊The two-
factor step: a one-time code sent by email after the password.⌉[

The two-factor step: a one-time code sent by email after the password.

[⌊Login Limits: allowed failures, lockout length and longer lockouts for repeat 
offenders.⌉⌊Login Limits: allowed failures, lockout length and longer lockouts for
repeat offenders.⌉[

Login Limits: allowed failures, lockout length and longer lockouts for repeat offenders.

[⌊Lockouts: who is locked out, why and until when, with unlock, allow and block.⌉⌊
Lockouts: who is locked out, why and until when, with unlock, allow and block.⌉[

Lockouts: who is locked out, why and until when, with unlock, allow and block.

[⌊IP Rules: the visitor address setting and the allow and block lists.⌉⌊IP Rules:
the visitor address setting and the allow and block lists.⌉[

IP Rules: the visitor address setting and the allow and block lists.

[⌊Login page designer with templates and a live preview.⌉⌊Login page designer with
templates and a live preview.⌉[

Login page designer with templates and a live preview.

[⌊Activity log with filters and search.⌉⌊Activity log with filters and search.⌉[

Activity log with filters and search.

[⌊Hardening: your own login address, XML-RPC and more.⌉⌊Hardening: your own login
address, XML-RPC and more.⌉[

Hardening: your own login address, XML-RPC and more.

[⌊Email alerts for long lockouts, new administrators and two-factor turned off.⌉⌊
Email alerts for long lockouts, new administrators and two-factor turned off.⌉[

Email alerts for long lockouts, new administrators and two-factor turned off.

## Installation

 1. Upload the `knockgate` folder to `/wp-content/plugins/`, or install it from **Plugins
    > Add New**.
 2. Activate it.
 3. Open **Knockgate** in the admin menu. The dashboard checklist shows what to set
    up first.

Locked out? Add `define( 'QBLS_DISABLE', true );` to `wp-config.php`, sign in, fix
the setting, and remove the line again.

## FAQ

### I forgot my custom login address.

Look for the email “New login address” sent to the site admin address. If you can’t
find it, add `define( 'QBLS_DISABLE', true );` to `wp-config.php`, sign in at wp-
login.php, look at **Knockgate > Hardening**, and remove the line again.

### I locked myself out. What now?

Wait for the lockout to end, or sign in from another connection (for example your
phone on mobile data) and unlock your address under **Knockgate > Lockouts**. If
that is not possible, add `define( 'QBLS_DISABLE', true );` to `wp-config.php`. 
The plugin then does nothing until you remove the line.

### My site is behind Cloudflare. Will everyone share one address?

Not if **IP Rules > Visitor address** is set correctly. The plugin suggests the 
right setting, and the dashboard warns you if it looks wrong.

### A user can’t reach their email. How do they get in?

An administrator can turn two-factor off for that user from **Users > Edit user**,
and the user turns it on again later.

### Does two-factor work with the REST API and XML-RPC?

Apps and scripts should use application passwords, which skip two-factor by design.
Password sign-in through the REST API and XML-RPC is refused for two-factor users
unless you allow it.

### Does the plugin send data to Quintaphon?

No. See External services below. The only outside service this plugin can use is
Google reCAPTCHA, and only when you set it up.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Knockgate – Hidden Login, 2FA & Login Protection” is open source software. The 
following people have contributed to this plugin.

Contributors

 *   [ Quintaphon ](https://profiles.wordpress.org/quintaphon/)

[Translate “Knockgate – Hidden Login, 2FA & Login Protection” into your language.](https://translate.wordpress.org/projects/wp-plugins/knockgate)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/knockgate/), check 
out the [SVN repository](https://plugins.svn.wordpress.org/knockgate/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/knockgate/) by [RSS](https://plugins.trac.wordpress.org/log/knockgate/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.1

 * Author scans are blocked for every value of ?author=, not only plain numbers.
 * The dashboard checklist marks CAPTCHA as done only when the login form is protected.

#### 1.1.0

 * New name: Knockgate (was Better Login Security). Settings, log and exports carry
   over.
 * Every value from the settings screen is cleaned for its type as soon as it arrives.
 * The hidden wp-login.php shows the theme’s normal 404 page through the standard
   template functions.
 * The activity log can be kept for up to ten years.
 * Multisite network mode is now part of Knockgate Pro only; this plugin keeps settings
   per site.

#### 1.0.1

 * Settings screens escape every attribute where it is printed.
 * The sign-in after the two-factor step now ends the same way as a normal WordPress
   sign-in.
 * The activity log can be kept for up to 365 days.

#### 1.0.0

 * First release.

## Meta

 *  Version **1.1.1**
 *  Last updated **10 hours ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.2**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [captcha](https://wordpress.org/plugins/tags/captcha/)[hide login](https://wordpress.org/plugins/tags/hide-login/)
   [limit login attempts](https://wordpress.org/plugins/tags/limit-login-attempts/)
   [login security](https://wordpress.org/plugins/tags/login-security/)[two factor](https://wordpress.org/plugins/tags/two-factor/)
 *  [Advanced View](https://wordpress.org/plugins/knockgate/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/knockgate/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/knockgate/reviews/)

## Contributors

 *   [ Quintaphon ](https://profiles.wordpress.org/quintaphon/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/knockgate/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://buymeacoffee.com/quintaphon)