開發人員指南's 指南
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
Google 提供 reCAPTCHA (v3 和 v2) 及 reCAPTCHA Enterprise,可協助你保護
防範詐欺活動、垃圾內容和濫用行為如要進一步瞭解
reCAPTCHA 和 reCAPTCHA Enterprise 的功能,請參閱「不同 reCAPTCHA 版本的功能比較」。
本文件將概略說明 Google reCAPTCHA v3 和 v2。適用對象
如需有關 reCAPTCHA Enterprise 的資訊,請參閱
reCAPTCHA Enterprise 說明文件。
如要開始使用 reCAPTCHA Enterprise,您可以使用網站註冊工具。這個
這項工具會協助您建立新的 reCAPTCHA 網站金鑰,如有需要,還可以建立
新的 Google Cloud 帳戶
開始使用
目標對象
本文件的適用對象為熟悉 HTML 表單、伺服器端處理或行動通訊的使用者
開發應用程式如要安裝 reCAPTCHA,您可能需要編輯部分程式碼。
希望這份說明文件能助您一臂之力。您可以在以下位置提出 reCAPTCHA 相關問題:
Stack Overflow,使用標記 recaptcha
。
總覽
如要開始使用 reCAPTCHA,您需要為網站註冊 API 金鑰組。金鑰組是由網站金鑰和密鑰組成。網站金鑰的用途是在網站或行動應用程式中叫用 reCAPTCHA 服務。密鑰可授權應用程式後端與 reCAPTCHA 伺服器之間的通訊,以驗證使用者的回應。為確保安全性,請妥善保管密鑰。
請先選擇 reCAPTCHA 類型,然後填入授權網域
或套件
名稱之後
已接受服務條款,按一下「註冊」即可取得新的 API 金鑰組。
現在,請按照下列步驟將 reCAPTCHA 新增至網站或行動應用程式:
- 選擇用戶端整合:
- 驗證使用者的回覆。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-09-18 (世界標準時間)。
[null,null,["上次更新時間:2024-09-18 (世界標準時間)。"],[[["\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)."]]