Skip to content 99% OFF 🎉 Anniversary Sale 99% OFF Shared Hosting Use Code HURRYUP Claim Offer 99% OFF Hosting
99% OFF Hosting — Code HURRYUP
Products
AI Website Builder New VPS Hosting Cloud Servers Web Hosting cPanel Hosting Dedicated Servers Domains
Company
About Documentation Support Center Contact Get Started Call +91 75795 45488
Login
Hosting Panel — cPanel & Billing Console Panel — VPS Management
ALL SYSTEMS OPERATIONAL
WordPress

Security Plugin Locked You Out of WordPress? Fix It Fast

Getwebup 6 min read

You didn't forget your password. You didn't get hacked. You just tried to log in to your own site and got a wall of text instead — "Access Denied," "Your IP has been blocked," or a blank white page where wp-admin used to be. Nine times out of ten, that's not an attacker. That's Wordfence, Sucuri, iThemes Security, or All In One WP Security doing exactly what you told it to do, just a little too enthusiastically.

The Symptom

A few common flavors, all pointing at the same root cause:

  • You log in to /wp-login.php and get a plain-text message like "Your access to this site has been temporarily disabled" or "Your IP has been permanently blocked."
  • The whole front end returns a blank page or a 403 the moment the plugin's firewall rule kicks in — not just wp-admin.
  • You mistyped your password twice this morning (rushing, phone autocorrect, whatever) and now every attempt bounces instantly, even with the right credentials.
  • You're on a hotel Wi-Fi, mobile hotspot, or VPN with an IP flagged on a shared blocklist the plugin subscribes to, and it's rejecting you before your login form even loads.

Why This Happens

Security plugins ship with a login rate-limiter and a firewall that both run before WordPress core even checks your username and password. That's the point — it's supposed to stop brute-force bots. The trouble is the same logic can't always tell the difference between a bot hammering /wp-login.php and you fumbling your password twice before coffee.

The usual triggers

  • Login attempt limits set too aggressively — Wordfence's default is often 4 failed attempts within 20 minutes before a lockout, which is easy to hit if a saved browser autofill is stale.
  • Country blocking — you traveled, or your ISP routed you through a different region, and the plugin's geo-block rule caught your own IP.
  • Shared IP blocklists — some plugins pull in real-time blacklist feeds. A previous tenant on your mobile carrier's IP pool got flagged, and now you inherit the block.
  • A bad firewall rule the plugin wrote into .htaccess — Sucuri and a few others insert deny rules directly into .htaccess rather than only checking in PHP, so even static pages start throwing 403s.
  • Two security plugins running at once — each one's firewall reacts to the other's redirects and false-flags the traffic as suspicious.

The Fix: Getting Back In

Since the plugin is blocking you at the WordPress or web-server layer, you need a way in that bypasses PHP execution entirely. cPanel gives you two: File Manager and phpMyAdmin. SSH works too if you have it.

1. Rename the plugin folder via cPanel File Manager

This is the fastest fix and doesn't touch any data. Renaming a plugin's folder deactivates it instantly — WordPress can't find the plugin file it expects, so it just stops loading.

  1. Log in to cPanel → File Manager.
  2. Navigate to public_html/wp-content/plugins/ (adjust the path if WordPress is installed in a subfolder).
  3. Right-click the plugin's folder and choose Rename. For example, change wordfence to wordfence-disabled.
  4. Try logging in to /wp-admin again. You should get straight through.
  5. Once you're in, go to Plugins in wp-admin — it'll show as deactivated with a "plugin file doesn't exist" notice. Rename the folder back to its original name, then reactivate and reconfigure the plugin properly (see the Prevention section below) before you close the tab.

If you'd rather use SFTP/FTP, the same rename trick works from FileZilla or your client of choice — same path, same result.

2. No File Manager access? Use SSH or WP-CLI

On a VPS or an account with SSH enabled, this is one command:

wp plugin deactivate wordfence --allow-root

Or, without WP-CLI, just rename the folder from the shell:

mv wp-content/plugins/wordfence wp-content/plugins/wordfence-disabled

3. Clear the lockout at the database level

Some plugins store lockout/blocklist data in the database rather than options that clear on deactivation. If renaming the folder doesn't fully clear things, open phpMyAdmin from cPanel and check the wp_options table for rows starting with the plugin's prefix — for Wordfence that's anything beginning wordfence_. You can safely delete rows like wordfence_wfLockedOut or similar lockout-specific entries. Don't delete the plugin's whole option set unless you're planning to reinstall it from scratch, since that wipes its configuration too.

4. Check .htaccess for a leftover deny rule

If the front end is also 403-ing (not just wp-admin), open public_html/.htaccess in File Manager and look for a block wrapped in comments like # BEGIN Sucuri or similar. Comment it out or remove it temporarily, confirm the site loads, then re-add it once you've fixed the underlying rule inside the plugin's settings.

Once You're Back In: Fix the Root Cause

Don't just log back in and move on — reactivating the plugin with the same settings just resets the trap. Do these three things first:

SettingWhere to find itWhat to change
IP whitelistWordfence → All Options → Rate Limiting, or Firewall → Whitelisted IPsAdd your home/office static IP, or your VPN's exit IP if you use one consistently
Login attempt thresholdFirewall → Brute Force ProtectionRaise from 4 to something like 10 attempts before a lockout, with a shorter lockout duration
Country blockingFirewall → Country Blocking (if enabled)Remove your own country, or switch from "Block" to "Just log" while you test

If you don't have a static IP, most plugins let you whitelist a range or a hostname instead of a single address — check the plugin's documentation for CIDR notation support.

Prevention

  • Keep one security plugin, not two. Running Wordfence and Sucuri together doubles the false-positive surface for no real benefit.
  • Always keep SFTP or cPanel File Manager access handy as your fallback login path — it's the one door a WordPress-layer plugin can never lock.
  • Test firewall changes in "log only" mode first before switching to "block," so you can see what would have been blocked without actually locking anyone out.
  • Whitelist your office/home IP the day you install the plugin, not after the first lockout.
  • Set a calendar reminder to review lockout logs monthly — a rate limit that's too tight shows up as a string of your own failed logins mixed in with real bot noise.

None of this means the plugin is doing something wrong. A login firewall that never blocks anyone isn't doing its job. The goal is tuning it so it blocks bots, not you.

Frequently asked questions

Will renaming the plugin folder delete my security plugin's settings?

No. Renaming the folder only stops WordPress from loading the plugin's code — its settings stay in the database untouched. Rename it back to the original folder name and everything reactivates as it was.

I don't have SSH or File Manager access. What else can I try?

Use SFTP with FileZilla or Cyberduck to rename the plugin folder the same way, or ask your host to disable the plugin from the server side temporarily if you're on managed hosting without direct file access.

Why did I get blocked when I typed my password correctly?

Most login rate-limiters count failed attempts from earlier in the day, including ones from browser autofill trying an old saved password, or a mobile app retrying in the background. The block often outlives the actual mistake.

Should I just disable the plugin's firewall instead of tuning it?

Only as a short-term step. A login rate limiter is one of the most effective defenses against brute-force attacks on wp-admin, so turn it back on once you've whitelisted your IP rather than leaving the site unprotected.

Can this happen with server-level protection too, not just WordPress plugins?

Yes — cPanel's cPHulk works the same way but blocks at the server level instead of inside WordPress. If renaming the plugin folder doesn't fix it, check WHM > Security Center > cPHulk Brute Force Protection for a separate IP block.

#wordpress #wordfence #security-plugin #lockout #firewall #troubleshooting

Keep reading

Chat with Support