# How to check if reCAPTCHA works, in OpenResty bouncer?

**URL:** https://discourse.crowdsec.net/t/how-to-check-if-recaptcha-works-in-openresty-bouncer/1199
**Category:** crowdsec
**Created:** [March 12, 2023, 3:16pm UTC](https://discourse.crowdsec.net/t/how-to-check-if-recaptcha-works-in-openresty-bouncer/1199 "2023-03-12T15:16:59Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![sinfrecu](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/sinfrecu/32/559_2.png) [@sinfrecu](https://discourse.crowdsec.net/u/sinfrecu)
#### Post date: [March 12, 2023, 3:16pm UTC](https://discourse.crowdsec.net/t/how-to-check-if-recaptcha-works-in-openresty-bouncer/1199/1 "2023-03-12T15:16:59Z")

</div>

Hello, I have a question, I am implementing OpenRestry on Ubuntu 22.04 with CrowdSec and reCAPTCHA

According to the official tutorial, I came to put the manual rule to be able to force the reCAPTCHA test on my IP with

```auto
sudo cscli decisions add -i 172.XX.XX.244 -t captcha

```

I see the captcha correctly,but regardless of whether or not I complete the captcha, when I press summit, it lets me access the site, without having completed the captcha.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/crowdsec/original/1X/edb620ffca64a0f0cad4e6e3b75fb2fa098c6a1b.png)

⭐ I hope it is the right place to ask, if not a thousand apologies

---

<div class="post-metadata">

### Author: ![sinfrecu](https://dub1.discourse-cdn.com/flex013/user_avatar/discourse.crowdsec.net/sinfrecu/32/559_2.png) [@sinfrecu](https://discourse.crowdsec.net/u/sinfrecu)
#### Post date: [March 13, 2023, 10:54pm UTC](https://discourse.crowdsec.net/t/how-to-check-if-recaptcha-works-in-openresty-bouncer/1199/2 "2023-03-13T22:54:38Z")

</div>

I close the query and leave what the problem was:

**In the error.log of OpenRestry:**

` [lua] crowdsec.lua:444: Allow(): Error while validating captcha: no resolver defined to resolve "www.google.com", client:`

I didn’t have “resolve” set correctly in the whole server, the tutorial said that I had to add it but I didn’t do it at a general level

> To make HTTP request in the bouncer, we need to set a `resolver` in the configuration. We choose `local=on` directive since we query `google.com` for the captcha verification, but you can replace it with a valid one.
