# 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.

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCAptMoOvHhdIgGLK0e%2F-MCAqpNa6dElZlfh2hHg%2Fimage.png?alt=media\&token=d66afc22-97b6-421c-8de8-2d02e73f2593)

Now setup your captcha settings

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCAptMoOvHhdIgGLK0e%2F-MCArEpVu5l9fPNWZ5wP%2Fimage.png?alt=media\&token=f7932622-4171-4310-ba79-a9be1662c5a9)

Copy both the site key and secret key

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCAptMoOvHhdIgGLK0e%2F-MCArRunNBvdToRAIQle%2Fimage.png?alt=media\&token=4396ceb1-d993-4978-a960-9bf87456413f)

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

![](https://1025048312-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M8fLhS0bmfBRyq0HdUm%2F-MCAptMoOvHhdIgGLK0e%2F-MCArn8YeJxWw8vTzhaS%2Fimage.png?alt=media\&token=6eea4a96-704f-40f1-9f68-8869e25ff439)

{% 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 %}
