简体   繁体   中英

How to show reCAPTCHA before a page loads

如何在页面加载之前显示reCAPTCHA,就像它在用户访问页面时显示reCAPTCHA一样,他们需要填写reCAPTCHA,然后如果他们成功填写了reCAPTCHA,它将加载页面内容。

You can't do that, you will need to add an extra step in between.

You can add a page that says something like

Click here if you are a human

And then put your recaptcha validation in a button where the user responds

Sorry you don't that. When a webpage load first execute your server side language then client side language. You add ajax system.

You can hide/disable your page content untill user verify captcha process, also visit this for an idea,

How can I validate google reCAPTCHA v2 using javascript/jQuery?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM