Security
March 01, 2025·5 min read

reCAPTCHA v3 Integration Without Backend Code

Using Google reCAPTCHA v3 tokens to protect forms in static Next.js applications.

NA

Naushad Alam

Contributing Author · Squoosh Next Blog

Google reCAPTCHA v3 assigns a score from 0.0 to 1.0 to each user interaction based on behavioral analysis, with scores above 0.5 generally indicating human users. Unlike v2, it requires no challenge UI and runs invisibly in the background. In a purely static Next.js application without a backend, reCAPTCHA tokens can still be generated and used in combination with a Vercel Serverless Function or a simple Cloudflare Worker that handles only the token verification POST request to the Google reCAPTCHA verification API.

The token is obtained on the client via grecaptcha.enterprise.execute() with the site key and an action label, then sent alongside the form data to the verification function. The function calls the Google API with the secret key and returns pass or fail to the client. This minimal backend surface is acceptable even in privacy-focused applications since only the reCAPTCHA token (not image data) is transmitted.

Key Takeaways
  • Google reCAPTCHA v3 assigns a score from 0.

  • 0 to each user interaction based on behavioral analysis, with scores above 0.

  • 5 generally indicating human users.

  • Unlike v2, it requires no challenge UI and runs invisibly in the background.

Try It in the Workspace

Everything discussed in this article can be tested directly in Squoosh Next — no sign-up, no upload, 100% client-side.

More in Security
Strip Metadata to Save Up to 15% File Size
May 02, 2026 · 3 min read
Building a Zero-Upload Privacy Architecture
January 05, 2026 · 7 min read
EXIF GPS Data: A Privacy Liability for Photographers
August 24, 2025 · 5 min read
Squoosh Next

Professional client-side image compression and format optimization tool. Compress, convert, and adjust 100+ formats instantly without server uploads.


© 2026 Squoosh Next. Developed & Maintained by Naushad Alam | Zest Tech Solution | Powered by Vercel.Contact: Naushad Alam | WhatsApp: 7492068998 | Email: contact@zestcommerce.in | Web: zesttechsolution.cloud
Security EncryptedNo Uploads
Operational
v2.1.0Commit: d05d63e
0s
Build Info
Environment: productionBranch: masterBuild Time: 25s
Deployment
Deployed: 7/13/2026, 1:26:11 AMUptime: 0sPlatform: Vercel
Performance
Response: 0msStatus: OnlineSSL: Active
Technology
Next.js: 16.2.9React: 19.0.0TypeScript: 5.0