首页 > 解决方案 > Google Captcha 无法验证来自服务器端的验证码响应

问题描述

我在我的网站上使用谷歌验证码 v2,

  1. 显示验证码works
  2. 生成响应字符串works
  3. 服务器端内部验证(api:https ://www.google.com/recaptcha/api/siteverify )fails

出现以下 html 错误

<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\"/><title>Sorry...</title><style> body { font-family: verdana, arial, sans-serif; background-color: #fff; color: #000; }</style></head><body><div><table><tr><td><b><font face=sans-serif size=10><font color=#4285f4>G</font><font color=#ea4335>o</font><font color=#fbbc05>o</font><font color=#4285f4>g</font><font color=#34a853>l</font><font color=#ea4335>e</font></font></b></td><td style=\"text-align: left; vertical-align: bottom; padding-bottom: 15px; width: 50%\"><div style=\"border-bottom: 1px solid #dfdfdf;\">Sorry...</div></td></tr></table></div><div style=\"margin-left: 4em;\"><h1>We're sorry...</h1><p>... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.</p></div><div style=\"margin-left: 4em;\">See <a href=\"https://support.google.com/websearch/answer/86640\">Google Help</a> for more information.<br/><br/></div><div style=\"text-align: center; border-top: 1px solid #dfdfdf;\"><a href=\"https://www.google.com\">Google Home</a></div></body></html>

信息 :

We're sorry... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.

有人遇到过这个问题吗?有什么解决方法吗?

标签: recaptcha

解决方案


与IPV6的设置有关,请运行谷歌搜索“我的IP是什么”。如果它以 ipv6 的形式返回,您可能必须将其强制为 ipv4。


推荐阅读