Dev.to Security 🔐 Cybersecurity 👁 0 📖 1 min read

A Quarantine Queue for Contact Form Spam: Scoring Submissions Before They Reach a Small United Kingdom Team

Small United Kingdom businesses often find their contact form leads drowned in spam, which means real enquiries get skimmed or missed. Here is a pattern we use as an AI automation agency handling United Kingdom small bus

Small United Kingdom businesses often find their contact form leads drowned in spam, which means real enquiries get skimmed or missed. Here is a pattern we use as an AI automation agency handling United Kingdom small business enquiries: score each submission, then route it, but never silently delete.

Score with cheap signals first

def score(sub):
    s = 0
    if sub.honeypot:                      s += 50
    if sub.seconds_on_page < 3:           s += 20
    if sub.message.count("http") > 2:     s += 20
    if not sub.phone and not sub.company: s += 5
    if looks_like_uk_postcode(sub.postcode): s -= 10
    return s

No model call yet. Most junk falls out here.

Route by score

  • Low score: straight to the CRM as a new lead.
  • Middle: to a quarantine list that a person checks once a day.
  • High: quarantine too, marked as likely spam, kept for a set period.

Never auto-delete. The cost of losing one real enquiry is higher than the cost of a daily glance.

Add a language check only for the middle band

For the unclear middle, a short model prompt can classify "real enquiry or not" with a reason. Store the reason so a person can see why.

Measure misses

Once a month, look at the quarantine and count real leads that landed there. If it is more than a few, lower the thresholds.

Keep the honeypot boring

A hidden field named something ordinary works better than clever tricks.

Written by Ujjwal Dubey, NxFlowAI, serving United Kingdom businesses remotely from Mumbai. For the wider decision on bots, see when off-the-shelf beats bespoke.

📰 Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.