gpt4 book ai didi

captcha - 如何在大量域上使用reCAPTCHA v2?

转载 作者:行者123 更新时间:2023-12-04 13:38:15 25 4
gpt4 key购买 nike

reCAPTCHA的先前版本提供了制作可以在任何域上使用的全局 key 的选项。现在,在版本2中,该选项消失了,并且reCAPTCHA网站声称“V2 API中不支持全局 key ”。

我正在使用大量域名,这些域名可以在没有我干预的情况下经常更改,因此我不想将每个新域都添加到 key 中。

有没有一种方法可以让reCAPTCHA在任何域上工作而无需特别授权每个域?

最佳答案

无需验证每个域就可以实现reCAPTCHA 2.0版:https://developers.google.com/recaptcha/docs/domain_validation

为此,请访问admin console,然后在“您的reCAPTCHA网站”下单击相关的API key 。然后在“高级设置”下,取消选中“验证reCAPTCHA解决方案的来源”。

安全警告

对于Google而言,这样做会带来安全隐患,然后您需要自己check the hostname

Turning off this protection by itself poses a large security risk - your key could be taken and used by anyone, as there are no restrictions as to the site it's on. For this reason, when verifying a solution, you are required to check the hostname field and reject any solutions that are coming from unexpected sources.



相关链接:(来自“ Stack Exchange Information Security”)
- Why bother validating the hostname for a Google Recaptcha response?

关于captcha - 如何在大量域上使用reCAPTCHA v2?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32191250/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com