Skip to content

Prevent Spam ​

Currently Headlessforms provides Spam Protection settings which can be turned ON and OFF manually. It's up to the form owner to decide if they want to filter out spam submissions but we would definitely recommend to keep the protection turned ON all the time.

If Spam Protection is ON then you can also decide if you'd want to delete Spam submissions automatically depending on their Spam Score

Spam protection settings

General rules: ​

  • each submission has its own Spam Score which equals to 0 when received by our API
  • each Antispam tool has its own Weight
  • if a tool is set up then submission is checked with such tool
  • if a tool returns us a response that submission might be a spam, then Spam Score = Spam Score + Antispam Tool's Weight
  • form submission will be marked as spam if its Spam Score is equal or greater than Spam Score Threshold set in the Spam Protection Settings

Domain verification ​

We verify if submissions are coming from the website(-s) you listed or not. If a submission is coming from a different domain then such submissions will be blocked (i.e. not stored). We highly recommend to use this tool when you place your form on certain/specific website.

How to enable:

  • Enter domain name which equals to domain name where your form is located
  • Press ADD button

Akismet ​

Akismet checks your forms submissions against global database of spam to prevent your form from collecting malicious content. We recommend to turn this tool ON for forms in blogs collecting reviews or comments.

How to enable:

  1. you need to receive at least one submission into your form first
  2. select your fields for corresponding akismet fields, for example email field in your form should be mapped to for Akismet's comment_author_email
  3. the more Akismets fields are connected to your form's fields the more precise it detects spam

Akismet fields and their meannings:

  • comment_author - Name submitted with the comment
  • comment_author_email - Email address submitted with the comment
  • comment_author_url - URL submitted with comment. Only select a field containing URL that was manually entered by the user
  • comment_content - The content that was submitted

Google ReCAPTCHA ​

Google offers reCAPTCHA to help you protect your sites from fraudulent activities, spam, and abuse.

How to enable:

  1. Place Google reCAPTCHA on your website where the form is placed
  2. Enter reCAPTCHA Secret Key you create in Google Cloud admin panel

HoneyPot ​

When a spam bot comes to a form, it fills out EVERY input field, but it ignores the CSS code. You will need to create a regular form input field with HTML - this will be the honeypot field. The spam bot will see the field, but you’ll use CSS to hide the field from users. If the honeypot field is empty, the form submission is considered as filled by a user. On the other hand, if the honeypot field has data, you know it could only have been filled out by a spam bot.

How to enable:

  • enter field name which spam bots may will out for sure, usually it's email
  • add field with the same name to your form on your website
  • hide this email with CSS
  • you may add multiple fields but do not forget to hide them from regular users

Form with honeypot field example: ​

<form method="POST" 
    <label for="name">Enter your name</label>
    <input type="text" 
           placeholder="first name only" 
    <label for="abcdefg">Enter your email</label>
    <input type="email" 
           placeholder="Enter Email" 
    <label class="ohnohoney" for="email"></label>
        placeholder="Enter Your email"
    <button type="submit">Submit</button>
        opacity: 0;
        position: absolute;
        top: 0;
        left: 0;
        height: 0;
        width: 0;
        z-index: -1;

Email Verification ​

This tool verifies email addresses in form submissions if they belong to real persons or spam networks. Each submission will be checked and marked as spam if contains email from invalid, spammy or non-operational mailboxes. Works best with forms which collect emails (newsletters, promotions, subscriptions etc.)

How to enable:

  • you need to receive at least one submission to your form
  • select a submission's field which contains an email address
  • the selected field value will be verified for every submission received