reCAPTCHA:提示與指南
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
重要事項:系統已不再支援 reCAPTCHA API 1.0 版,請升級至 2.0 版。瞭解詳情
使用者錯誤
填寫表單時出錯,可能會讓使用者感到不快。使用者進入網站時
人機驗證 (Captcha) 錯誤 (或表單中的其他欄位) 有問題,我們強烈建議您採取以下行動:
-
使用者先前輸入表單資料後,再重新顯示相關表單,因此他們不必再這麼做
重新輸入所有資訊
-
將
error=
參數新增至 http://www.google.com/recaptcha/api/challenge,這樣錯誤類型就會變成
向使用者顯示
HTTPS 網站上的 reCAPTCHA
避免在使用 reCAPTCHA 時收到瀏覽器警告
應該將 http://www.google.com/recaptcha/api 替換成 https://www.google.com/recaptcha/api,
要求挑戰。您向 reCAPTCHA 提出的要求看起來會像這樣:
<script type="text/javascript"
src="https://www.google.com/recaptcha/api/challenge?k=your_public_key">
</script>
<noscript>
<iframe src="https://www.google.com/recaptcha/api/noscript?k=your_public_key"
height="300" width="500" frameborder="0"></iframe><br>
<textarea name="recaptcha_challenge_field" rows="3" cols="40">
</textarea>
<input type="hidden" name="recaptcha_response_field"
value="manual_challenge">
</noscript>
reCAPTCHA 欄位空白
如果值為「recaptcha_challenge_field」或「recaptcha_response_field」為
處理表單時未設定,請避免將要求傳送至 www.google.com/recaptcha/api/verify。這樣一來,
可讓您更快速地處理簡單的垃圾郵件。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-07-25 (世界標準時間)。"],[[["reCAPTCHA API version 1.0 is no longer supported; users should upgrade to version 2.0."],["When users make mistakes in forms, pre-fill their previous entries and use the `error=` parameter in the reCAPTCHA API challenge URL to display the error type."],["When implementing reCAPTCHA on HTTPS sites, ensure to use the `https://` protocol in the reCAPTCHA API URL to prevent browser warnings."],["To handle spam attempts efficiently, avoid sending verification requests to the reCAPTCHA API if the challenge or response fields are empty."]]],["Upgrade from reCAPTCHA API version 1.0 to 2.0. When form errors occur, pre-fill the form with user-entered data and add the `error=` parameter to the reCAPTCHA challenge URL. For SSL sites, use `https://www.google.com/recaptcha/api` instead of `http://` for challenge requests. If `recaptcha_challenge_field` or `recaptcha_response_field` is unset, skip the verification request to quickly handle spam.\n"]]