> For the complete documentation index, see [llms.txt](https://docs.betterform.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.betterform.io/features/spam-protection.md).

# reCAPTCHA

Add reCAPTCHA to your form to easily filter out spam.

{% hint style="info" %}
We save all messages, marking them as verified or not verified. You can opt to hide unverified messages by default.
{% endhint %}

### Create a reCAPTCHA (v3) Project&#x20;

First, let's create a project on reCAPTCHA and obtain the site and secret keys. We currently support v3 reCAPTCHA.

{% embed url="<https://www.google.com/recaptcha/admin/create>" %}
New Recaptcha Project
{% endembed %}

### Update Project Setting

Update the reCAPTCHA keys on your BetterForm project. This verifies the validity of the submission.

![Edit Project Screen](https://3253194733-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLVAcRuUIjlGpopaeeJhm%2Fuploads%2FLRrgDd9wyZmyqq0efoUq%2FCleanShot%202022-06-18%20at%2012.55.14%402x.png?alt=media\&token=6b6d6844-6115-4315-8517-6ac9d1962058)

### Add reCAPTCHA Code

Add a `data-recaptcha` attribute containing your `site key` to the form tag on your website to enable reCAPTCHA.

```html
<form
  betterform
  data-bf-recaptcha="RECAPTCHA_SITE_KEY"
>
...
</form>
```

{% hint style="success" %}
That's it! All form submissions will now be screened for spam.
{% endhint %}
