> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/installation-setup/system-settings/google/captcha.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
