# How to test reCaptcha

**URL:** <https://community.auth0.com/t/how-to-test-recaptcha/57818>\
**Category:** Get Help\
**Tags:** signup, login, auth0\
**Created:** [February 13, 2021, 8:59am UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818 "2021-02-13T08:59:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nussi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nussi/32/12776_2.png) [@nussi](https://community.auth0.com/u/nussi)\
**Post date:** [February 13, 2021, 8:59am UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/1 "2021-02-13T08:59:15Z")

</div>

Hi!  
I added a captcha to my custom login page (classic) as described here: [Add Bot Detection to Custom Login Pages](https://auth0.com/docs/attack-protection/bot-detection/bot-detection-custom-login-pages). But actually I could not find a way to test if everything is working fine. The challenge response is always: {required: false}… I tried a VPN, Private-Windows, User-Agent, …

Is there a way to force the captcha-challenge? I just want to test if everything looks good and also want to test if the error-cases are handled correctly by myself.

Thank you and best wishes!

---

<div class="post-metadata">

**Author:** ![Roslyn](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/roslyn/32/13315_2.png) [@Roslyn](https://community.auth0.com/u/Roslyn)\
**Post date:** [February 13, 2021, 10:42am UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/2 "2021-02-13T10:42:41Z")

</div>

> [@nussi](#):
>
> Hi!  
> I added a captcha to my custom login page (classic) as described here: [Add Bot Detection to Custom Login Pages](https://auth0.com/docs/attack-protection/bot-detection/bot-detection-custom-login-pages?_ga=2.113336135.1533195832.1613212167-52746598.1610097032). But actually I could not find a way to test if everything is working fine. The challenge response is always: {required: false}… I tried a VPN, Private-Windows, User-Agent, …
> 
> Is there a way to force the captcha-challenge? I just want to test if everything looks good and also want to test if the error-cases are handled correctly by myself [mycardstatement.com](https://www.mycardstatement.review/)
> 
> Thank you and best wishes!

You can test invisible recaptcha by using Chrome emulator. You will need to add a new custom device (BOT) in developer tools, and set User Agent String to Googlebot/2.1 on Desktop . Then use the new BOT device when testing on your site to trigger the recaptcha authentication.

---

<div class="post-metadata">

**Author:** ![nussi](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nussi/32/12776_2.png) [@nussi](https://community.auth0.com/u/nussi)\
**Post date:** [February 13, 2021, 1:26pm UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/3 "2021-02-13T13:26:41Z")

</div>

Hi Roslyn! Thank you for your help!  
I tried your approach, but the response is still {required: false}…

Setup:

- I’m using the auth0 branding section in the dashboard for the custom login page
- I added the code from the example in the auth0 docs ([Add Bot Detection to Custom Login Pages](https://auth0.com/docs/attack-protection/bot-detection/bot-detection-custom-login-pages))
- I have “auth0-js”: “9.14.0”, installed
- I created an reCaptcha invisible via Google-reCaptcha-Account and enabled Bot Detection via the Auth0-Dashboard, also pasted the keys

Test:

- Open LandingPage
- Open Chrome Inspector (with BOT, Googlebot/2.1 on Desktop)
- Click login, which redirects me to the login-page (custom domain)
- Response from challenge {required: false} → not captcha is getting displayed.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [February 18, 2021, 2:09pm UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/6 "2021-02-18T14:09:35Z")

</div>

Previous message deleted due to SPAM reasons.

---

<div class="post-metadata">

**Author:** ![mateusz.robak90](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mateusz.robak90/32/12776_2.png) [@mateusz.robak90](https://community.auth0.com/u/mateusz.robak90)\
**Post date:** [August 20, 2021, 12:59pm UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/7 "2021-08-20T12:59:49Z")

</div>

Hello, I would kindly ask you to provide more information about how to call captcha.

Currently in my project I use Simple Captcha When Risky, and I’ve already read Roslyn comment but It didnt help. I was also trying to change geolocation, etc. I see this topic has not been resolved for so long and I decided to put comment here

Are there any chances that you could provide more ideas?

---

<div class="post-metadata">

**Author:** ![mateusz.robak90](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/mateusz.robak90/32/12776_2.png) [@mateusz.robak90](https://community.auth0.com/u/mateusz.robak90)\
**Post date:** [September 9, 2021, 6:33am UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/8 "2021-09-09T06:33:49Z")

</div>

I just have to mention that I found the solution. There’s need to change user agent, however not using chrometools but chome extension called Custom User Agent String

![image](https://global.discourse-cdn.com/auth0/original/3X/0/c/0c6ceb140dabc82a82443593ec45979eb2e577da.png)

and just add the Bad User Agent inside

 ![image](https://global.discourse-cdn.com/auth0/original/3X/1/e/1e288200ec41e895a7df1575d60104e1c11b8e0a.png)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 24, 2021, 10:18am UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/9 "2021-09-24T10:18:40Z")

</div>

Thanks for sharing that with the rest of community!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 30, 2021, 9:43am UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/10 "2021-09-30T09:43:04Z")

</div>



---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [January 6, 2023, 9:31pm UTC](https://community.auth0.com/t/how-to-test-recaptcha/57818/11 "2023-01-06T21:31:17Z")

</div>

[This](https://community.auth0.com/t/how-to-manually-trigger-captcha-for-testing/89791) FAQ explains how to manually trigger Captcha for testing, so link it to this topic.
