> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NetServer GoogleRecaptcha element

> NetServer configuration values for the Google reCAPTCHA validation service.

Configuration values for the Google reCAPTCHA validation service.

| Name            | Description                                        |
| --------------- | -------------------------------------------------- |
| SecretKey       | The secret key from the Google reCAPTCHA instance. |
| SiteKey         | The site key from the Google reCAPTCHA instance.   |
| VerificationUrl | URL for Google reCAPTCHA validation service.       |

See the [NetServer Core reference][1] for details about handling this programmatically.

## Set VerificationUrl

For reCAPTCHA to work in an Onsite installation, the NetServer needs to have access to the Google verification URL. This is used to verify the reCAPTCHA attempt.

Add this line under the `<sectionGroup name="SuperOffice">`:

```xml theme={null}
<section name="GoogleRecaptcha" type="System.Configuration.NameValueSectionHandler, System, Version=1.0.5000.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
```

## Set keys

As an alternative to setting keys manually in each reCAPTCHA form element, add these lines under the section `<SuperOffice>`:

```xml theme={null}
<GoogleRecaptcha>
  <add key="VerificationUrl" value="[https://www.google.com/recaptcha/api/siteverify](https://www.google.com/recaptcha/api/siteverify)" />
  <add key="SiteKey" value="<sitekey>" />
  <add key="SecretKey" value="<secretkey>" />
</GoogleRecaptcha>
```

These keys can be overwritten for a specific form by entering the keys when [adding the reCAPTCHA element to the form][2].

[1]: https://github.com/SuperOfficeDocs/superoffice-docs/blob/main/docs/en/api/reference/netserver/core/SuperOffice.Configuration.ConfigFile.GoogleRecaptcha.yml

[2]: ../../marketing/forms/learn/recaptcha


## Related topics

- [NetServer Client element (SuperOffice only)](/en/onsite/web-config/client.md)
- [NetServer Cloud element (SuperOffice only)](/en/onsite/web-config/cloud.md)
- [NetServer Reporter element](/en/onsite/web-config/reporter.md)
- [NetServer Services element](/en/onsite/web-config/services.md)
- [NetServer Scripting element](/en/onsite/web-config/scripting.md)
- [NetServer Infrastructure element](/en/onsite/web-config/infrastructure.md)
