How to turn off firewall safely: Expert tips for WordPress

S
Secuirty Team

10 min read

How to turn off firewall safely: Expert tips for WordPress

In the realm of web management, few things are as disruptive as a security firewall that inadvertently misidentifies an authorized administrator as a threat. Whether you are grappling with a "False Positive" during a critical update or troubleshooting a persistent plugin incompatibility, knowing how to turn off firewall settings in WordPress is a vital skill for any site owner.

However, disabling such a critical component should never be done haphazardly, as it leaves your digital assets vulnerable to exploitation. In this article, we will guide you through the procedures for disabling the most widely used security plugins available today. Let us take a closer look at each of them.

When should you disable a WordPress firewallLink to heading

When should you disable a WordPress firewall

Disabling a firewall in WordPress should never be your first reaction. A firewall is designed to block malicious traffic before it reaches your website, so turning it off can immediately increase security risks. While many users search for how to turn off firewall after encountering an error, it is crucial to understand when this action is truly justified. 

Below are the most common scenarios where temporarily disabling a WordPress firewall might be necessary.

Plugin conflict issuesLink to heading

Sometimes, a security firewall plugin can conflict with other plugins or themes. This often happens after installing a new plugin, updating an existing one, or modifying core settings. The result may include broken layouts, failed AJAX requests, blocked API calls, or unexpected functionality errors. 

In such cases, temporarily disabling the firewall can help determine whether it is the source of the conflict. If you are testing how to turn off firewall protection for troubleshooting purposes, ensure it is only a short diagnostic step. Once the issue disappears after deactivation, you can fine-tune specific rules instead of leaving your site unprotected.

403 or 500 server errorsLink to heading

A firewall may occasionally block legitimate traffic due to strict filtering rules. This can lead to 403 Forbidden errors or even 500 Internal Server Errors. For example, if certain requests are flagged as suspicious, the firewall might prevent them from loading properly. Before making deeper server-level changes, temporarily disabling the firewall helps confirm whether it is causing the error. 

Once identified, you should adjust the rule or whitelist the necessary request rather than permanently turning the firewall off.

Admin lockout problemsLink to heading

One of the most common reasons users explore how to turn off firewall settings is being locked out of the WordPress admin dashboard. This may happen if your IP address is mistakenly flagged as suspicious due to multiple login attempts, unusual behavior, or strict country-based restrictions.

If you cannot access the dashboard to change settings, disabling the firewall via FTP or hosting control panel may be required to regain access. After restoring entry, it is important to re-enable the firewall and configure proper IP whitelisting to prevent future lockouts.

Temporary troubleshooting onlyLink to heading

Turning off a firewall should always be a short-term diagnostic step, not a permanent solution. Even if you successfully learn how to turn off firewall protection to resolve an urgent issue, the purpose is to isolate the root cause of a technical problem not to operate without security.

Leaving your website without active protection exposes it to brute force attacks, bot traffic, and vulnerability scans. Therefore, firewall deactivation should be controlled, intentional, and temporary.

>>> Learn more: 15 Common signs that your WordPress website is under attack

Disabling Firewall via WordPress DashboardLink to heading

Disabling Firewall via WordPress Dashboard

This method applies to users who can still access their WordPress admin area but are experiencing plugin conflicts, false positives, blocked API requests, or unexpected 403 errors.

Before fully disabling a firewall, consider switching it to a less restrictive mode (if available). A complete shutdown should only be temporary for troubleshooting.

How to turn off Wordfence firewallLink to heading

Wordfence is one of the most widely used WordPress firewalls. It offers a “Learning Mode,” which is often a safer alternative to fully disabling protection.

Option 1: Switch to Learning Mode

  1. Go to Wordfence > Firewall in your dashboard.
  2. Click Manage WAF (or “All Firewall Options” in some versions).
  3. Locate Web Application Firewall Status.
  4. Select Learning Mode.
  5. Click Save Changes.

Learning Mode allows Wordfence to observe new traffic patterns without blocking them, which is ideal when testing new plugins or API integrations.

Option 2: Disable Wordfence firewall completely

  1. Go to Wordfence > Firewall.
  2. Open Manage WAF/All Firewall Options.
  3. Find Web Application Firewall Status.
  4. Select Disabled from the dropdown.
  5. Save changes.

Important:

If Wordfence is running in Extended Protection mode, disabling it from the dashboard may not fully stop the firewall. Wordfence loads early using PHP’s auto_prepend_file. In that case, additional steps may be required.

How to turn off Sucuri firewallLink to heading

Sucuri operates differently depending on your setup.

Important clarification

The Sucuri Security plugin does NOT control the cloud-based WAF directly.

If you are using:

  • Sucuri Plugin only → It handles monitoring and hardening.
  • Sucuri Cloud WAF (DNS-level protection) → It is managed in your Sucuri account dashboard, not inside WordPress.

If you are using the Sucuri plugin only

To disable plugin-level hardening:

  1. Go to Sucuri Security > Settings.
  2. Review active hardening features.
  3. Disable specific features that may interfere (rather than disabling everything).

The plugin itself does not provide a universal “Disable Firewall” toggle because the true firewall operates at the DNS level.

If you are using Sucuri Cloud WAF

To disable protection temporarily:

  1. Log in to your Sucuri account dashboard (on Sucuri’s website).
  2. Pause or disable the firewall from your site settings.

Alternatively, to bypass it:

  • Change your domain’s DNS A record to point directly to your hosting server’s IP instead of Sucuri’s Anycast IP.

Note: DNS changes may take time to propagate.

How to turn off All-In-One WP Security firewallLink to heading

All In One WP Security & Firewall uses a rule-based system and writes firewall directives directly into your .htaccess file (on Apache servers).

To disable firewall features:

  1. Go to WP Security > Firewall.
  2. Under the Basic Firewall Rules tab, uncheck Enable Basic Firewall Protection.
  3. Click Save Firewall Settings.
  4. Review additional tabs such as:
    • Additional Firewall Rules
    • 6G Blacklist Firewall Rules
    • Advanced Character Filtering

Disable rules individually if needed.

Warning:

Changes take effect immediately because the plugin modifies your .htaccess file. If your site breaks after saving, you may need to restore the .htaccess file manually via FTP.

Disabling firewall without admin accessLink to heading

Disabling firewall without admin access

If you are locked out due to a “403 Forbidden” error or IP block message, you will need server-level access.

You can use:

  • FTP client (such as FileZilla)
  • Hosting File Manager (cPanel, Plesk, etc.)

Rename the plugin folderLink to heading

This method forces WordPress to deactivate the plugin automatically.

Steps:

1. Connect to your server via FTP or File Manager.

2. Navigate to: 

/public_html/wp-content/plugins/

3. Locate your firewall plugin folder:

  • wordfence
  • sucuri-scanner
  • all-in-one-wp-security-and-firewall

4. Rename the folder (example: wordfence_old).

5. Refresh your site and attempt to log in again.

Renaming prevents WordPress from loading the plugin, effectively disabling it.

Once access is restored, rename the folder back and manage settings properly from the dashboard.

Remove Firewall Rules from .htaccessLink to heading

Some firewalls (especially All-In-One WP Security) write rules directly into .htaccess.

Steps:

1. Locate .htaccess in your WordPress root directory (/public_html/).

2. Enable “Show Hidden Files” if necessary.

3. Download a backup copy before editing.

4. Look for blocks such as:

# BEGIN All In One WP Security
...
# END All In One WP Security
or
# BEGIN WAF
...
# END WAF

5. Remove only the block between those markers.

6. Save and upload the file.

This immediately removes server-level firewall restrictions.

Note:

If your server runs Nginx, .htaccess does not apply. In that case, firewall rules may be inside your Nginx configuration.

Disable Wordfence Extended ProtectionLink to heading

When Wordfence runs in Extended Protection mode, it loads before WordPress using PHP’s auto_prepend_file.

To disable it completely:

1. Open your WordPress root directory.

2. Check for a file named .user.ini or php.ini.

3. Look for a line like: 

auto_prepend_file = '/home/youraccount/public_html/wordfence-waf.php'

4. Comment it out (if allowed) or remove that line.

5. Save changes.

In some hosting environments, this setting may also be configured in the hosting control panel’s PHP settings.

Important:

Removing this line stops Wordfence from loading before WordPress. The line:

define('WFWAF_STORAGE_ENGINE', 'mysqli');

does NOT disable the firewall. It only defines storage behavior.

Managing Cloud-level firewallsLink to heading

Managing Cloud-level firewalls

Cloud-level firewalls operate before traffic even reaches your server. Unlike plugin-based protection inside WordPress, these services filter traffic at the DNS or reverse proxy level. This means disabling a WordPress plugin will not affect cloud-based protection.

If your website is protected by Cloudflare, you must manage firewall rules directly from their dashboards.

Pausing Cloudflare Proxy and WAFLink to heading

If Cloudflare is blocking legitimate traffic or causing unexpected 403 errors, you have two temporary options:

Option 1: Pause Cloudflare entirely

  1. Log in to your Cloudflare dashboard.
  2. Select your domain.
  3. Go to Overview.
  4. Click Pause Cloudflare on Site.

This disables proxy protection and routes traffic directly to your origin server. Use this only for short troubleshooting sessions.

Option 2: Disable or Adjust WAF Rules Only

  1. Go to Security > WAF.
  2. Review Managed Rules and Custom Rules.
  3. Temporarily disable specific rules triggering false positives.

This is safer than pausing the entire proxy because DDoS protection and caching can remain active.

Whitelisting your IP instead of disablingLink to heading

In most cases, the firewall is blocking only your IP address. Instead of turning off protection globally:

  1. Go to Security > WAF > Tools (Cloudflare).
  2. Add your IP address to the Allowlist.

For Sucuri Cloud WAF:

  1. Log into your Sucuri dashboard.
  2. Navigate to Access Control.
  3. Add your IP to the allowlist.

Whitelisting ensures that only your traffic bypasses restrictions while the rest of the world remains protected. This is almost always the preferred solution.

What to do after turning off your firewallLink to heading

What to do after turning off your firewall

Turning off a firewall, even briefly, creates a vulnerability window. During this time, your site may be exposed to bots, brute force attacks, and vulnerability scans. Immediate follow-up actions are essential.

Checking for malware and security gaps

  • Once access is restored or troubleshooting is complete:
  • Run a full malware scan using your security plugin or hosting scanner.
  • Check WordPress core, themes, and plugins for unexpected modifications.
  • Review recent login attempts and user accounts.
  • Inspect file changes in critical directories such as:
    • /wp-admin/
    • /wp-includes/
    • /wp-content/

If your firewall was disabled for several hours or more, reviewing server logs is strongly recommended.

ConclusionLink to heading

Knowing how to turn off firewall protection safely is an essential troubleshooting skill for any WordPress site owner. Whether you are resolving plugin conflicts, fixing 403 errors, or recovering admin access, the key is to disable your firewall temporarily, identify the root cause, and re-enable protection immediately. 

A firewall is your first line of defense against bots, brute force attacks, and malicious traffic so it should never remain disabled longer than necessary. By following the expert steps outlined above, you can solve technical issues without compromising your website’s long-term security.

If you are tired of searching for how to turn off firewall every time a false positive or plugin conflict appears, it may be time to switch to a smarter solution. W7SFW (WordPress Firewall) is designed to run automatically without complex configuration, aggressive rule conflicts, or unnecessary admin lockouts. 

Instead of forcing you to disable protection just to fix an issue, W7SFW intelligently filters malicious traffic at the edge while allowing legitimate requests to pass smoothly. No constant toggling, no risky downtime. 

>>> Activate W7SFW today and protect your website the smarter way.

Related posts

Get In Touch
with our security experts.
Whether you need a custom enterprise plan or technical support, we are here to help. Expect a response within 24 hours.