---
title: "Bring your own reCAPTCHA to Netlify Forms | Netlify"
description: "Realize the speed, agility and performance of a scalable, composable web architecture with Netlify. Explore the composable web platform now!"
source: "https://www.netlify.com/blog/2018/05/23/bring-your-own-recaptcha-to-netlify-forms/"
last_updated: "2026-08-05T06:05:10.000Z"
---
Netlify’s [form handling functionality](https://docs.netlify.com/forms/setup/) provides several mechanisms to secure your project from spam messages and abuse. However, our standard conventions can’t always cover every single case. Today, we’re giving you full control to configure reCAPTCHA 2 validations in your forms, regardless of how you decide to build them, by allowing you to set your own reCAPTCHA 2 site keys and secrets.

If you want to to include a reCAPTCHA 2 on your site, you can set the key and secret in your site’s build environment variables, and Netlify will use them to secure your form submissions. Use `SITE_RECAPTCHA_KEY` to set your site key, and `SITE_RECAPTCHA_SECRET` to set the secret provided by reCAPTCHA 2. You can find more details in the [docs](https://docs.netlify.com/forms/setup/).

![reCAPTCHA settings](/v3/img/blog/recaptcha-settings.png)

Questions or feedback about this update? Give us a shout on [Twitter](https://twitter.com/Netlify), or [through support](/support/).

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=Bring your own reCAPTCHA to Netlify Forms&url=https://www.netlify.com/blog/2018/05/23/bring-your-own-recaptcha-to-netlify-forms//)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2F2018%2F05%2F23%2Fbring-your-own-recaptcha-to-netlify-forms%2F%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/2018/05/23/bring-your-own-recaptcha-to-netlify-forms//)
-   [Bluesky](https://bsky.app/intent/compose?text=Bring your own reCAPTCHA to Netlify Forms+https://www.netlify.com/blog/2018/05/23/bring-your-own-recaptcha-to-netlify-forms//)

* * *

### Tags

-   [Forms](/blog/tags/forms/)

## Keep reading

![](/_astro/19ef665d69b3b077bd19c76d9dfcda7749cad7af-1600x900_Z5yehl.webp)

News & Announcements July 28, 2026

[

### New Netlify projects are now private by default

](/blog/new-netlify-projects-are-now-private-by-default)

-   ![Profile picture of Taylor Barnett-Torabi](/_astro/cf4624da8c1286738397b6fecb53bad504df140b-400x400_ZsvK0s.webp)
    
    Taylor Barnett-Torabi
    

![](/_astro/d0354fe52c160a3abdfdeff297a1baf090302a3d-1600x900_Z1eDdJG.webp)

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

## Recent posts

Opinions & Insights July 28, 2026

[

### Open Weights and the 2nd World

](/blog/open-weights-and-the-2nd-world)

-   ![Profile picture of Mathias Biilmann](/_astro/f193d4707a6391d843d5aaa73338b5a5971ec5cc-960x960_1Yylqm.webp)
    
    Mathias Biilmann
    

Tools & Services July 28, 2026

[

### MCP goes stateless and extensible

](/blog/mcp-goes-stateless-and-extensible)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

News & Announcements July 28, 2026

[

### New Netlify projects are now private by default

](/blog/new-netlify-projects-are-now-private-by-default)

-   ![Profile picture of Taylor Barnett-Torabi](/_astro/cf4624da8c1286738397b6fecb53bad504df140b-400x400_ZsvK0s.webp)
    
    Taylor Barnett-Torabi
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)