防止 reCaptcha 多个图像选择 [英] Prevent reCaptcha multiple image selections

查看:42
本文介绍了防止 reCaptcha 多个图像选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在客户端网站上使用 Google reCaptcha 进行验证.今天,我收到了他们的投诉/更改请求,关于 reCaptcha 的多个图像选择(选择 2 种啤酒、葡萄酒、蛋糕等)验证.我的客户认为,由于其客户群的社会文化地位,让他们的客户选择酒精饮料是不合适的.

I'm using Google reCaptcha for validation purposes on a client website. Today I've got a complaint/change-request from them, regarding the multiple image selection (Select 2 beers, wines, cakes etc.) validation of reCaptcha. My client thinks it's inappropriate to having their customers choose from alcoholic beverages because of socio-cultural standing of their customer base.

长话短说;有没有办法自定义 Google reCaptcha 以仅在我不是机器人"选项失败时显示基于数字/字母的验证.

Long story short; is there a way to customize Google reCaptcha to only show number/letter based validation when "I'm not a robot" option fails.

推荐答案

我想我找到了解决方案.官方文档 包含有关不支持 reCaptcha 复选框小部件的环境的回退机制的信息.

I think I found a solution. The official documentation contains information about a fallback mechanism for environments that do not support the reCaptcha checkbox widget.

通过附加参数 fallback=true,您可以显式使用回退.

By appending the parameter fallback=true you can explicitly use the fallback.

自从我一直在使用后备之后,我还没有喝过任何啤酒或葡萄酒 reCaptcha.(但仍然是蛋糕、寿司或路标 reCaptchas)

I haven't had any beer or wine reCaptchas yet since I've been using the fallback. (But still cake, sushi or road-sign reCaptchas)

尝试以下操作:

<script src='https://www.google.com/recaptcha/api.js?fallback=true'></script>

但是回退小部件的可用性太糟糕了..

But the usability of the fallback widget is just horrible..

这篇关于防止 reCaptcha 多个图像选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆