What is Wordfence?
Wordfence is a security plugin for web sites that use WordPress. It provides various features and configuration options for site owners to protect their sites from intrusion.
If you have been blocked or locked out from a site that is not your own
Please contact the site owner to regain access. If you believe you should not be blocked, it is possible that the owner has chosen settings that are too strict, or they may have a server configuration issue that causes unintended blocking.
Note that some site owners choose to block countries where they do not conduct business or VPN services where different visitors appear to visit from the same IP address.
If the site owner hasn’t provided instructions on the block page with details on how to contact them, then here are some tips below to try to contact the site owner.
They may have accounts with Facebook, Twitter or LinkedIn, for example, that you can search for.
Using the site below, you can do a WHOIS search of the domain name, which may list the site owner’s email address in the domain name registrant information:
If the site has a contact page then Google may have a cached copy of their contact page which you can view. This may list an email address or phone number. Note that a contact submission form will not work on a cached copy of a contact page. You can do a Google search to see if they have a contact page by running one or both of these advanced Google search operators:
If they do have a contact page listed in a Google search which is cached, then you can use the ‘down arrow’ icon and click on the ‘Cached’ button to view that page.
If you locked yourself out
The following instructions are for site owners. If you are trying to regain access to a site that you do not own or manage, please contact the site owner for access – see the section above on this page for tips on contacting the site owner.
First, please make sure that it’s actually Wordfence that is locking you out of your site. There are many plugins that offer a “lock out” feature. See the “Block Reasons” section below to determine if you were blocked by Wordfence. If you post on the forums for assistance, make sure you include the “Reason: [explanation]” text or a screenshot of the locked-out page so that we can tell you what to change to prevent getting locked out in future.
If you are an admin on the site, the blocking page offers to send you an email to unlock your own access. On most modern hosts, these emails should arrive within seconds or minutes. If your site is unable to send email, or if it takes so long to arrive that the email’s link has already expired when you receive it, see the end of this article for another option.
Note: Wordfence includes a “Generated by Wordfence” message at the bottom of the blocking page, which shows the date/time that the message was generated and the date/time from your browser. If these times are not close together, it is very likely that the page has been cached incorrectly, despite the use of headers that should prevent caching. If your host uses a cache such as Varnish, it can sometimes be the cause, and you may need their help to prevent caching pages that should not be cached.
You are temporarily locked out
If you see this message, it means your IP address has been been blocked because the login attempt violated a Brute Force rule in Wordfence. You may have attempted a login with an invalid username or you may have made more attempts to log in than are allowed. You will be locked out for the time period the site owner has specified in Wordfence’s “Brute Force Protection” options. If you are an admin on the site, use the function provided on the “You are temporarily locked out” page to regain access to your site. If you are not an admin on the site, contact the site owner for assistance.
Your login attempt has been blocked because the password you are using exists on lists of passwords leaked in data breaches.
If you see this message when trying to log in to your site, it’s because we’ve found your password on a list of breached credentials. When big websites are breached, user data is sometimes leaked, including passwords. These leaks are used to compile lists of passwords. Malicious actors run bots that make large amounts of login attempts on WordPress websites using those passwords. There are several scenarios in which you are at risk:
1. Your password may by pure coincidence be the same as one on such a list. Bots will try these passwords on a variety of sites and may eventually find a match on your site.
2. If you are using the same email or username-password combination on your WordPress website as you have used on other sites in the past and those credentials were at some point leaked, only one attempt may be needed to breach your site.
If you are an admin using a leaked password you may see a notice in WordPress on all admin pages prompting you to change your password. Please change your password to a safe password immediately. As soon as your IP changes (which can happen under many different circumstances) you will otherwise be locked out of your site as described above.
You can enter your email address here to see if it has appeared in leaks: https://haveibeenpwned.com/
For your security, we will block any attempts to log in with passwords that exist on breached password lists. You can regain access to your site by resetting your password, and choosing a new, strong password. If another plugin or your theme prevents password resets on your site, you can also temporarily disable Wordfence, log in, and then change your password. (See “Forcefully regain access to your site” below.)
It’s possible to disable this feature in Wordfence. Read more about the option here.
You can also read more about why we implemented this feature on our blog.
Your access to this site has been limited
If you see this message it means your IP address has been blocked by the Wordfence Firewall by an option configured by the site owner. On the page you will see a “Reason” describing why you were blocked. If you are an admin on the site you can use this reason to adjust your Wordfence settings. This may be Country Blocking or Rate Limiting. If you are not an admin on the site, contact the site owner for assistance.
403 Forbidden. A potentially unsafe operation has been detected in your request to this site.
If you see this message it means Wordfence has blocked you for violating a Firewall rule. If you are an admin on the site, check “Live Traffic” and locate the request that was blocked. If you are sure that the request is safe and should not be blocked, you can allowlist the action from there. If you are not an admin on the site, contact the site owner for assistance.
403 Forbidden. WHAT? Why am I seeing this?
If you see this message it means your IP address is on the Wordfence IP Blocklist. This blocklist contains the top number of IP addresses that are currently engaged in attacks on WordPress websites. The page provides you with a form you can use to make a report if you think you should not have been blocked. Even if you are not doing anything bad, other people using the same IP address may be. In the vast majority of cases we will therefore not remove your IP from the blocklist. We recommend that you reach out to your Internet Service Provider or VPN provider so that they can track down the source of the malicious traffic coming from the IP address you are using.
Forcefully regain access to your site
If you have lost access to your site and can not use any of the fixes above, you can deactivate Wordfence via the file system. You can do that as follows:
- Connect to your server using the method your normally use to upload files. Most people either use FTP or SFTP to do this.
- Rename the Wordfence folder located in wp-content/plugins/wordfence/.
The above procedure will immediately deactivate Wordfence, so if Wordfence is the blocking agent, you should now be unblocked. If you are still seeing a message from Wordfence that you’re locked out, make sure you disable any caching plugins like W3 Total Cache, or clear their cache. If you can’t access the site to disable the caching plugin, you may have to temporarily rename the caching plugin directory to disable it. You may also have to clear any caches on a front-end caching proxy if you have an advanced configuration.
In the highly unusual case that you don’t have access to your own files on your server, you will need to log a support call with your web hosting company or whoever manages your server and ask them to rename the wp-content/plugins/wordfence folder.
How to reactivate Wordfence once you’re regained access:
Once you have disabled Wordfence by renaming the folder, if you rename the folder back to the original name, you may be locked out again. Here is how you avoid this from happening:
- Don’t rename the Wordfence folder back to the original name yet.
- Install the Wordfence Assistant plugin. You can find it by going to Plugins and Add New. Then do a search for “wordfence assistant” without quotes. You can also find it on this page in the official Wordfence plugin repository.
- Activate the plugin.
- Go to the “WF Assistant” menu.
- Click the button to disable the Wordfence firewall.
Now you can rename the Wordfence folder back to the original name and you won’t be locked out. Once Wordfence has been reactivated, disable or adjust the feature of Wordfence that locked you out.
Then reactivate the Wordfence firewall by going to the Wordfence Firewall Options page, change the Web Application Firewall Status to “Enabled and Protecting”, and turn on “Enable Rate Limiting and Advanced Blocking” in the Rate Limiting section, and then hit Save Changes.
Next, on the Firewall Options page, click the button titled “Optimize the Wordfence Firewall” and follow the steps provided.
You can then optionally uninstall the Wordfence Assistant plugin.