Skip to content
FunnelGuard

Fix guide by FunnelsGuard

WAF blocking form submissions (403 error): how to find and fix it

CNV-371High impactDetectedBy FunnelGuardPublished Updated
On this page

What this issue is

A web application firewall (WAF) sits in front of your website and filters requests. It looks for attacks such as SQL injection, cross-site scripting and spam bots. Common examples are Cloudflare WAF, Sucuri, Wordfence, AWS WAF, and ModSecurity on many hosts.

Why it costs you leads or sales

The visitor has already decided to contact you or buy. If the POST is blocked, they see a generic error, a blank page or a form that just reloads. Most will not try again. You get no email, no CRM entry and no conversion event for your ads.

Where the lead is lost
  1. Ad clickVisitor lands on page
  2. Fill formFields completed
  3. POST to serverWAF returns 403
  4. Thank-you pageNever reached
  5. Email and CRMNo lead arrives

The form page loads, but the firewall rejects the submit request.

Leads received vs leads attemptedExample numbers
Leads received vs leads attempted (example)Attempted: 50 leads per week; Blocked by WAF: 20 leads per week; Received: 30 leads per week01938502030AttemptedBlocked by WAFReceivedleads per week

Example: 50 people submit the form each week, but the WAF blocks 20 of them, so only 30 leads arrive.

How to check if your site has it

Find a blocked form POST
  1. Submit the form in your browser

    Open the page in a private window, open DevTools (F12) and go to the Network tab. Submit the form and look for the POST request. A status of 403 means it was refused.

  2. Try realistic content

    Some rules only fire on certain text. Test with a long message, a link, an apostrophe, a plus sign in an email address and a phone number with brackets.

  3. Read the response body

    Click the failed request and check the Response tab. Cloudflare, Sucuri and ModSecurity each show a recognisable block page or an event ID.

  4. Check the WAF event log

    In Cloudflare, go to Security > Events and filter by the form URL and action Block. In Wordfence, see Tools > Live Traffic or the blocked list. On a host with ModSecurity, check the audit log or ask support for the rule ID.

  5. Note the rule and path

    Write down the rule ID or name, the request URL, and the field that triggered it. You need these to build a narrow exception.

How to fix it

Allow the form through your firewall
  1. Identify the firewall plugin or host WAF

    Wordfence, Sucuri and host-level ModSecurity are the usual causes. Check the blocked request in the plugin's log.

  2. Add an allowlist rule

    In Wordfence, open Firewall > Manage Firewall and use the option to allowlist the blocked rule for that URL or parameter after reviewing the event. In Sucuri, use the firewall's allowlist for the URL path.

  3. Ask your host about ModSecurity

    Send support the rule ID and form URL, such as /wp-admin/admin-ajax.php or /contact/, and ask them to disable that rule only for that path.

ModSecurity: remove one rule for one form URLnginx
<LocationMatch "^/contact/?$">
    SecRuleRemoveById 942100
</LocationMatch>
Broad vs narrow exception

Risky fix

  • Turn the WAF off
  • Allow every request to the site
  • Attacks reach the form unfiltered

Safer fix

  • Skip one rule ID
  • Only for POST to the form URL
  • Rest of the site stays protected

How to confirm it's fixed

Confirmation checklist
  • The POST in DevTools returns 200 or a redirect, not 403
  • The thank-you page or success message appears
  • The test lead arrives in your inbox
  • The lead appears in your CRM
  • Tricky inputs (links, apostrophes, long text) also pass
  • The WAF log shows no new blocks for that rule and URL
  • The conversion event is recorded in your analytics and ad platforms

How to prevent it happening again

Prevention habits
  • Review WAF events weekly for blocks on form URLs
  • Test forms after any security plugin, host or CDN change
  • Keep exceptions narrow and note why each one exists
  • Use a monitor that submits the form on a schedule
  • Alert someone who can edit firewall rules, not only the marketing team
How a silent block unfolds
  1. Day 0

    Example: the host updates its firewall rule set.

  2. Day 1

    Example: messages containing links start getting 403 errors.

  3. Day 5

    Example: lead volume looks low, but no one sees an error.

  4. Day 9

    Example: someone tests the form and finds the 403.

  5. Day 9

    Example: a narrow exception is added and leads flow again.

How FunnelGuard handles this

FunnelGuard detects this issue. A robot visitor runs your real form journey on a schedule, from the EU or the US, fills in the form and submits it. If the submission is stopped by bot protection or a firewall, the check is flagged as blocked_by_bot_protection.

A failure is re-checked from a second region before one alert goes out, so a one-off glitch does not wake you up. The alert includes a screenshot and a likely cause, and can go to email, Slack, Teams, WhatsApp, a webhook or PagerDuty.

Because the robot is also treated as a bot by the firewall, a block on the test does not always mean real visitors are blocked. Use the WAF event log to confirm whether genuine users are hit. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans include a 3-day free trial.

Questions people ask

Why is my contact form returning a 403 Forbidden error?

A 403 on a form submit usually means a firewall or security rule rejected the POST request. Common sources are Cloudflare WAF, ModSecurity on your host, or a WordPress security plugin. Check the firewall's event log for the form URL to see which rule fired.

How do I find which WAF rule is blocking my form?

Submit the form with DevTools open, note the time and URL, then search your WAF's event log for that request. Cloudflare shows it under Security > Events, and ModSecurity shows a rule ID in its audit log. The rule ID is what you need for an exception.

Is it safe to whitelist my form in the WAF?

Yes, if the exception is narrow. Skip only the specific rule that caused the false positive, and only for POST requests to that form's URL. Turning the firewall off or allowing all traffic to the path removes protection you want to keep.

Why does my form only fail for some messages?

Firewall rules match patterns in the submitted text, such as links, SQL-like words, HTML tags or special characters. Messages without those patterns pass, so the form seems to work in your tests. Test with realistic long messages and links to reproduce it.

Will a WAF block hurt my ad tracking?

Yes. If the POST is rejected, the visitor never reaches the thank-you page, so conversion tags tied to it do not fire. Your ad platforms then under-count leads and optimise on poor data.

Can FunnelGuard tell me when a firewall blocks my form?

Yes. FunnelGuard runs your form journey on a schedule, and when bot protection or a firewall stops the submission it flags the check as blocked_by_bot_protection. It re-checks from a second region and sends one alert with a screenshot and a likely cause.

Does a 403 on the form always mean real visitors are blocked?

Not always. A robot visitor can be treated differently from a person, so confirm in the WAF log whether real submissions are also blocked. If real users appear in the blocked events for that form, treat it as urgent.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: blocked_by_bot_protection.

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.