Usa las funciones de reCAPTCHA después de la migración
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
En esta página, se explica cómo modificar una integración de reCAPTCHA existente para usar funciones de reCAPTCHA, como la autenticación de varios factores (MFA) y la defensa de contraseñas, después de migrar desde reCAPTCHA Classic. Modificar una integración de reCAPTCHA existente implica instrumentar las páginas web y migrar las llamadas al backend.
Para usar las funciones de reCAPTCHA, debes migrar tus llamadas de backend a los nuevos extremos y configurar la autenticación:
Reemplaza las llamadas de backend a https://www.google.com/recaptcha/api/siteverify por llamadas equivalentes a recaptchaenterprise.googleapis.com. Para obtener la URL completa y el formato de datos POST, consulta Cómo crear una evaluación para tu sitio web.
Configura la autenticación en reCAPTCHA.
El método de autenticación que elijas dependerá del entorno en el que se configure reCAPTCHA. La siguiente tabla te ayuda a elegir el método de autenticación y la interfaz compatibles para configurar la autenticación:
[[["Fácil de comprender","easyToUnderstand","thumb-up"],["Resolvió mi problema","solvedMyProblem","thumb-up"],["Otro","otherUp","thumb-up"]],[["Difícil de entender","hardToUnderstand","thumb-down"],["Información o código de muestra incorrectos","incorrectInformationOrSampleCode","thumb-down"],["Faltan la información o los ejemplos que necesito","missingTheInformationSamplesINeed","thumb-down"],["Problema de traducción","translationIssue","thumb-down"],["Otro","otherDown","thumb-down"]],["Última actualización: 2025-09-04 (UTC)"],[],[],null,["# Use reCAPTCHA features after migration\n\nThis page explains how to modify an existing reCAPTCHA integration to use\nreCAPTCHA features, such as Multi-factor\nauthentication (MFA) and Password defense after migrating from\nreCAPTCHA Classic. Modifying an existing reCAPTCHA\nintegration involves instrumenting the web pages and migrating the backend calls.\n\nBefore you begin\n----------------\n\n[Migrate to reCAPTCHA](/recaptcha/docs/migrate-recaptcha).\n\nInstrument the web pages\n------------------------\n\nTo instrument the web pages with the reCAPTCHA scripts and\ncalls, do the following:\n\n1. Verify that you have the following script included in your web pages: `https://www.google.com/recaptcha/api.js`.\n2. In your web pages, replace `https://www.google.com/recaptcha/api.js`\n with `https://www.google.com/recaptcha/enterprise.js`.\n\n | **Note:** If your web pages have the `https://www.recaptcha.net/recaptcha/api.js` script, then replace it with `https://www.recaptcha.net/recaptcha/enterprise.js`.\n3. If you programmatically invoke the API, then replace the following calls:\n\n - `grecaptcha.execute()` -\\\u003e `grecaptcha.enterprise.execute()`\n - `grecaptcha.getResponse()` -\\\u003e `grecaptcha.enterprise.getResponse()`\n - `grecaptcha.ready()` -\\\u003e `grecaptcha.enterprise.ready()`\n - `grecaptcha.render()` -\\\u003e `grecaptcha.enterprise.render()`\n - `grecaptcha.reset()` -\\\u003e `grecaptcha.enterprise.reset()`\n\nMigrate the backend calls\n-------------------------\n\nTo use reCAPTCHA features, you must migrate your backend calls to\nthe new endpoints and set up authentication:\n\n1. Replace backend calls to `https://www.google.com/recaptcha/api/siteverify`\n with equivalent calls to `recaptchaenterprise.googleapis.com`. For the complete\n URL and the POST data format, see [Create an assessment for your website](/recaptcha/docs/create-assessment-website).\n\n2.\n\n Set up authentication to reCAPTCHA.\n\n The authentication method you choose depends on the environment where\n reCAPTCHA is set up. The following table helps you choose the\n appropriate authentication method and the supported interface to set up\n authentication:\n\n \u003cbr /\u003e\n\nWhat's next\n-----------\n\n- [Create an assessment for your website](/recaptcha/docs/create-assessment-website)"]]