Close Menu
    Facebook X (Twitter) Instagram
    Need a Website?
    Canion DigitalsCanion Digitals
    • Home
    • Blog
      • News
      • Android
      • How to
      • Tech News
      • Online Tools
      • WordPress
      • Wellness Concept
    • Portfolio
    • Contact
    Canion DigitalsCanion Digitals
    Home » WordPress » How I Regained Access to My WordPress Site After Being Locked Out by Wordfence

    How I Regained Access to My WordPress Site After Being Locked Out by Wordfence

    September 21, 2024
    How to Regain Access to Your Site When Wordfence Locks You Out 0-40 screenshot

    Table of Contents

    • The Moment I Realized I Was Locked Out
    • Attempting to Fix It
    • Enter Wordfence Assistant
    • The Relief of Regaining Access
    • Conclusion and How You Can Fix the Same Issue

    If you’ve ever found yourself locked out of your own WordPress site, you know the frustration. I certainly felt it when I made a seemingly simple change to my Wordfence settings that caused all sorts of trouble. Here’s my story of how I was locked out and, more importantly, how I managed to get back in.

    It all started when I decided to tighten up my Wordfence security settings. I had set the firewall to block users if they exceeded more than 10 requests, thinking it would prevent brute force attacks. At the same time, I noticed that my wp-admin-ajax.php file was being flooded with requests, so I added it to the blocklist. In hindsight, that was a mistake, but at the time, it seemed like the right thing to do.

    The Moment I Realized I Was Locked Out

    How I Regained Access to My WordPress Site After Being Locked Out by Wordfence

    Everything seemed fine after I saved the settings and tried to Navigate around my WordPress site but to my dismay, I was greeted with a “403 Forbidden” screen. I quickly realized that Wordfence had blocked my IP address, and the admin-ajax.php block was preventing me from even using the WordPress dashboard. I felt like I was in a loop of frustration—every time I tried to log by sending an Unlock link to my email, Wordfence would block me instantly.

    Attempting to Fix It

    I immediately jumped into action. My first instinct was to access my file manager through my hosting provider. I renamed the Wordfence plugin folder to disable it temporarily. This gave me access to the WordPress dashboard again, but I knew I couldn’t leave Wordfence disabled forever—it’s essential for site security.

    I tried to modify the firewall settings directly through the database and file manager, but I couldn’t find a clear way to change them. I was stuck, unsure of what to do next. That’s when I realized that Wordfence was still treating my IP as a threat, and the admin-ajax.php block was the main issue.

    Enter Wordfence Assistant

    After some research and feeling like I had exhausted all other options, I decided to try Wordfence Assistant, a plugin designed for situations just like this. Once I installed it, I used it to disable the Wordfence firewall. With the firewall off, I was able to access the settings again without being blocked. I immediately removed the blocked IPs from the list and unblocked wp-admin-ajax.php.

    The Relief of Regaining Access

    Once I had removed the blocks and re-enabled the firewall, I logged back into my site without any issues. It was a relief to see everything working smoothly again, and I had learned a valuable lesson about being cautious with blocking critical WordPress components like admin-ajax.php.

    Conclusion

    If you ever find yourself in a similar situation where Wordfence locks you out, follow these steps to regain access:

    How I Regained Access to My WordPress Site After Being Locked Out by Wordfence
    1. Disable Wordfence via File Manager or FTP: Access your site’s file manager or use an FTP client to rename the Wordfence plugin folder (e.g., to wordfence_bak). This will disable the plugin and allow you to log in.
    2. Log in to Your Dashboard: Once disabled, attempt to log into your WordPress dashboard.
    3. Install Wordfence Assistant: After logging in, install the Wordfence Assistant plugin to manage your firewall settings without restrictions.
    4. Disable the Firewall: Use the assistant to turn off the Wordfence firewall temporarily.
    5. Remove Blocked IPs: Check the blocking settings and remove any IPs that may have been blocked erroneously, including your own.
    6. Unblock Critical Files: Ensure that important files like wp-admin-ajax.php are not on the blocklist.
    7. Re-enable Wordfence: Rename the Wordfence plugin folder back to its original name to reactivate it.
    8. Adjust Firewall Settings: After reactivation, review and adjust your firewall settings to avoid future lockouts.

    In my case, the lesson was clear: be careful with the settings you modify in Wordfence. But if things go wrong, there’s always a way back in—thanks to a little bit of troubleshooting and Wordfence Assistant.

    Firewall Website Security WordFence
    Share. Facebook Twitter WhatsApp Telegram Copy Link Pinterest LinkedIn Email
    Previous ArticleVivo V40 Lite: A Mid-Range Smartphone with Premium Features
    Next Article Buying Cryptocurrency in the U.S.: Challenges and Solutions

    Related Posts

    Blockchain.com Eyes Nigeria Office as Africa’s Crypto Regulations Take Shape

    May 27, 2025

    Jumia Opens Logistics to Third-Party Sellers in Profitability Push

    May 14, 2025

    WhatsApp Fights $220 Million Fine in Nigeria: What This Means for Users

    May 2, 2025

    Buying Cryptocurrency in the U.S.: Challenges and Solutions

    September 22, 2024
    Add A Comment
    Leave A Reply Cancel Reply

    Facebook X (Twitter) Instagram
    • Homepage
    • Contact
    • Cookie Policy
    • Privacy Policy
    © 2025 Canion Digitals.

    Type above and press Enter to search. Press Esc to cancel.