reCAPTCHA:提示和指南
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
重要提示:1.0 版 reCAPTCHA API 不再受支持,请升级到 2.0 版。了解详情
用户错误
在填写表单时出错,会让用户感到非常沮丧。当用户进入
人机识别系统错误(或表单中的任何其他字段),我们强烈建议您通过以下方式帮助他们:
-
使用预填充的表单数据重新显示相关表单,这样用户就不必
请重新输入所有内容。
-
将
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 发送请求。这样,
以便您更快地处理简单的垃圾邮件尝试。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):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"]],["最后更新时间 (UTC):2025-07-25。"],[],["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"]]