Quick answer

Does Webflow have spam protection on forms?

Webflow have built in spam filtering and bot blocking, a reCAPTCHA field and support for honeypot fields. Which you use is down to how much friction you’re prepared to accept.

The short answer

Yes. Webflow has built in spam filtering and bot blocking via its Cloudflare Turnstile setting, a reCAPTCHA form element (v2) and the ability to use a honeypot with custom code. Spam filtering is on by default for new sites and the reCAPTCHA option will apply to all forms on the site once it’s been enabled.

Answered by Stefan Velikov, Webflow Premium Partner since 2022

The detail

  1. 1Spam filtering and bot blocking are found under Site settings, Apps & Integrations, Cloudflare Turnstile spam protection. They apply to all forms on the site.
  2. 2Spam filtering is turned on by default on new sites. Webflow would recommend that you leave both spam filtering and bot blocking on.
  3. 3reCAPTCHA is Google’s v2 “I’m not a robot” checkbox. You need Google keys and a reCAPTCHA element in every form.
  4. 4The honeypot technique makes use of a hidden field and a small bit of script.
  5. 5Webflow notes that CAPTCHAs can be a negative experience and that advanced bots can get around them.

Bot blocking and spam filtering

Both are site level settings. Bot blocking works by analysing mouse movements, inputs and other signals to determine the difference between a bot and a visitor and will block form submissions from bots. Spam filtering works by looking at all the form data that’s sent to your site and filtering out spam submissions. You can use either one in conjunction with reCAPTCHA. With bot blocking enabled the submit buttons will be disabled whilst the protection is loading and you can style that state in the Style panel or with CSS.

reCAPTCHA

Add a reCAPTCHA element to the form, register your site with Google as a reCAPTCHA v2 (checkbox type) and add all the domains you use (including the webflow.io staging domain if you’re testing there). Paste your site key and secret key into Site Settings > Apps & Integrations. This will enforce reCAPTCHA validation on all forms. A form without a reCAPTCHA element will not submit at all and it kicks in as soon as you save (before you republish). If you restore a site backup the reCAPTCHA settings will be reset so you’ll need to re-enter the keys.

The honeypot technique

Add a hidden field that the real visitor will never fill. Webflow’s example gives the wrapper a class name that doesn’t contain the word “hidden”, gives the field a sensible name and some common IDs, hides it via position/opacity/display none and adds tabindex="-1" and aria-hidden="true" so that it’s skipped by both keyboard and screen reader users. A little bit of script then disables the submit button if that hidden field has a value. Webflow cautions that bots learn so you may well need to tweak the setup at some point in the future.

Which to start with

Start with the options that cost the real visitor nothing. Turn spam filtering and bot blocking on first (Webflow say these apply to every form and they recommend keeping both on). If automated submissions are still getting through then add a honeypot field. Keep reCAPTCHA for the persistent spam as Webflow note that CAPTCHAs can be a negative experience, advanced bots can get past them and enabling reCAPTCHA applies to all forms on the site.

Related questions

Is reCAPTCHA v3 supported?

Webflow’s instructions use reCAPTCHA v2 (the ’I’m not a robot’ checkbox).

Why did my forms stop working after I’d added the reCAPTCHA?

Once reCAPTCHA is on, every form has to have a reCAPTCHA element in it or it won’t submit.

Why are the real emails disappearing even with protection in place?

Ensure that the form’s “Send to” is Webflow rather than a custom action and check Site settings > Forms for the submission.