A Wordfence block can lock out a real administrator or stop a legitimate form, checkout, page builder, or AJAX request. Start by reading the exact block message and using Wordfence’s unlock option if it appears. Only disable the plugin after the unlock email and wp-admin recovery paths fail.
Quick checks before changing settings
Start with the block page itself. Wordfence says its block pages include a reason, and that reason tells you which setting to adjust later. Copy the visible reason text or take a screenshot before you refresh, switch networks, or clear caches.
Check which message you are seeing:
- “You are temporarily locked out” usually points to a brute-force login rule, such as too many attempts or an invalid username.
- “Your access to this site has been limited” usually points to an IP, country, rate-limiting, or advanced blocking rule.
- “A potentially unsafe operation has been detected” usually means the Wordfence firewall blocked a specific request.
- A plain 403, 406, or 500 error with no Wordfence wording may be coming from the host firewall or ModSecurity instead.
If you are an administrator and the block page offers an unlock email, use that first. Wordfence’s blocking troubleshooting guide describes the unlock email as the normal recovery path for site owners.
Also check for caching. The same Wordfence guide notes that block pages include generated time information and warns that cached block pages can make a block look current after the underlying issue has changed. If the time on the block page looks old, clear your site cache, CDN cache, and browser cache before assuming the rule is still active.
Fix a confirmed Wordfence block
1. Unlock yourself, then inspect Live Traffic
After you regain wp-admin access, go to Wordfence → Tools → Live Traffic and find the blocked request. Wordfence’s Live Traffic documentation explains how those entries show visits and security events, which makes this the cleanest way to avoid guessing.
Use the reason to decide the next step:
- If a real admin login was blocked for invalid usernames or too many failures, review Wordfence → Firewall → All Firewall Options → Brute Force Protection. Wordfence’s brute force protection documentation covers the lockout, invalid username, leaked password, and login failure controls.
- If a safe form, checkout, page builder, or
admin-ajax.phprequest was blocked, review the matching firewall event before allowlisting it. - If the block came from rate limiting, lower the strictness only for the affected rule instead of turning off the whole firewall.
- If country blocking or an IP block caused it, remove only the affected country or IP rule.
Do not allowlist a request just because it belongs to an admin user. Confirm the action is expected, especially for POST requests, file uploads, account creation, checkout actions, and AJAX calls.
2. Adjust the narrowest Wordfence setting
If the block reason points to a known Wordfence setting, change the smallest setting that explains it.
For login lockouts, review the failed login limit, invalid username handling, and lockout duration in Brute Force Protection. Be careful with “Immediately lock out invalid usernames” on sites with multiple real users, because a mistyped username can lock out a legitimate person.
For firewall false positives, use the Live Traffic entry to identify the blocked URL or parameter. If the request is legitimate, adjust the matching firewall behavior or allowlist only that request. Wordfence documents the broader firewall options separately from brute-force controls, so most false positives can be corrected without disabling all protection.
If the problem happens while saving a known-safe plugin or theme setting, Wordfence’s firewall learning mode can help the firewall learn legitimate actions. Use it briefly, repeat only the trusted action, then return the firewall to enabled protection.
Avoid leaving the firewall disabled as a fix.
Check the host firewall for plain server errors
Not every security block is caused by Wordfence. A host-level WAF or ModSecurity rule can block admin-ajax.php, REST API requests, checkout submissions, or plugin settings saves before WordPress finishes the request.
Use this branch when the browser shows a plain 403, 406, or 500 with no Wordfence wording, or when the error page looks like a server or hosting panel response instead of a Wordfence block page.
Ask your host to check the WAF or ModSecurity log for the exact time, URL, and your public IP address. If the error happens only when saving a specific plugin or theme setting, repeat that exact save while host support watches the log. Changing Wordfence settings will not fix a block created before WordPress receives the request.
Last resort: disable Wordfence through files
Use this only when the unlock email fails and you cannot reach wp-admin.
Connect with your host’s file manager or SFTP and rename:
wp-content/plugins/wordfence
to something like:
wordfence-disabled
WordPress treats the renamed folder as a missing plugin and deactivates it. This is the same general recovery method WordPress documents for deactivating plugins when admin access is unavailable, and Wordfence also documents plugin-folder renaming in its lockout recovery guidance.
After you log in, do not immediately rename the folder back and carry on. First clear caches, review what caused the lockout, and decide which setting needs to change before reactivation.
How to confirm it worked
Test from the same network where the block happened. If you switched from mobile data to office Wi-Fi, you may only have bypassed a network or IP-based block.
Confirm these items:
- The blocked admin user can log in without triggering another lockout.
- The original action works, such as saving a form, submitting checkout, using a page builder, or loading wp-admin.
- Wordfence → Tools → Live Traffic no longer shows a fresh block for the same request.
- The site still blocks unwanted behavior, such as repeated invalid logins, if that protection was part of your original setup.
If the old block page still appears after the rule is fixed, clear the site cache, CDN cache, and any server cache. Wordfence specifically warns that cached block pages can make a resolved issue look active.
Rollback and recovery notes
Before changing firewall, brute-force, or rate-limiting settings, note the original values or export the Wordfence configuration if your setup uses configuration templates. That gives you a clean rollback if a relaxed rule allows unwanted traffic.
If you disabled Wordfence by renaming the plugin folder, reverse the recovery carefully:
- Keep the folder renamed until you know which setting caused the block.
- Adjust or reset the problematic setting using Wordfence’s recovery guidance.
- Rename the folder back to
wordfence. - Reactivate Wordfence.
- Re-enable the firewall and confirm the same block does not return.
Contact your host when the error is a bare server 403/406/500, when admin-ajax.php fails without a Wordfence block page, or when clearing caches does not remove a stale block page. Contact Wordfence support when you have the block reason, the affected URL or action, your role on the site, and a screenshot of the block page.