Spam filtering is the one the hardest parts of operating a form service. Everyone has a different tolerance for spam they expect to be filtered for them. There will always be some percentage of false positives with any spam filtering solution. We filter spam in order to protect our email sending reputation, this is what enables us to land emails in your inbox instead of your spam folder.Please keep in mind that we don’t delete a submission if we think it’s a spam, we only mark it as a spam. Therefore we filter out the spam submissions when you check the submissions inside the dashboard. We also don’t send email notifications for spam submissions.
Formbox retains spam for 30 days before it is permanently deleted. Be sure to review your spam
folder frequently.
A honeypot is a simple spam filtering technique that adds a hidden field to your form that only bots can see. If the field is filled out, the submission is marked as spam. This is the easiest spam filtering option to implement and is available in your form’s settings.You can also configure a custom honeypot field for your form. This is useful if you want to use a different field name or if you want to use it in addition our our default honeypot.
In your HTML code you need to add a hidden input field with the name you’ve configured in the form settings. For example:
We use Spamcheck.ai to accurately assess the legitimacy of your form’s submission content. It is an intelligent API solution that provides automatic protection and stops spam content from reaching your inbox. It uses machine learning to constanly and evolve to be better at what it does.
ReCaptcha v3 is a service provided by Google that protects your forms from spam and abuse for free. It uses advanced risk analysis techniques to tell humans and bots apart. It is invisible to users and works in the background.
First, you will need to create a new site from the reCAPTCHA console. You can do so by clicking here.
Fill in the required fields and click on the Submit button. You will be redirected to a page where you can find your site key and secret key.
Copy the site key and secret key and enable the recaptcha setting, then paste the secret key into the reCAPTCHA settings in your form settings and click Save changes.
Now that we have the reCAPTCHA keys configured in Formbox, we need to implement it in your HTML form.Lets start by adding the reCAPTCHA script to the head of your HTML document:
Replace YOUR_SITE_KEY with the site key you copied from the reCAPTCHA console.Next we need to add the reCAPTCHA token to the form submission. We can do this by adding a script tag to the bottom of the form:
The grecaptcha.ready function will make a request to Google and return a token. Normally you would send this token to your server and verify it with Google. However, since Formbox handles the form submissions, we will take a different approach.Lets start by adding a hidden input field to the form:
Now when the form is submitted, the reCAPTCHA token will be sent along with the form data. Formbox will verify the token with Google and if it’s valid, the submission will be successful, otherwise it will be marked as spam.
Last modified on April 1, 2026
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Formbox Docs","description":"Documentation for Formbox's forms backend, API, embeds, integrations, and framework guides.","colors":{"primary":"#111827","light":"#ffffff","dark":"#111827"},"logo":{"light":"https://mintcdn.com/formbox/W6NOv_eKuQUBviH6/logo/light.svg?fit=max\u0026auto=format\u0026n=W6NOv_eKuQUBviH6\u0026q=85\u0026s=b111f8634744c7ed87d8daba5ca3e084","dark":"https://mintcdn.com/formbox/W6NOv_eKuQUBviH6/logo/dark.svg?fit=max\u0026auto=format\u0026n=W6NOv_eKuQUBviH6\u0026q=85\u0026s=898ce17b0d910b1bb61d670122953e11","href":"https://formbox.app"},"favicon":"https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/favicon.png?fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=cf9410368e9421132ee28654aaa6d09b","api":{"openapi":["api-reference/openapi.json"]},"navbar":{"links":[{"href":"mailto:support@formbox.app","label":"Support"},{"href":"https://formbox.featurebase.app/?t=6611e703de522cf802d6f269","label":"Feedback"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.formbox.app"}},"footer":{"socials":{"website":"https://formbox.app"}},"search":{"prompt":"Search Formbox docs, guides, API reference, and integrations..."},"seo":{"metatags":{"og:site_name":"Formbox Docs","twitter:card":"summary_large_image"},"indexing":"navigable"},"contextual":{"options":["copy","chatgpt","claude","aistudio","mcp","cursor","vscode"],"display":"header"},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"formbox","hasAudioNarration":false,"actualSubdomain":"formbox","customDomains":["docs.formbox.app"],"gitSource":{"type":"github","owner":"formboxhq","repo":"formbox","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6aa2fbff62605cd6876616ef","collectionId":"c55c72ae-e30b-425f-9154-8c75e0a92582","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6aa2fbff62605cd6876616ef"},"entitlements":{},"buildId":"6aa2fbff62605cd6876616ef","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"Documentation","count":35},{"language":"default","tag":"API Reference","count":16},{"language":"default","tag":"Features","count":16},{"language":"default","tag":"Guides","count":10},{"language":"default","tag":"Integrations","count":8},{"language":"default","tag":"Forms","count":5},{"language":"default","tag":"Submissions","count":3},{"language":"default","tag":"Get Started","count":1}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"features/spam-protection","slug":"/features/spam-protection","pageMetadata":{"title":"Spam protection","description":"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.","href":"/features/spam-protection"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Frame,Heading,OptimizedImage,Tip,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Frame)_missingMdxReference(`Frame`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!OptimizedImage)_missingMdxReference(`OptimizedImage`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`spam-filtering`,children:`Spam filtering`}),`\n`,_jsx(_components.p,{children:`Spam filtering is the one the hardest parts of operating a form service. Everyone has a different tolerance for spam they expect to be filtered for them. There will always be some percentage of false positives with any spam filtering solution. We filter spam in order to protect our email sending reputation, this is what enables us to land emails in your inbox instead of your spam folder.`}),`\n`,_jsx(_components.p,{children:`Please keep in mind that we don’t delete a submission if we think it’s a spam, we only mark it as a spam. Therefore we filter out the spam submissions when you check the submissions inside the dashboard. We also don’t send email notifications for spam submissions.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Formbox retains spam for `,_jsx(_components.strong,{children:`30 days`}),` before it is permanently deleted. Be sure to review your spam\nfolder frequently.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`formbox-spam-protection-options`,children:`Formbox spam protection options`}),`\n`,_jsx(Heading,{level:`3`,id:`honeypots`,children:`Honeypots`}),`\n`,_jsx(_components.p,{children:`A honeypot is a simple spam filtering technique that adds a hidden field to your form that only bots can see. If the field is filled out, the submission is marked as spam. This is the easiest spam filtering option to implement and is available in your form’s settings.`}),`\n`,_jsx(_components.p,{children:`You can also configure a custom honeypot field for your form. This is useful if you want to use a different field name or if you want to use it in addition our our default honeypot.`}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=424f76c139d2dd2b4957d830fcb0900d`,style:{borderRadius:`0.5rem`},\"data-og-width\":`2532`,width:`2532`,\"data-og-height\":`1808`,height:`1808`,\"data-path\":`images/custom-honeypot.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?w=280\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=93d5b44a070b1c895fe2ade0cc9dcb51 280w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?w=560\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=3acfd7f56170d5e1eee0f613f624237e 560w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?w=840\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=ebbaa90617534db264444ab9bb8d66c1 840w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?w=1100\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=670869eb194a10082b9452ac231d00d0 1100w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?w=1650\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=f1cb995f00632ec66bbd7bbe5efb1518 1650w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/custom-honeypot.png?w=2500\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=7974865cbf085182381de04b0709d4dc 2500w`})}),`\n`,_jsx(_components.p,{children:`In your HTML code you need to add a hidden input field with the name you’ve configured in the form settings. For example:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hidden\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"_customhoneypot\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(Tip,{children:[`The custom honeypot feature is not available on the `,_jsx(_components.strong,{children:`Free`}),` plan.`]}),`\n`,_jsx(Heading,{level:`3`,id:`ai-spam-filtering`,children:`AI spam filtering`}),`\n`,_jsxs(_components.p,{children:[`We use `,_jsx(`a`,{href:`https://spamcheck.ai`,target:`_blank`,rel:`noopener noreferrer`,children:`Spamcheck.ai`}),` to accurately assess the legitimacy of your form’s submission content. It is an intelligent API solution that provides automatic protection and stops spam content from reaching your inbox. It uses machine learning to constanly and evolve to be better at what it does.`]}),`\n`,_jsx(Heading,{level:`3`,id:`google-recaptcha-v3`,children:`Google reCAPTCHA v3`}),`\n`,_jsx(_components.p,{children:`ReCaptcha v3 is a service provided by Google that protects your forms from spam and abuse for free. It uses advanced risk analysis techniques to tell humans and bots apart. It is invisible to users and works in the background.`}),`\n`,_jsx(Heading,{level:`4`,id:`configuring-google-recaptcha-v3-in-formbox`,children:`Configuring Google reCAPTCHA v3 in Formbox`}),`\n`,_jsxs(_components.p,{children:[`First, you will need to create a new site from the reCAPTCHA console. You can do so by `,_jsx(`a`,{href:`https://www.google.com/recaptcha/admin`,target:`_blank`,rel:`noopener noreferrer`,children:`clicking here`}),`.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=2d06cd1f03d8890a1e95a43fb82904fe`,style:{borderRadius:`0.5rem`},\"data-og-width\":`2568`,width:`2568`,\"data-og-height\":`1906`,height:`1906`,\"data-path\":`images/classic.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?w=280\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=3d7ddde9c9dde78bc04125510e5cc1bd 280w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?w=560\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=ae9f2001e90375f09c00a2b4383f0ff9 560w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?w=840\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=ce31465e1b87dca6f576dadf000f131f 840w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?w=1100\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=fdd45bc011777f7f45bb43a72e76298f 1100w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?w=1650\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=60027bd307141092772a035cbcf702b7 1650w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/classic.png?w=2500\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=b739688f078510df4d4adfe80a97cd1f 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Fill in the required fields and click on the `,_jsx(_components.strong,{children:`Submit`}),` button. You will be redirected to a page where you can find your site key and secret key.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=771f629f2171db5850ce40d7aa3d23c2`,style:{borderRadius:`0.5rem`},\"data-og-width\":`2568`,width:`2568`,\"data-og-height\":`1678`,height:`1678`,\"data-path\":`images/site-keys-recaptcha.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?w=280\u0026fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=105bcc3821c149daf69c429b21734320 280w, https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?w=560\u0026fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=b188eb7a745d5dcacbd56fecb69fd1d5 560w, https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?w=840\u0026fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=961d1f3666653d63c617c7295ca81329 840w, https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?w=1100\u0026fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=6d1dc8ceba1f9cb2a99c41c468298031 1100w, https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?w=1650\u0026fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=2e4ea92de4e71b4ca0237b1de2bf70eb 1650w, https://mintcdn.com/formbox/27_5fcxY_YavrIb7/images/site-keys-recaptcha.png?w=2500\u0026fit=max\u0026auto=format\u0026n=27_5fcxY_YavrIb7\u0026q=85\u0026s=5c2e120e3c1f6020523c3dc30029f647 2500w`})}),`\n`,_jsxs(_components.p,{children:[`Copy the site key and secret key and enable the recaptcha setting, then paste the secret key into the reCAPTCHA settings in your form settings and click `,_jsx(_components.strong,{children:`Save changes`}),`.`]}),`\n`,_jsx(Frame,{children:_jsx(OptimizedImage,{src:`https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=6b25e5142dbced72f0f31036664ec5d4`,style:{borderRadius:`0.5rem`},\"data-og-width\":`2558`,width:`2558`,\"data-og-height\":`1824`,height:`1824`,\"data-path\":`images/paste-secret-key.png`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?w=280\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=bef79e93d3afe38237a43f899a853ae2 280w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?w=560\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=c88d92dc5cc761c9a37a2bc7a3060b04 560w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?w=840\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=cbd1f9b8f6b4acc045626eb87542c99e 840w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?w=1100\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=988840e103dfaafb51e1d78a8d7d70ed 1100w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?w=1650\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=40ffde1d3f8f70a5daf798ff7d8d957f 1650w, https://mintcdn.com/formbox/05sa9iZ1Da5XhrTY/images/paste-secret-key.png?w=2500\u0026fit=max\u0026auto=format\u0026n=05sa9iZ1Da5XhrTY\u0026q=85\u0026s=51ba40e1aedea4ba68e3a7ff4a02c660 2500w`})}),`\n`,_jsx(Heading,{level:`4`,id:`adding-recaptcha-to-your-html-form`,children:`Adding reCAPTCHA to your HTML form`}),`\n`,_jsx(_components.p,{children:`Now that we have the reCAPTCHA keys configured in Formbox, we need to implement it in your HTML form.`}),`\n`,_jsx(_components.p,{children:`Lets start by adding the reCAPTCHA script to the head of your HTML document:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`16`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c!`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`DOCTYPE`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` html`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`html`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` lang`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`head`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`meta`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` charset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UTF-8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Form Example`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` \u003c!-- Google reCAPTCHA script -->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`head`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` action`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.formbox.app/s/{your_form_id}\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`label`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Your E-mail:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` placeholder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`html`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`Replace `,_jsx(_components.code,{children:`YOUR_SITE_KEY`}),` with the site key you copied from the reCAPTCHA console.`]}),`\n`,_jsx(_components.p,{children:`Next we need to add the reCAPTCHA token to the form submission. We can do this by adding a script tag to the bottom of the form:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`21`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`21`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`html`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` lang`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"en\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`head`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`meta`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` charset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"UTF-8\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Form Example`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`title`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#6E7781`,\"--shiki-dark\":`#6A9955`},children:` \u003c!-- Google reCAPTCHA script -->`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` src`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://www.google.com/recaptcha/api.js?render=YOUR_SITE_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`head`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` action`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.formbox.app/s/{your_form_id}\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`label`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Your E-mail:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` placeholder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` grecaptcha`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ready`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` grecaptcha`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`execute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_SITE_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`action:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"homepage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {});`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`body`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`html`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[`The `,_jsx(_components.code,{children:`grecaptcha.ready`}),` function will make a request to Google and return a token. Normally you would send this token to your server and verify it with Google. However, since Formbox handles the form submissions, we will take a different approach.`]}),`\n`,_jsx(_components.p,{children:`Lets start by adding a hidden input field to the form:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` action`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.formbox.app/s/{your_form_id}\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` method`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`label`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` for`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Your E-mail:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`label`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"name\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` placeholder`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"email\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`input`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"hidden\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"captchaResponse\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"g-recaptcha-response\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` />`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:` \u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#9CDCFE`},children:` type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"submit\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`Subscribe`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`button`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`form`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Next we need to update the script to set the token as the value to the hidden input field:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`7`,language:`html`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`html`,children:_jsxs(_components.code,{language:`html`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` grecaptcha`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`ready`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` () {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` grecaptcha`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`execute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_SITE_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`action:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"homepage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }).`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`then`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`function`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` (`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`) {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` document`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`getElementById`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"captchaResponse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`value`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` token`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` });`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`\u003c/`}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#569CD6`},children:`script`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#808080`},children:`>`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`Now when the form is submitted, the reCAPTCHA token will be sent along with the form data. Formbox will verify the token with Google and if it’s valid, the submission will be successful, otherwise it will be marked as spam.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Spam protection","description":"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.","href":"/features/spam-protection"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Spam filtering","slug":"spam-filtering","depth":2,"children":[]},{"title":"Formbox spam protection options","slug":"formbox-spam-protection-options","depth":2,"children":[{"title":"Honeypots","slug":"honeypots","depth":3,"children":[]},{"title":"AI spam filtering","slug":"ai-spam-filtering","depth":3,"children":[]},{"title":"Google reCAPTCHA v3","slug":"google-recaptcha-v3","depth":3,"children":[]},{"title":"Configuring Google reCAPTCHA v3 in Formbox","slug":"configuring-google-recaptcha-v3-in-formbox","depth":4,"children":[]},{"title":"Adding reCAPTCHA to your HTML form","slug":"adding-recaptcha-to-your-html-form","depth":4,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"formbox","siteName":"Formbox Docs","title":"Spam protection - Formbox Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-04-08T13:57:16.759Z","gitLastModified":"2026-04-01T20:29:19.000Z","originalFileLocation":"features/spam-protection.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Formbox Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Spam protection - Formbox Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Formbox Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.formbox.app/features/spam-protection\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://formbox.mintlify.app/_mintlify/api/og/v2?division=Features\u0026amp;title=Spam+protection\u0026amp;description=Formbox+offers+a+variety+of+spam+filtering+options+you+can+add+to+your+forms+to+ensure+only+legitimate+submissions+are+sent+to+your+inbox.\u0026amp;theme=0c0804f49f73acfe1bc390bb\u0026amp;signature=61a67b318e675fe5f7f4133c86f7eb9d43b5f6511d34874e9f4c7d79994dbcd4\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Spam protection - Formbox Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://formbox.mintlify.app/_mintlify/api/og/v2?division=Features\u0026amp;title=Spam+protection\u0026amp;description=Formbox+offers+a+variety+of+spam+filtering+options+you+can+add+to+your+forms+to+ensure+only+legitimate+submissions+are+sent+to+your+inbox.\u0026amp;theme=0c0804f49f73acfe1bc390bb\u0026amp;signature=61a67b318e675fe5f7f4133c86f7eb9d43b5f6511d34874e9f4c7d79994dbcd4\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/formbox/kpzizlifeLl-ZlNt/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Formbox Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#111827\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.formbox.app/features/spam-protection\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/features/spam-protection.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.formbox.app/#organization\",\"name\":\"Formbox Docs\",\"url\":\"https://docs.formbox.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/formbox/W6NOv_eKuQUBviH6/logo/light.svg?fit=max\u0026auto=format\u0026n=W6NOv_eKuQUBviH6\u0026q=85\u0026s=b111f8634744c7ed87d8daba5ca3e084\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.formbox.app#website\",\"name\":\"Formbox Docs\",\"url\":\"https://docs.formbox.app\",\"publisher\":{\"@id\":\"https://docs.formbox.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.formbox.app/features/spam-protection#webpage\",\"url\":\"https://docs.formbox.app/features/spam-protection\",\"name\":\"Spam protection\",\"description\":\"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.\",\"dateModified\":\"2026-04-01T20:29:19.000Z\",\"isPartOf\":{\"@id\":\"https://docs.formbox.app#website\"},\"breadcrumb\":{\"@id\":\"https://docs.formbox.app/features/spam-protection#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.formbox.app/features/spam-protection#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Features\",\"item\":\"https://docs.formbox.app/features/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Spam protection\",\"item\":\"https://docs.formbox.app/features/spam-protection\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.formbox.app/features/spam-protection#article\",\"headline\":\"Spam protection\",\"name\":\"Spam protection\",\"description\":\"Formbox offers a variety of spam filtering options you can add to your forms to ensure only legitimate submissions are sent to your inbox.\",\"url\":\"https://docs.formbox.app/features/spam-protection\",\"mainEntityOfPage\":{\"@id\":\"https://docs.formbox.app/features/spam-protection#webpage\"},\"dateModified\":\"2026-04-01T20:29:19.000Z\",\"publisher\":{\"@id\":\"https://docs.formbox.app/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.formbox.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Formbox Docs\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Formbox Docs","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get Started","pages":[{"title":"Introduction","href":"/introduction"}]},{"group":"Features","pages":[{"title":"Features overview","href":"/features/overview"},{"title":"Organizations","href":"/features/organizations"},{"title":"Self email notifications","href":"/features/self-email-notifications"},{"title":"Respondent email notifications","href":"/features/respondent-email-notifications"},{"title":"Custom domains","href":"/features/custom-domains"},{"title":"SMTP custom email domain","href":"/features/smtp-custom-email-domain"},{"title":"Custom redirects","href":"/features/custom-redirects"},{"title":"Customize thank you page","href":"/features/customize-thank-you-page"},{"title":"Password protection","description":"Require visitors to enter a password before they can view or submit a hosted form.","href":"/features/password-protection"},{"title":"Spam protection","href":"/features/spam-protection"},{"title":"IP address blacklist","description":"Setup your forms to block form submissions from a specific IP address.","href":"/features/ip-blacklist"},{"title":"Domain restrictions","href":"/features/domain-restrictions"},{"title":"Country restrictions","href":"/features/country-restrictions"},{"title":"Exporting submissions","href":"/features/exporting-submissions"},{"title":"AJAX support","href":"/features/ajax-support"},{"title":"File Uploads","href":"/features/file-uploads"}]},{"group":"Guides","pages":[{"title":"Embed","href":"/guides/embed"},{"title":"React","href":"/guides/react"},{"title":"Vue","href":"/guides/vue"},{"title":"Next","href":"/guides/next"},{"title":"Nuxt","href":"/guides/nuxt"},{"title":"Svelte","href":"/guides/svelte"},{"title":"Remix","href":"/guides/remix"},{"title":"Astro","href":"/guides/astro"},{"title":"Angular","href":"/guides/angular"},{"title":"Webflow","href":"/guides/webflow"}]},{"group":"Integrations","pages":[{"title":"Integrations overview","href":"/integrations/overview"},{"title":"Google Sheets","href":"/integrations/google-sheets"},{"title":"Airtable","href":"/integrations/airtable"},{"title":"Webhooks","href":"/integrations/webhooks"},{"title":"Mailchimp","href":"/integrations/mailchimp"},{"title":"Slack","href":"/integrations/slack"},{"title":"Notion","href":"/integrations/notion"},{"title":"Zapier","href":"/integrations/zapier"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]}]},"title":"Spam protection - Formbox Docs","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["07c022d89b","a74be98ba7"],"chunks":["Frame-COGkNuA6.js","DynamicMarkdown-85clUA0i.js","zoom-image-lightbox-BZxD9MAj.js","lightbox-handle-r17bVUz3.js"]}