Honeypot
Honeypot fields can be used inside of forms to prevent automated bot submissions. They're not the best way to prevent spam / bot submissions, however they can be effective on low-traffic sites.
Forma provides a handful of special fields that change the way your form behaves. To add a honeypot to your form, add a hidden
input field with the name _forma
.
<form>
<input type="hidden" name="_forma" />
</form>
Since this field is hidden
, a regular human user should never submit a value
. If the server detects a value present for this field, it will prevent the submission from being created and return a 401 Unauthorized
error.