Honeypot
A simple way to try to keep bots from posting forms is to add a honeypot to your form.
The trick is to
name
the field to something that a bot is very likely to auto populate with a value.Add a
validation
rule that the field should be empty using regexAdd
autocomplete()
to prevent validation errors from browsers autocomplete when the user tries to save the form.Make it
type('hidden')
Add the
class('nosy')
to prevent it from taking up space (the.nosy
class exists in the theme.css)
The .nosy
class exists in the theme.css
file:
.nosy
class exists in the theme.css
file:Last updated
Was this helpful?