简体   繁体   中英

Can I have captcha in google apps script?

我正在Google Apps脚本中部署复制,并且需要在其上实现验证码,如何在Google App Script中包含验证码?

Know it's an old question, but had the same issue recently.
In short, Yes, and you can add reCaptcha .

See the readme and sample files and then adapt to your needs.

Code.gs has the basics you need to only have to use javascript as oppose to php for responses.

Yes, you can. Here is a tutorial I posted today on my website.

reCAPCHA with Google Apps Script

The tricky thing is the domain name when you register for a Website to use reCAPTCHA. Since Apps Script webapps are hosted in an iFrame, you need to use domain of iFrame. If you do an analysis of Apps Script Webapp, you will find that all the apps have an iFrame on a temporary domain like xsdsdfjsdfks.googleusercontent.com. So you need to resgister domain googleusercontent.com in order to get a site-key and secret-key pair.

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