我发现这个文档集成了rails gem recaptcha3和设备注册。
所以..。我将这个添加到设备的注册表单中:
<%= recaptcha_v3(action: 'signup') %>
然后将此代码添加到控制器:
class Users::RegistrationsController < Devise::RegistrationsController
prepend_before_action :check_captcha, only: [:create] # Change this to be any
actions you want
在一个付费的google帐户中的Recaptcha中,有超过1,000,000点击的Recaptcha (来自google的免费配额)。
没有选项可以选择在免费的Recaptcha上可用的不可见的v2 Recaptcha,只有复选框选项或Recaptcha企业版本(v3)。
当尝试使用复选框版本
Checkbox ("I'm not a robot") with scoring
站点密钥,并试图在size=中实现它--“不可见”--我在recaptcha徽章上得到了这个文本。
此站点密钥未为不可见的captcha启用。
当使用Recaptcha企业版时,即
S
我在我的页面上设置了reCAPTCHA v3:
<script src="https://www.google.com/recaptcha/api.js?render=MY_KEY"></script>
如果互联网连接变得不可用或不可靠,reCAPTCHA将在我的页面底部插入此超文本标记:
<div>
<div>
Could not connect to the reCAPTCHA service. Please check your internet connection and reload to get a re