Can I have captcha in google apps script?

I'm deploying an aplicattion in Google Apps Script, and I need the implementation of a captcha on it, how can I include captcha in Google App Script?

Upvotes: 2

Views: 2830

Answers (2)

Waqar Ahmad
Waqar Ahmad

Reputation: 3732

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.

Upvotes: 1

piet
piet

Reputation: 181

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.

Upvotes: 2

Related Questions