Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Wordfence blocking form submissions or REST API: how to fix it

OPS-240High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

Wordfence is a WordPress security plugin. It includes a web application firewall (WAF), which inspects each request and blocks ones that look like attacks, plus rate limiting and country or IP blocking.

Most form plugins and page builders send submissions as a POST request to admin-ajax.php or to the REST API under /wp-json/. If Wordfence decides that request looks malicious, it returns a 403 error or a block page. This is called a false positive: a legitimate request treated as an attack.

Why it costs you leads or sales

The form looks fine, and you may never see an error. The visitor clicks Send, gets a vague message such as "There was an error" or sees nothing at all, and leaves. No email arrives, no CRM record is created, and your conversion tracking never fires because the success step is never reached.

Where a Wordfence block breaks the funnel
  1. Visitor fills formPage loads and the form looks fine
  2. POST to admin-ajax.php or /wp-json/Wordfence WAF inspects the request
  3. Email and CRMNever receive the lead
  4. Thank-you page and conversion tagNever reached, so no conversion is recorded

The page loads normally, but the form request is rejected before WordPress can process it.

How to check if your site has it

Find blocked form requests in Wordfence
  1. Open Live TrafficWordPress

    In WordPress admin go to Wordfence > Tools > Live Traffic. Set the filter to show Blocked by firewall, or look for requests to admin-ajax.php and wp-json.

  2. Submit your form and watchWordPress

    Send a test submission with realistic text (a URL, a longer message) and check whether a new entry appears with a blocked or 403 status.

  3. Read the ruleWordPress

    Click the entry to see which firewall rule or parameter triggered it, for example a message field matched an XSS or SQL injection rule.

  4. Check the firewall logWordPress

    Go to Wordfence > All Options and check the Rate Limiting and Blocking settings. Also look at Wordfence > Blocking for IP, country or range blocks that could hit real visitors.

  5. Check the browser

    Open DevTools > Network, submit the form and look for a 403 or 503 response on the POST request.

How to fix it

Allow the legitimate request
  1. Identify the exact rule and fieldWordPress

    From the Live Traffic entry, note the rule and the parameter name (for example a message field) that was blocked.

  2. Add a firewall allowlist entryWordPress

    Go to Wordfence > Firewall > All Firewall Options > Allowlisted URLs / Parameters. Add the URL path and the specific parameter, such as /wp-admin/admin-ajax.php with the field name, and choose to allow it for the matching rule only.

  3. Use Learning Mode for repeated false positivesWordPress

    Under Firewall, Learning Mode lets Wordfence learn which requests are normal on your site for a short period. Turn it on, submit real forms, then return it to Enabled and Protecting.

  4. Fix rate limitingWordPress

    If the block is from rate limiting, raise the thresholds under Wordfence > All Options > Brute Force Protection and Rate Limiting. Make sure legitimate bots and your own monitoring are not throttled.

  5. Remove wrong IP or country blocksWordPress

    In Wordfence > Blocking, remove any range or country that includes real customers. Add your office and monitoring IPs to the Allowlisted IPs list under All Options.

  6. Do not block the REST API globallyWordPress

    If you restrict REST access, keep the routes your form plugin uses open. Check the plugin docs for its namespace, for example /wp-json/contact-form-7/ for Contact Form 7.

Form request with and without the fix

Before

  • Form POST returns 403 from the Wordfence firewall
  • Visitor sees a generic error or nothing
  • No email, no CRM record, no conversion

After

  • Only the matching rule and field are allowlisted
  • Form POST returns 200 and the success message shows
  • Lead reaches the inbox and CRM, and the conversion fires

How to confirm it's fixed

Confirmation checks
  • Submit the form logged out, with a message containing a URL and a long text
  • Live Traffic shows the POST as allowed, not blocked
  • The browser Network tab shows a 200 response for the form request
  • The test lead arrives in the inbox and the CRM
  • The thank-you page or success event loads and the conversion tag fires
  • Test again from a different network and device

How to prevent it happening again

Prevention habits
  • After changing any Wordfence setting, submit every form on the site
  • Review Live Traffic for blocked POSTs after plugin and Wordfence rule updates
  • Keep rate limits high enough for normal traffic peaks, such as ad campaigns
  • Allowlist your monitoring IPs, and use narrow parameter-level exceptions
  • Check the form after Wordfence updates, since new firewall rules can start blocking old forms
  • Run an automated form test on a schedule so a new block is found quickly

How FunnelGuard handles this

FunnelGuard detects this today. A robot visitor runs your real lead-form journey on a schedule, from the EU or the US, and checks each step. If the form submission is blocked or returns an error, the step fails. The failure is re-checked from a second region, then one alert goes out with a screenshot and a likely cause.

Questions people ask

Why is Wordfence blocking my contact form?

Wordfence's firewall may see the form's POST request as an attack, for example because the message contains a link, HTML or SQL-like words. It may also be rate limiting or blocking the visitor's IP or country. Check Wordfence > Tools > Live Traffic to see the rule that blocked it.

How do I allowlist a form in Wordfence?

Go to Wordfence > Firewall > All Firewall Options > Allowlisted URLs / Parameters. Add the URL the form posts to and the specific parameter that was blocked, then save. Keep the entry as narrow as possible.

Does Wordfence block the WordPress REST API?

It can. The firewall inspects /wp-json/ requests like any other, and rules or rate limiting may reject them. If your form plugin uses the REST API, a block there stops submissions without any visible page error.

Should I turn off the Wordfence firewall to fix form errors?

No. Disabling it removes protection from the whole site. Allowlist the single blocked URL and parameter, or use Learning Mode, so the firewall keeps protecting everything else.

How do I find out which Wordfence rule blocked a request?

Open Wordfence > Tools > Live Traffic, filter for blocked requests, and click the entry for your form submission. It shows the action taken and the rule or parameter that triggered it.

Why does my form work for me but fail for visitors?

Administrators who are logged in are often treated differently by the firewall. Visitors may also have different IPs, countries or message content that trigger a rule. Test logged out, in a private window, from another network.

Can I monitor for Wordfence blocks automatically?

Yes. A synthetic monitor such as FunnelGuard submits your real form on a schedule and alerts you if the submission fails or the lead does not arrive. It does not bypass bot protection, so allowlist its marked test traffic.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.