-
Notifications
You must be signed in to change notification settings - Fork 0
Break glass
Being permanently locked out of your own site is also a security failure. Erfort ships two ways back in, and neither is a backdoor: both require access you would already need to own the site.
wp erfort off # stand every lockout protection down
wp erfort on # restore them
wp erfort status # read the current state, changes nothing
wp erfort off disables the login guard, two-factor, and the idle-timeout
logout. The passive protections (probe block, headers, version cloak) stay on,
because they cannot lock anyone out.
Add this to wp-config.php:
define( 'ERF_SHIELD_OFF', true );Same effect, and it survives a database that is not cooperating. Remove the line once you are back in.
The constant keeps its original
ERF_SHIELD_name even though the plugin is now called Erfort. Renaming a live constant would lock out exactly the people who need it most.
Every enrolment generates ten single-use recovery codes. If those are gone too, use break glass above, then reset enrolment from your profile screen.
Lockouts are stored as transients and expire on their own after fifteen minutes. If you can wait, waiting works.
Turning protections off on a live site to "see if it works" leaves that site
unprotected for as long as you forget to turn them back on. wp erfort status
is read-only and safe.