# Captcha Setup

To setup Google Captcha you may first register your recapcha secret and site keys.

To create your keys go to the Google reCaptcha admin section.\
<https://www.google.com/recaptcha/admin>

Click on the upper right the create new button.

![](/files/-MCAqpNa6dElZlfh2hHg)

Now setup your captcha settings

![](/files/-MCArEpVu5l9fPNWZ5wP)

Copy both the site key and secret key

![](/files/-MCArRunNBvdToRAIQle)

Paste the keys in your ngSurvey Google API settings and click on the **test** button to check that everything is ok.

![](/files/-MCArn8YeJxWw8vTzhaS)

{% hint style="info" %}
Captcha will only run properly on a server that has access to the internet. If your server is behind a firewall you will need to make sure that the server can at least contact the Google verification service <https://www.google.com/recaptcha/api/siteverify> and set the appropriate [firewall rules](https://code.google.com/archive/p/recaptcha/wikis/FirewallsAndRecaptcha.wiki).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/installation-setup/system-settings/google/captcha.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
