Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form endpoint accepts spam without rate limit: how to fix it

OPS-184Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A form endpoint is the URL your form sends its data to, for example /wp-admin/admin-ajax.php, /contact or a third-party form URL. Rate limiting means the server caps how many requests one visitor can make in a given time. Without it, a script can post the same form thousands of times, with random names, fake emails or links to scam sites.

Why it costs you leads or sales

Spam hides real enquiries. Your team stops trusting the inbox and real leads are answered late or never. Other costs add up too:

What a spam flood can damage
  • Real leads get buried in the inbox or CRM and are answered late.
  • Sales time is wasted on fake contacts.
  • Email or SMS sending limits and costs are used up by auto-replies to fake addresses.
  • Your sending domain can be flagged as spam if auto-replies bounce or hit spam traps.
  • Conversion events fire for fake leads, which pollutes ad platform data and optimisation.
  • Your CRM plan limits or contact counts fill up.
Real leads as a share of inbox volumeExample numbers
Real leads as a share of inbox volume (example)Before flood: 95 %; During flood: 8 %; After rate limit: 93 %0367395893Before floodDuring floodAfter rate limit%

Example: illustrative numbers showing how a spam flood shrinks the share of real leads in the same inbox.

How an unlimited endpoint hurts the funnel
  1. Bot finds formScript reads the form URL
  2. Endpoint accepts allNo rate limit or checks
  3. Inbox and CRM floodedJunk contacts created
  4. Real leads missedBuried or answered late

The break is the missing limit; everything after it is polluted.

How to check if your site has it

Look for signs first, then test your own form carefully. Only test forms you own, and do not send floods at a live production site or a third-party service.

Check for missing rate limits
  1. Scan recent submissions

    Open your form plugin entries, CRM or inbox. Look for bursts of entries within seconds, random strings in names, repeated links, or the same IP many times.

  2. Find the endpoint

    Open your browser developer tools, go to the Network tab, submit the form once and note the request URL and method.

  3. Test with a small burst on a staging copy

    On a staging site you own, send around 20 quick requests to that endpoint. If every one returns success (200 or 302) and none returns 429 Too Many Requests, there is no limit.

  4. Check for other protection

    Look at the page source for a honeypot field, a CAPTCHA or a token. Check your CDN or firewall dashboard for rate-limiting rules.

Small burst test against your own staging formbash
for i in $(seq 1 20); do
  curl -s -o /dev/null -w "%{http_code}\n" -X POST https://staging.example.com/contact \
    -d "name=test&email=test@example.com&message=rate+limit+test"
done

How to fix it

Use layers. A rate limit slows floods, a honeypot catches simple bots, and server-side validation rejects bad data. Choose the options your platform supports.

Fix by platform
  1. Turn on spam protection in your form plugin

    Most form plugins (for example Contact Form 7, WPForms, Gravity Forms) have a honeypot or CAPTCHA setting. Enable it in the form or plugin settings.

  2. Add a rate limit at the server or CDN

    Limit POST requests to /wp-admin/admin-ajax.php, /wp-json/ form routes and your form page per IP, using your host's firewall, a CDN rate-limiting rule or a security plugin that supports it.

  3. Keep plugins updated

    Update the form plugin so known spam-handling fixes are applied.

nginx: limit form POSTs to 5 per minute per IPnginx
# in the http block
limit_req_zone $binary_remote_addr zone=formlimit:10m rate=5r/m;

# in the server block
location = /contact {
    limit_req zone=formlimit burst=3 nodelay;
    limit_req_status 429;
    proxy_pass http://app;
}
Simple honeypot fieldhtml
<div style="position:absolute;left:-9999px" aria-hidden="true">
  <label for="website">Leave this empty</label>
  <input type="text" id="website" name="website" tabindex="-1" autocomplete="off">
</div>
Form endpoint before and after

No limit

  • Unlimited posts per IP
  • No honeypot or token
  • Every post becomes a CRM contact
  • Auto-replies go to fake addresses

Protected

  • Server returns 429 after a burst
  • Honeypot and time check reject simple bots
  • Server validates every field
  • Only plausible leads reach the CRM

How to confirm it's fixed

Confirm the protection works
  1. Repeat the burst test on staging

    Run the same 20-request test. You should see normal responses first, then 429 once the limit is passed.

  2. Submit a real test lead

    Fill in the form as a normal visitor and confirm it still reaches the inbox and CRM.

  3. Fill the honeypot by hand

    Use developer tools to fill the hidden field and submit. The entry should be rejected or dropped.

  4. Watch for a few days

    Compare spam volume in your inbox and CRM before and after the change.

How to prevent it happening again

Keep forms protected
  • Add a rate limit, honeypot and server-side validation to every new form.
  • Review rate-limit and 429 logs monthly.
  • Keep CMS, form plugins and apps updated.
  • Alert your team when daily form volume jumps far above normal.
  • Send conversion events only after a confirmed, validated submission.
  • Use a CAPTCHA where abuse continues, and keep it accessible.

How FunnelGuard handles this

This issue is outside what FunnelGuard checks. FunnelGuard runs a robot visitor through your real customer journeys and checks that steps work, tracking hits fire and test leads arrive. It does not test how your server copes with floods of requests or measure rate limits.

The kind of tool that fits is a web application firewall (WAF) or bot-management service at your CDN or host, with rate-limiting rules, plus your form platform's own spam filtering. Once those are in place, FunnelGuard can still confirm that a test lead gets through your form and reaches the inbox and CRM, so your protection does not block real visitors by mistake.

Questions people ask

Why is my contact form getting so much spam?

Bots find form URLs automatically and post to them in bulk. If your form has no rate limit, honeypot, CAPTCHA or server-side validation, the endpoint accepts every request, so spam arrives at whatever speed the bot can send.

What is rate limiting on a form?

Rate limiting caps how many requests one visitor or IP address can send to a URL in a set time. When the cap is passed, the server replies with a 429 Too Many Requests status instead of accepting the submission.

How do I stop bots submitting my form without a CAPTCHA?

Combine a hidden honeypot field, a minimum time check between page load and submit, server-side validation and a per-IP rate limit. These catch most simple bots without adding a puzzle for real visitors.

How many form submissions per minute should I allow?

A real visitor rarely needs more than two or three submissions a minute. Many sites start at around five per minute per IP with a small burst allowance, then adjust after checking logs. Avoid very strict limits because offices can share one IP.

Does spam on my form affect my ad tracking?

Yes, if your conversion tag fires on every submission. Fake leads then count as conversions in GA4 or ad platforms and can distort optimisation. Fire conversion events only after a validated, successful submission.

How do I rate limit a form in nginx?

Define a zone with limit_req_zone in the http block, then apply limit_req with a burst value inside the location that handles the form. Set limit_req_status 429 so clients get a clear response.

Can FunnelGuard detect form spam or missing rate limits?

No. FunnelGuard checks that your real journeys work, that tracking fires and that test leads arrive. Spam floods and rate limits need a web application firewall or bot-management tool.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

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.