Guía para desarrolladores
Organiza tus páginas con colecciones
Guarda y categoriza el contenido según tus preferencias.
Google ofrece reCAPTCHA (v3 y v2) y reCAPTCHA Enterprise para ayudarte a proteger
tus sitios de actividades fraudulentas, spam y abusos. Para obtener más información sobre el
de reCAPTCHA y reCAPTCHA Enterprise, consulta Comparación de funciones entre versiones de reCAPTCHA.
En este documento, se proporciona una descripción general de Google reCAPTCHA v3 y v2. Para obtener información sobre reCAPTCHA Enterprise, consulta la documentación de reCAPTCHA Enterprise.
Para comenzar a usar reCAPTCHA Enterprise, puedes usar nuestro
Herramienta de Registro de Sitios. Esta
te ayudará a crear una nueva clave de sitio de reCAPTCHA y, si es necesario, también
nueva cuenta de Google Cloud.
Comenzar
Público
Esta documentación está diseñada para personas con conocimientos sobre formularios HTML, procesamiento del servidor o datos
el desarrollo de aplicaciones. Es posible que debas editar parte del código para instalar reCAPTCHA.
Esperamos que esta documentación te resulte fácil de seguir. Puedes hacer preguntas sobre reCAPTCHA en
Stack Overflow, con la etiqueta recaptcha
.
Descripción general
Si quieres comenzar a usar reCAPTCHA, debes registrarte para obtener una clave de API
de búsqueda para tu sitio. El par de claves consta de una clave de sitio y
clave secreta. La clave de sitio se usa para invocar el servicio de reCAPTCHA en tu sitio o aplicación para dispositivos móviles. El
que autoriza la comunicación entre el backend de tu aplicación y el servidor reCAPTCHA
verificar la respuesta del usuario La clave secreta debe mantenerse protegida
con fines de seguridad.
Primero, elige el tipo de reCAPTCHA y, luego, completa los dominios autorizados
o package
nombres. Después de aceptar las condiciones del servicio, haz clic en Registrar para obtener un nuevo par de claves de API.
Ahora, sigue estos pasos para agregar reCAPTCHA a tu sitio o aplicación para dispositivos móviles:
- Elige la integración del cliente:
- Verifica la respuesta del usuario.
Salvo que se indique lo contrario, el contenido de esta página está sujeto a la licencia Atribución 4.0 de Creative Commons, y los ejemplos de código están sujetos a la licencia Apache 2.0. Para obtener más información, consulta las políticas del sitio de Google Developers. Java es una marca registrada de Oracle o sus afiliados.
Última actualización: 2024-09-18 (UTC)
[null,null,["Última actualización: 2024-09-18 (UTC)"],[[["\u003cp\u003eGoogle reCAPTCHA helps protect your website from spam, abuse, and fraudulent activities with v3, v2, and Enterprise options.\u003c/p\u003e\n"],["\u003cp\u003eTo use reCAPTCHA, you'll need to sign up for an API key pair (site key and secret key) and integrate it into your website or mobile application.\u003c/p\u003e\n"],["\u003cp\u003ereCAPTCHA offers different integration options including v3, v2 (checkbox, invisible), and Android, allowing you to choose the best fit for your needs.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation is intended for developers familiar with HTML, server-side processing, or mobile application development and requires code edits for installation.\u003c/p\u003e\n"]]],["Google offers reCAPTCHA v3, v2, and reCAPTCHA Enterprise to protect against fraud and spam. To begin, register for an API key pair (site and secret keys) using the Site Registration Tool. Choose a reCAPTCHA type and provide authorized domains or package names. Integrate reCAPTCHA on the client-side, selecting from v3, v2 checkbox, invisible, or Android options. Finally, verify the user's response by authorizing communication with the reCAPTCHA server using the secret key.\n"],null,["# Developer's Guide\n\nGoogle offers reCAPTCHA (v3 and v2) and reCAPTCHA Enterprise to help you protect\nyour sites from fraudulent activities, spam, and abuse. To know more about the\nfeatures of reCAPTCHA and reCAPTCHA Enterprise, see [Comparison of features between reCAPTCHA versions](https://cloud.google.com/recaptcha/docs/compare-tiers).\n\nThis document provides an overview of Google reCAPTCHA v3 and v2. For\ninformation about reCAPTCHA Enterprise, see the\n[reCAPTCHA Enterprise documentation](https://cloud.google.com/recaptcha/docs/overview).\n\nTo get started with reCAPTCHA Enterprise, you can use our\n[Site Registration Tool](https://www.google.com/recaptcha/admin/create). This\ntool will help you create a new reCAPTCHA Site Key, and if needed also create a\nnew Google Cloud account.\n\n[Get Started](https://www.google.com/recaptcha/admin/create)\n\nAudience\n--------\n\nThis documentation is designed for people familiar with HTML forms, server-side processing or mobile\napplication development. To install reCAPTCHA, you might need to edit some code.\n\nWe hope you find this documentation easy to follow. You can ask a question about reCAPTCHA on\n[Stack Overflow](https://stackoverflow.com/questions/tagged/recaptcha), using the tag `recaptcha`.\n\nOverview\n--------\n\nTo start using reCAPTCHA, you need to [sign up for an API key\npair](http://www.google.com/recaptcha/admin) for your site. The key pair consists of a site key and\nsecret key. The site key is used to invoke reCAPTCHA service on your site or mobile application. The\nsecret key authorizes communication between your application backend and the reCAPTCHA server to\n[verify the user's response](/recaptcha/docs/verify). The secret key needs to be kept safe for\nsecurity purposes.\n\nFirst, choose the [type of reCAPTCHA](/recaptcha/docs/versions) and then fill in authorized domains\nor [package\nnames.](https://developer.android.com/guide/topics/manifest/manifest-element.html#package) After you\nhave accepted the terms of service, click **Register** to get new API key pair.\n\nNow, perform the following steps to add reCAPTCHA to your site or mobile application:\n\n1. Choose the client-side integration:\n - [reCAPTCHA v3](/recaptcha/docs/v3)\n - reCAPTCHA v2\n - [Checkbox](/recaptcha/docs/display)\n - [Invisible](/recaptcha/docs/invisible)\n - [Android](https://developer.android.com/training/safetynet/recaptcha.html)\n2. [Verify the user's response](/recaptcha/docs/verify)."]]