thefrosty / wp-login-locker
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
Requires
- php: ^8.4
- ext-openssl: *
- composer/installers: ~2.0
- dwnload/wp-settings-api: ^4.2.1
- php-di/php-di: ^7.1
- symfony/http-foundation: ^8.1.11
- thefrosty/wp-utilities: ^4.3.1
Requires (Dev)
- ext-simplexml: *
- dealerdirect/phpcodesniffer-composer-installer: ^1.0.0
- oscarotero/env: ^2.1
- phpcompatibility/php-compatibility: *
- phpunit/php-code-coverage: ^11
- phpunit/phpunit: ^11
- rector/rector: ^2.0
- roots/wordpress: ^7.0
- slevomat/coding-standard: ~8.18
- squizlabs/php_codesniffer: ^3.2
- thefrosty/wp-utilities-dev: dev-main
- vlucas/phpdotenv: ^5.6
- wp-cli/wp-cli: ^2.12
- wp-coding-standards/wpcs: ^3.1
- wp-phpunit/wp-phpunit: ^7.0
- yoast/phpunit-polyfills: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-11-27 23:32:07 UTC
README
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--sendto email it to the user instead, or--porcelainto only output the link.
