WordFence Blocked a Background Request to WordPress

wordfence firewall blocked a background request to wordpress - WordFence Blocked a Background Request to WordPress

Wordfence Security Firewall, as one of the best WordPress security plugin that helps to filter out malicious requests to the WordPress website. It is a PHP based application-level firewall meant to protect your WordPress site from different types of external attacks.

Though Wordfence Firewall can block background requests to the admin-ajax.php script, but sometimes it may even block some legitimate background requests from some plugins(ex. SiteOrigin Page Builder) or themes to the script and pops an alert to the user with messages like ‘Background Request Blocked’. 

wordfence background request blocked - WordFence Blocked a Background Request to WordPress
Sometimes it can get a bit aggressive and block you as well!Elementor widgets server error - WordFence Blocked a Background Request to WordPress For example, if you are using Elementor Page Builder, the error will look something like this. A similar type of error may happen with other page builders.

 

Let’s find out how you can help your customers to whitelist those false positives background requests and fix this similar type of issue related to a page builder.

 

Method 1 – Learning Mode

Usually, when Wordfence is installed for the first time, the Firewall will be in “Learning mode” for 7 days. During these 7 days, the site will not have full protection from the Firewall. Because at this time the Wordfence firewall will monitor your website admin activity and automatically whitelist or minimize “false positives”.

A false positive is when something gets blocked that you did not want to block.

To enable “Learning mode”,  follow the following steps.

  1. go to Wordfence Dashboard.
  2. From there click on the “Manager Firewall”.
  3. Finally, from the “Basic Firewall Options” section, set the “Web Application Firewall Status” to  “Learning Mode”.

Wordfence Learning Mode - WordFence Blocked a Background Request to WordPress

When installing or updating a new plugin or theme, multiple actions may be blocked. in that case, we can manually turn on “Learning Mode” again until any necessary parameters are whitelisted. and after reviewing the page or action that was being blocked set the “Web Application Firewall Status” back to “Enabled and Protecting”.

It’s important to reenable it, or the firewall will continue to whitelist potentially unsafe requests.

Method 2 – Whitelist admin-ajax.php

  1. go to Wordfence Dashboard.
  2. Go down to the “Whitelisted URLs” section
  3. Enter /wp-admin/admin-ajax.php in the URL box
  4. Select Param Type: POST Body for the dropdown
  5. Enter actions for the Param Name
  6. Next, click the ADD button
  7. Finally, click the SAVE CHANGES button in the top right corner

Wordfence Whitelisted URLs - WordFence Blocked a Background Request to WordPress

 

That’s it! I hope you found these solutions useful to solve the Wordfence lockout issue and enjoy the full benefit of the Wordfence plugin.

About This Author

My name is Parameshwar Roy (P. Roy), and I am a web developer. This is my personal blog to record my own thoughts. Though I am not a natural writer, I love to share my experiences. Hope my experiences will be useful to you...read more about me

Leave A Reply