Google reCAPTCHA Integration: Protect Forms from Automated Attacks

Spam from contact forms drains time and budget. On one project, integrating reCAPTCHA v3 reduced spam registrations by 98% in a week. Google reCAPTCHA is an industry-standard protection, but incorrect configuration kills conversion. Our team with 5+ years of experience provides turnkey reCAPTCHA set

Development and maintenance of all types of websites:

Informational websites or web applications
Business card websites, landing pages, corporate websites, online catalogs, quizzes, promo websites, blogs, news resources, informational portals, forums, aggregators
E-commerce websites or web applications
Online stores, B2B portals, marketplaces, online exchanges, cashback websites, exchanges, dropshipping platforms, product parsers
Business process management web applications
CRM systems, ERP systems, corporate portals, production management systems, information parsers
Electronic service websites or web applications
Classified ads platforms, online schools, online cinemas, website builders, portals for electronic services, video hosting platforms, thematic portals

These are just some of the technical types of websites we work with, and each of them can have its own specific features and functionality, as well as be customized to meet the specific needs and goals of the client.

Our competencies:

Frequently Asked Questions

Latest works

  • image_website-b2b-advance_0.webp
    B2B ADVANCE company website development
    1414
  • image_web-applications_feedme_466_0.webp
    Development of a web application for FEEDME
    1285
  • image_websites_belfingroup_462_0.webp
    Website development for BELFINGROUP
    980
  • image_ecommerce_furnoro_435_0.webp
    Development of an online store for the company FURNORO
    1240
  • image_crm_enviok_479_0.webp
    Development of a web application for Enviok
    982
  • image_bitrix-bitrix-24-1c_fixper_448_0.webp
    Website development for FIXPER company
    994

Spam from contact forms drains time and budget. On one project, integrating reCAPTCHA v3 reduced spam registrations by 98% in a week. Google reCAPTCHA is an industry-standard protection, but incorrect configuration kills conversion. Our team with 5+ years of experience provides turnkey reCAPTCHA setup: from version selection to server-side verification. We choose the optimal version and score strategy to minimize spam without losing users.

Problems we solve

A common problem is wrong version selection. On high-traffic sites, v2 Checkbox can reduce conversion by up to 30% due to an extra step. Conversely, on low-traffic sites, v3 may give false positives. We analyze your project's traffic patterns and user behavior to select the best version.

Another issue is improper score tuning. Default thresholds often lead to either high false positives or missed bots. We define an adaptive strategy based on your risk tolerance.

How we do it: technical expertise

We integrate reCAPTCHA across any stack. Our approach includes:

  • Registering your domain in Google reCAPTCHA Admin and generating keys.
  • Frontend integration using vanilla JS, React, Vue, or Angular.
  • Server-side verification using PHP, Node.js, Python, or any backend.
  • Configuring score threshold based on your risk tolerance.
  • Implementing fallback actions (e.g., show v2 checkbox for suspicious users).
  • Testing with real traffic and fine-tuning.

Case study: e-commerce site with 100k monthly visits

We implemented reCAPTCHA v3 with a dynamic score strategy. Spam submissions dropped from 500/week to under 10, while form completion rate improved by 12% due to invisible verification.

Comparison of reCAPTCHA versions

Feature v2 Checkbox v2 Invisible v3
User interaction Yes No No
Detection accuracy High Medium High (adaptive)
UX impact Noticeable Minimal Minimal
Setup complexity Low Medium High
Action flexibility None None Full (custom score)

Score strategy for v3

Score Interpretation Action
0.9–1.0 Clearly human Allow
0.5–0.9 Likely human Allow
0.3–0.5 Uncertain Additional verification (email confirmation)
0.0–0.3 Likely bot Block or show v2 checkbox

Step-by-step integration guide for reCAPTCHA v3

  1. Register your site in Google reCAPTCHA Admin and get site_key and secret_key.
  2. Add the API script to your page: <script src="https://www.google.com/recaptcha/api.js?render=SITE_KEY"></script>.
  3. Obtain a token on the client side using grecaptcha.execute on form submit.
  4. Send the token to your server in a hidden field or via JSON.
  5. On the server, POST to https://www.google.com/recaptcha/api/siteverify with parameters secret, response, and optionally remoteip.
  6. Process the response: check success and compare score with your threshold.
  7. Implement actions based on score.

Why server-side verification is critical

Server-side verification is the only guarantee that the token is not forged. Skipping it renders protection useless. Google reCAPTCHA documentation emphasizes this requirement. We always include mandatory verification via siteverify with response analysis.

Integration with React

Install the package: npm install react-google-recaptcha. Use the component with size="invisible" and method executeAsync:

import ReCAPTCHA from 'react-google-recaptcha'; function ContactForm() { const recaptchaRef = useRef(null); const handleSubmit = async (e) => { e.preventDefault(); const token = await recaptchaRef.current.executeAsync(); recaptchaRef.current.reset(); await submitForm({ ...formData, recaptcha_token: token }); }; return ( <form onSubmit={handleSubmit}> <ReCAPTCHA ref={recaptchaRef} sitekey={process.env.REACT_APP_RECAPTCHA_SITE_KEY} size="invisible" /> <button type="submit">Submit</button> </form> ); } 
Additional recommendations For server-side verification, use cURL or your HTTP client. Check the `success` field and `score` value. Store `secret_key` in environment variables.

Process and timeline

Our process:

  1. Requirements gathering and audit of current forms.
  2. Version selection and key generation.
  3. Frontend and backend integration.
  4. Score strategy design and implementation.
  5. Testing with real traffic and tuning.
  6. Documentation and handover.

Timeline:

  • Basic integration (single form, v3): 4–8 hours.
  • Complex setup (multiple forms, adaptive score, fallback): up to 2 days.

Typical mistakes to avoid

  • Skipping server-side verification (critical security flaw).
  • Using a static score threshold without considering traffic patterns.
  • Not handling edge cases like missing or expired token.
  • Not testing with real bot traffic.

We include all these checks in our service.

What's included in turnkey setup

  • Version selection and domain registration in Google Admin.
  • Frontend integration (React, Vue, or any stack).
  • Server-side verification on PHP, Node.js, Python, etc.
  • Score configuration and action strategy.
  • Integration documentation and configuration updates.
  • Testing with real data and 30-day guarantee.

Contact us for a cost estimate. Order turnkey reCAPTCHA setup and get a consultation for your project. We guarantee transparency and results.