Vanilla Form Makes Google Forms Fit Your Site—Now with Turnstile and reCAPTCHA Spam Protection

Vanilla Form Makes Google Forms Fit Your Site—Now with Turnstile and reCAPTCHA Spam Protection

I often use Google Forms because they're so easy to set up.
Collecting responses in Google Forms or Google Sheets is convenient, but the official embed doesn't always blend into a website's design, and fine-tuning its appearance can be frustrating.

That's why I built Vanilla Form, a free web app that generates HTML forms from Google Forms.

Paste a Google Form's respondent URL or embed code into the builder, and Vanilla Form reads its questions and generates an HTML form.
You can adjust the fields, required settings, and confirmation message, then place the result directly on your site without an iframe.

Your site gets a form that fits its design, while responses still go to Google Forms.
There's no need to set up a separate response-management service.

But once you put a contact form on a public website, spam becomes a concern.

So I've added Advanced Security to Vanilla Form.
It gives you the option to send submissions through PHP, where they're checked on the server before being forwarded to Google Forms.

Choose between a quick setup and stronger spam protection

Vanilla Form now offers two submission modes:

StandardAdvanced
Best forSimple forms or sites without PHPContact forms that need additional spam protection
Files to deployHTML and JavaScriptHTML, JavaScript, and PHP
Submission routeBrowser to Google FormsBrowser to your PHP endpoint, then Google Forms
Spam protectionBasic browser-side checksServer-side validation, rate limiting, and optional bot verification

Standard keeps the original, lightweight approach.
You can copy the generated HTML into your site without setting up PHP, including on static hosting.

Advanced is intended for situations such as public contact forms.
Deploy the generated PHP file alongside the HTML to validate submissions on your own server.

You don't need to rebuild the form: select the mode in the builder.
The responses still end up in Google Forms.

What Advanced Security adds

A browser's required-field checks are useful for visitors, but automated requests can bypass them.

With Advanced, the generated PHP handles several checks before forwarding a submission:

  • Field validation: Checks required fields and whether the submitted fields belong to the form.
  • Honeypot: Uses a field ordinary visitors aren't expected to fill in to identify suspicious automated submissions.
  • Rate limiting: Restricts repeated submissions from the same source over a short period.

You can also add a bot-verification service.

Optional Cloudflare Turnstile or reCAPTCHA v3

Advanced supports either Cloudflare Turnstile or Google reCAPTCHA v3.

Turnstile may ask visitors to complete a verification step when needed.
reCAPTCHA v3 assesses activity using a score without typically requiring an explicit challenge.
In both cases, the PHP endpoint checks the verification result before forwarding the form submission.

Neither service is required.
You can use Advanced with its built-in honeypot and rate limiting alone.

No setup can guarantee that all spam will disappear, but Advanced gives you more control over the protections you use.

Getting started is almost the same

The first steps are unchanged: import a Google Form and customize its appearance.

  1. Open the Vanilla Form Builder and paste a Google Form's respondent URL or embed code.
  2. Adjust the fields, styling, and confirmation message.
  3. Select Advanced as the submission mode and configure any optional bot verification.
  4. Copy the generated HTML and download the PHP file.
  5. Deploy both files to your server and send a test submission.

If you just want to try it, choose Standard and start with the generated HTML.
You can open the builder and import one of your existing Google Forms.

Before deploying Advanced

Advanced requires PHP 8.1 or later, the cURL extension, and a writable system temporary directory.
If your hosting can't run PHP, use Standard instead.

When Turnstile or reCAPTCHA v3 is enabled, the generated PHP file contains a secret verification key.
Don't commit it to a public repository or place it somewhere visitors can download it.

After deployment, submit a test response and check that it actually appears in Google Forms.
A completed submission request doesn't necessarily prove that Google has saved the response; the integration depends on Google Forms' behavior.

Why I added it

I built a contact form with Vanilla Form for my own website and discovered that it attracted more spam than I'd expected.
That experience led to Advanced Security.

You can find more details on the Vanilla Form product page.
The builder is free to use, so if you've ever wished your embedded Google Form matched the rest of your site, give it a try.

References

Related Posts

Comments

Leave a comment

Your email address will not be published. Required fields are marked.

Prove your humanity: 10   +   7   =