Home/Blog/WordPress Fixes
WordPress Fixes

Locked Out by Wordfence? How to Safely Regain Access

By Christy Sparks
Published Jun 28, 2026
8 min read

TL;DR

  • Wordfence locked you out because it saw too many failed logins, a new IP address, or a firewall rule. It is usually a temporary block, not damage to your site.
  • The fastest safe fixes: check your email (and spam) for Wordfence’s unlock link, wait out the timer, or whitelist your IP. Do not uninstall Wordfence.
  • Short on time? Hire us today and we’ll get you sorted.

Get Me Back In →

Wordfence is installed on over four million WordPress sites and is genuinely good at blocking brute force attacks, scanning for malware, and enforcing login security. The problem is that it does not always distinguish between you and an attacker. Mistype your password a few times or log in from a new IP, and Wordfence locks you out with the same efficiency it uses on actual threats.

Do not uninstall Wordfence to regain access. Removing your security plugin to get back in is like removing your front door lock because you lost your keys. There are safer ways.

Locked out right now and need help fast?

Don't delete plugins blindly. We will diagnose the lockout, back up your site, and get you back in without weakening your security.

Hire Us Today →

Temporary Lockout (Too Many Login Attempts)

Wordfence tracks failed login attempts by IP address and blocks you after a configurable number of failures. You will see "Your access to this site has been temporarily limited" with a countdown.

Option 1: Wait it out. If the lockout is 15-30 minutes, this is the simplest fix. Option 2: Check your email (including spam) for an unlock link from Wordfence. Option 3: Change your IP by restarting your router or switching between Wi-Fi and cellular data.

Permanent IP Block

If there is no countdown or you have been locked out repeatedly, Wordfence may have permanently blocked your IP. Waiting will not resolve this.

The FTP method: Access your site through FTP or hosting file manager. Navigate to wp-content/plugins and rename the wordfence folder to wordfence-disabled. Log into WordPress, rename the folder back via FTP, then immediately go to Wordfence, Firewall, Blocking to remove your IP from the block list and add it to the whitelist.

Two-Factor Authentication Problems

If your authenticator app is lost or your phone died, you cannot get past 2FA even with the correct password. If you saved recovery codes, use one to log in. If you did not, rename the wordfence plugin folder via FTP to disable 2FA, log in, set up 2FA again with a new device, save your recovery codes this time, and re-enable the plugin. Your settings are stored in the database and will be preserved.

Locked out and not comfortable with FTP?

Send me what changed and I will help you find the safest next step. I can regain your access without disabling your security permanently.

Get a Plugin Risk Check →

Firewall Blocking Your Entire Site

In rare cases, a misconfigured firewall rule blocks both admin and public-facing pages. This usually happens when Learning Mode is switched to Enabled and Protected too early. Via FTP, look for .user.ini in wp-content that references the Wordfence firewall. Rename this file to disable the extended firewall without deactivating the plugin entirely. Then set Firewall Status back to Learning Mode for at least a week.

Country Blocking While Traveling

If Wordfence's country blocking is enabled and you are abroad, your login will be denied even with correct credentials. Use a VPN to connect from a non-blocked country. If you do not have a VPN, use the FTP method, then whitelist your current country or disable country blocking temporarily.

Preventing Future Lockouts

  • Whitelist your IP address in Wordfence Firewall settings
  • Save 2FA recovery codes in a password manager
  • Set reasonable lockout thresholds — 20 failed attempts is more practical than 5
  • Enable the unlock email feature for self-service recovery
  • Document your FTP credentials somewhere accessible when locked out of WordPress

When to Get Help

If the FTP methods are outside your comfort zone, or if you have already tried and something went wrong, stop. Every file change while locked out is a change you cannot verify through the admin. We resolve Wordfence lockouts regularly through our WordPress Plugin Fix service. Also see our guide on how to fix a broken WordPress website.

Security should protect you, not lock you out

Don't guess — let's check it safely first. I will get you back in, verify your settings, and make sure you have a recovery plan for next time.

Request a Plugin Fix →

Frequently Asked Questions

Q: Will renaming the Wordfence plugin folder delete my settings?

No. Wordfence stores configuration in the database. Renaming the folder deactivates it temporarily, but all firewall rules, scan settings, and block lists remain when you rename it back.

Q: Is it safe to leave Wordfence disabled while I fix the problem?

For a few hours, yes. Your site existed before Wordfence was installed. Re-enable it as soon as you have resolved the lockout and whitelisted your IP.

Q: Can Wordfence lock out my website visitors?

Yes, if the firewall is misconfigured or country blocking is enabled. Misconfigured rate-limiting can also block visitors who browse quickly — including search engine bots. Check Live Traffic for blocked IPs.

Q: I switched from Wordfence to another plugin and my site is slower. Related?

Possibly. Wordfence may have left firewall rules in your .htaccess or .user.ini file. Check both for Wordfence entries and remove them. Also check whether database tables starting with wf are still present.

Q: My developer set up Wordfence and I do not have FTP access. How do I get back in?

Contact your hosting provider. Most hosts can rename the plugin folder on your behalf after verifying your identity. This is also a good time to get your own FTP credentials.

Q: Does Wordfence work with other security plugins like Sucuri?

Running two security plugins simultaneously is not recommended. Their firewall and scanning features can conflict, causing false positives, performance issues, and additional lockouts. Choose one and configure it properly.

Q: Wordfence says it detected "modified files" after a WordPress update. Is my site hacked?

Usually no. WordPress updates modify core files, and Wordfence reports those modifications. If the files match the expected WordPress version, the scan is reporting the update itself, not a hack.

← Back to All Posts