Honeypot Field
A honeypot is a hidden field that people never see, so they leave it empty. Spam bots fill in every field they find. KwesForms marks any submission with the honeypot filled in as spam.
Add the Field
Add this line anywhere inside your form tag:
<input
type="text"
name="kf_website"
style="display:none"
tabindex="-1"
autocomplete="off"
>
That's all. The honeypot works while Enable spam filters is checked in your form's settings, which it is by default.
Use a Name of Your Own
Every form accepts kf_website. Because that name is published here, some bots may learn to skip it, so you can give your form a honeypot name that only it uses.
In your dashboard, open the form, click Settings and enter a name under Honeypot Field Name, such as fax_number. Then use that name in place of kf_website in your form.
A name is up to 40 letters, digits and single underscores, and starts with a letter. If your form already has a field with that name, the field becomes the honeypot. kf_website keeps working as well.
Example
<form class="kf-form" action="YOUR_FORM_ACTION">
<label for="email">Email</label>
<input type="email" name="email">
<input
type="text"
name="kf_website"
style="display:none"
tabindex="-1"
autocomplete="off"
>
<button type="submit">Submit</button>
</form>
Tips
- Never give the field a value. A value marks every submission as spam.
- Hide it with
display:none, nottype="hidden". Bots tend to leave hidden inputs alone. - Keep
tabindex="-1"andautocomplete="off". They stop keyboard users from landing on the field and browsers from filling it in.
Notice anything wrong in our docs? Let us know.