Next.js Discord

Discord Forum

CAPTCHA in a self-hosted Next.js project

Unanswered
Chub mackerel posted this in #help-forum
Open in Discord
Chub mackerelOP
I’m building a self-hosted Next.js website and need to add CAPTCHA protection for my forms. I don’t want to rely on external services like Google reCAPTCHA or hCaptcha.
What’s the best way to implement a fully self-hosted CAPTCHA (e.g., image/text CAPTCHA, math questions, or other approaches) in a Next.js app? Any recommended libraries or examples?

1 Reply

Pacific sand lance
rollup or own solution or use existing lib to generate captcha, store expected solution in db/memory, check received captcha solution on request