recaptcha - Google Captcha 无法验证来自服务器端的验证码响应
问题描述
我在我的网站上使用谷歌验证码 v2,
- 显示验证码
works
- 生成响应字符串
works
- 服务器端内部验证(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.
有人遇到过这个问题吗?有什么解决方法吗?
解决方案
与IPV6的设置有关,请运行谷歌搜索“我的IP是什么”。如果它以 ipv6 的形式返回,您可能必须将其强制为 ipv4。
推荐阅读
- excel - 根据变量定义的路径从多个关闭的工作簿中导入数据
- javascript - Javascript - 仅当输入值长度从 3 个字符变为 2 个字符时才执行函数?
- django - 使用 rest 框架更新相关对象
- docker - 为什么我的金丝雀部署不适用于 istio?
- stored-procedures - Azure Cosmos DB - 在写入数据之前检查容器中的数据
- android - 如何知道文本在 Jetpack Compose 上是否可见?
- python - 如何在不更改顺序的情况下比较python中的两个列表
- c - 使用指针访问嵌套结构中的数据
- math - 将球冠映射到平面上
- php - PHP嵌套foreach访问xml元素