Blog

Form spam: how to choose between CAPTCHA, honeypot fields and rate limiting

كاتب من GazduireOnline.ro
نشره
GazduireOnline.ro PR

هذا المحتوى متوفر باللغتين الرومانية والإنجليزية فقط؛ يظهر النص الإنجليزي أدناه.

Form spam: how to choose between CAPTCHA, honeypot fields and rate limiting

Your contact form should bring in questions about your services, not automated pitches and suspicious links. Yet overly aggressive protection can also stop a genuine customer from requesting a quote. For a small business, the aim is to reduce form spam while keeping the process straightforward for real visitors. That starts with understanding the problem and checking every change from a customer's perspective.

Identify the problem before adding barriers

Unwanted messages do not all arrive through the same route. Some are submitted automatically through a form, others are written manually, and some emails go straight to the address published on your website. Protecting your forms will not stop messages sent directly to that address.

For example, if identical messages arrive without matching submissions in your form records, check the email headers and delivery route before adding another verification step.

  • Identify the affected forms: contact, quotation requests, bookings or comments.
  • Look at submission times and repeated wording without unnecessarily retaining entire messages.
  • Check that validation and anti-spam controls run on the server, not just in the browser.
  • Separate rejected submissions from delivery failures: an accepted form does not automatically mean a delivered email.

Also consider what a genuine enquiry looks like for your business. A short message such as „Hello, could you please send me a quote for office cleaning?” should not be rejected simply because it contains few words.

Honeypot fields: unobtrusive, but not foolproof

Honeypot fields are extra fields that visitors are not supposed to complete. An automated program that fills in every field may reveal itself by completing one. The benefit is that most people have no additional task to perform.

Implementation matters, however. The field should be excluded from keyboard navigation, and screen readers should not announce it as a required question. Browser autofill or a password manager can otherwise trigger false positives.

For example, if enquiries start being rejected after you enable a honeypot, test the form with autofill switched on. Do not assume that every completed honeypot field indicates a bot.

  • Check on the server whether the field has been completed.
  • Test keyboard-only navigation and a screen reader.
  • Initially use the signal for classification or quarantine, where supported, rather than permanently deleting submissions.

More sophisticated bots can recognise and avoid the trap. Honeypots make a useful, low-friction first layer, but an empty field is not proof that a message is genuine.

CAPTCHA: visible challenges or background assessment

CAPTCHA verification attempts to distinguish human interactions from automated ones. Some services ask visitors to tick a box or complete a task. Others assess signals in the background and only request an action in certain circumstances.

This can help when unobtrusive measures are insufficient, but it introduces dependencies and friction. Difficult images, repeated challenges or blocked external scripts can prevent a customer from submitting a form. CAPTCHA also cannot eliminate unwanted messages submitted manually.

For example, someone using a browser with strict privacy settings may see the form but not the verification component. Display a clear message: „Verification could not load. Please try again or use the email address shown.”

  • Choose an option with accessible alternatives and test those alternatives yourself.
  • Validate the verification result on the server, following the provider's documentation.
  • Preserve the visitor's message when verification fails.
  • Distinguish an unsuccessful check from an unavailable external service.

Decide in advance what happens during a verification service outage. One option is to hold enquiries for review, with additional limits to prevent abuse of that fallback.

Rate limiting: control frequency, not intent

Rate limiting restricts the number of submissions accepted within a period. It helps counter automated bursts and can reduce the load they create. It does not determine whether a message is relevant: slowly submitted spam may still get through.

As a starting point for testing, you might allow three submissions within ten minutes from the same session before requiring a pause. This is an example setting, not a recommended threshold for every business.

An IP address does not reliably identify an individual. Several customers may share an office network or public connection, while an attacker may change addresses. Carefully combine signals such as session information, the form being accessed and request frequency.

  • Enforce limits on the server and monitor rejected attempts as well.
  • Do not treat a double-click as a series of independent enquiries; prevent duplicate processing.
  • Explain the pause with a useful message: „You have sent several requests in a short period. Please try again in a few minutes.”

Test forms that legitimately receive repeated submissions separately, such as quotation requests covering several business locations.

Understand what external services receive

Before enabling an external service, read its documentation. Check what data it collects, why it collects it, where processing happens, how long data is retained and which subprocessors are involved. Depending on the service, processing may include IP addresses, browser information or interaction signals.

For example, check whether its script loads on every page or only where a form appears. Restricting integration to the necessary pages may reduce data exposure, where this is compatible with the service's operation.

Regulation (EU) 2016/679, known as the GDPR, requires transparency, an appropriate lawful basis and data minimisation. For a Romanian business, Law no. 506/2004 is also relevant when information is stored on or accessed from a visitor's device. Whether consent is needed depends on the implementation and applicable exemptions, not simply on describing a tool as „anti-spam”.

  • Do not intentionally send message contents or a customer's email address if verification does not require them.
  • Check contractual roles and any transfers outside the European Economic Area.
  • Update your privacy information and set retention periods for logs.

Test the customer journey and adjust gradually

Start with the least disruptive method that suits the problem you have observed. Honeypots may be enough for simple automation; rate limiting helps with bursts; CAPTCHA can provide an additional layer when abuse persists. Introduce changes one at a time so you can identify the source of any new problem.

  1. Send test enquiries from a phone and computer, both with and without autofill.
  2. Check keyboard access, a screen reader, a slow connection and a browser that blocks external scripts.
  3. Simulate repeat submissions and several people using the same network.
  4. Confirm both the success message and the enquiry's arrival at its destination.
  5. Review submissions marked as suspicious and relax rules that reject genuine enquiries.

For example, keep a test enquiry containing accented characters and an international telephone number to catch overly restrictive validation. For your project's infrastructure, consider GazduireOnline.ro's web hosting or WordPress hosting services. You can also browse the frequently asked questions for service information.

Keep an alternative contact route available and repeat your tests after updates. Useful protection is protection you can adjust while continuing to check that genuine customer enquiries reach you.

مستعد لإطلاق موقعك؟

تحقق من توفر النطاق الذي تريده أو اعرف خلال 10 ثوانٍ أي باقة استضافة تناسبك.

مقالات ذات صلة

إليك مقالات أخرى قد تفيدك. ننشر معلومات مفيدة وعملية لقرّائنا.

اشترك في النشرة الإخبارية

اشترك في نشرتنا الإخبارية ورسائلنا التسويقية. سنرسل إليك المستجدات والعروض.

رسم توضيحي للاشتراك في النشرة الإخبارية