reCaptcha v3 handle score callback

后端 未结 3 2102
天涯浪人
天涯浪人 2020-12-07 01:15

I followed recaptcha v3 example and managed to make it return a callback with a score for a page, similar with their demo.

What I don\'t understand is how to

3条回答
  •  暖寄归人
    2020-12-07 01:26

    If JavaScript is disabled, reCAPTCHA doesn't work anyway and most form submissions will/should fail if bot protection is critical to you.

    As for the score that V3 returns, it is entirely up to you how you handle it.

    Generally this is handled on form validations. The with V3 you could require the g-response value to be greater than 0.8 or something to your liking. Exact implementation varies greatly by how your app is structured.

    From the docs: reCAPTCHA v3 returns a score (1.0 is very likely a good interaction, 0.0 is very likely a bot). Based on the score, you can take variable action in the context of your site.

提交回复
热议问题