Next.js Discord

Discord Forum

What's the most effective protection against web form spam?

Unanswered
Polar bear posted this in #help-forum
Open in Discord
Polar bearOP
I'm creating a website using Next.js 14 and it will have a public facing contact form. I plan to implement the web form using server actions. I've built contact forms like this in the past with multiple frameworks and usually I use reCAPTCHA v3 followed by an API to send the email if it's a "valid" submission.

I wanted to check-in with the community to see what you've found to be the most effective approach now a days to guard against spam bots. Thanks in advance for your suggestions!

4 Replies

Recaptcha should work very well, nothing wrong with that
Polar bearOP
Would you happen to have any links to examples or tutorials of how to implement reCAPTCHA with Next.js 14 using server actions?
no i dont... that being said, just follow the recaptcha documentation and you will be good
or use any of the various recaptcha libraries for react