Google验证码无法验证服务器端的验证码响应

时间:2019-07-11 07:25:05

标签: recaptcha

我在我的网站上使用google captcha v2

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

出现以下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.

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

1 个答案:

答案 0 :(得分:0)

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