Jamform | Simple, Serverless, Forms Made Easy

Honeypot Fields

Forms on web pages are often targeted by bots or other forms of automated submissions. This can lead to your inboxes being filled with spam submissions that you don't want. To help prevent spam, Jamform recognizes designated inputs as "honeypot" fields.

A honeypot field is a field that is not visible to your normal users, but is still included within your form' HTML. A user will not enter any information in this input since they can't see it, however a bot won't recognize that the field is hidden and fill it out anyway. By filtering out any form submissions that contain this honeypot field Jamform helps eliminate bot submissions and reduce spam.

Honeypot Setup:

Setting up a honeypot field is easy, all you need to do is include an input in your form with the name '_honeypot'. You also need to add some styling to hide this input from your normal users.

Example:

Notice how the honeypot field is styles to not display to users.

<form action="https://jamform.com/f/{formId}" method="POST">
  <input type="text" name="name" />
  <input type="email" name="email" />
  <input type="text" name="_honeypot" style="display: none"/>
  <button type="submit">Send</button>
</form>

Now all submissions that contain data in the honeypot field will be silently rejected, meaning the submission will not be saved but the bot will still be redirected to the Thank You page so that they do not realize they have been caught.

Custom Honeypot:

If you would prefer to designate a field other than '_honeypot' to be your honeypot field you can set that up on your form dashboard . On your form dashboard, navigate to the 'Settings' tab and you will see a panel titled 'Honeypot'. In that field you can see what the honeypot is currently set as and update it to a different field name.Honeypot field with _honeypot valueOnce you click 'Update honeypot', be sure to update the code in your form to reflect the new honeypot value and your new honeypot will begin working immediately.