DEV Community

Joodi
Joodi

Posted on

How to Add CAPTCHA to React & Next.js Forms Without External Services

Adding CAPTCHA to forms is important for preventing spam and automated submissions, but integrating external CAPTCHA services can add unnecessary complexity.

CaptchaKit is a free, open-source, self-hosted CAPTCHA library for React and Next.js.

Features

  • Text, math & image challenges
  • Adjustable difficulty levels
  • Customizable themes
  • Server-side validation
  • HMAC-SHA256 signed tokens
  • One-time proofs & replay protection
  • Built-in rate limiting

No database, Redis, or external CAPTCHA services required.

Get Started

🌐 Website: https://sonojs.com/tools/captcha
πŸ–₯️ Live Demo: https://captchakit.netlify.app/
πŸ“¦ npm: https://www.npmjs.com/package/captchakit
πŸ’» GitHub: https://github.com/MiladJoodi/CaptchaKit

Top comments (0)