Search by

thefrosty / wp-login-locker

thefrosty

Disable direct access to your sites /wp-login.php script, plus user notifications based on actions.

Package info

github.com/thefrosty/wp-login-locker

Type:wordpress-plugin

pkg:composer/thefrosty/wp-login-locker

Statistics

Installs: 348

Dependents: 0

Suggesters: 0

Stars: 6

Open Issues: 0

v3.0.1 2026-11-27 23:31 UTC

README

Login Locker

PHP from Packagist Latest Stable Version Total Downloads License Build Status codecov

Disable direct access to your sites /wp-login.php script plus user notifications based on actions.

Package Installation (via Composer)

To install this package, edit your composer.json file:

{
    "require": {
        "thefrosty/wp-login-locker": "^3.0"
    }
}

Then run:

$ composer install thefrosty/wp-login-locker

Or, run:

$ composer require thefrosty/wp-login-locker:^3.0

Getting into wp-login.php

Direct access to /wp-login.php is blocked unless the browser has a valid Login Locker cookie. The cookie is set when the plugin is activated, and when a signed login link is used. It lasts for the Cookie Expiration and Cookie Expiration Unit settings (default 1 year). To get a login link:

  • Email me a login link: enter your username or email address on the locked wp-login.php page. Requests are rate limited, and the page shows the same message whether or not the account exists. The link is valid for 15 minutes (filterable with login_locker/login_link_ttl, in seconds).
  • New login emails: each "new login" notification includes a login link, valid for 7 days.
  • WP-CLI: wp login-locker link <user> prints a 15 minute link for a user ID, username or email address. Add --send to email it to the user instead, or --porcelain to only output the link.