Implement Honeypot in Conform (Next.js) #611
-
I have a page with a basic contact us form that looks like this:
As you can see I have a honeypot field (last-name), and I check on in it the server action: Even though I have this field some bots (don't know if all of them) still manage to get through the form. Did I implement the honeypot incorrect or is there a better solution than a honeypot? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @galnir, a hidden input might not be enough for smarter spam bots. Maybe take a look of these tutorials from Kent C Dodds or find a reference implementation from |
Beta Was this translation helpful? Give feedback.
Hi @galnir, a hidden input might not be enough for smarter spam bots. Maybe take a look of these tutorials from Kent C Dodds or find a reference implementation from
remix-utils
on both server and client side. The package is designed for Remix but it should apply to NextJS just fine as well.