> For the complete documentation index, see [llms.txt](https://ztrust.gitbook.io/ztrust-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ztrust.gitbook.io/ztrust-documentation/user-manual-ztrust-v4.1/4.-admin-manual/4.13-set-up-multi-factor-authentication/4.13.2-recaptcha-login-flow.md).

# 4.13.2 ReCAPTCHA login flow

*"reCAPTCHAs are used to distinguish humans from automated bots, protecting websites from malicious activities like spam, fake registrations, data scraping, and brute-force attacks by presenting challenges that are difficult for computers but easy for humans to solve. They enhance online security, prevent abuse of services, ensure fair use of resources, and safeguard sensitive processes like online purchases and voting."*

To set up reCAPTCHA login flow, follow the below steps -

1. Click on **Authentication** in the sidebar.<br>

   <figure><img src="/files/ZAdP08RjZdoweUvZ1IkA" alt=""><figcaption><p>Fig. 4.12.2.a: Navingating to Authentication section</p></figcaption></figure>

2. Click on the **kebab menu (three dots)** on the right side of the browser flow. Select **Duplicate**. A popup will appear.<br>

   <figure><img src="/files/OWRsTZtLlnMOdtnm4rwU" alt=""><figcaption><p>Fig 4.12.2.b: Duplicating the existing browser flow</p></figcaption></figure>

3. Enter a **Name**, "ReCAPTCHA login" and give a description to it.\
   &#x20;

   <figure><img src="/files/ygStjeE2yqFndBdSYsit" alt=""><figcaption><p>Fig 4.12.2.c: Giving a name to the new browser flow for reCAPTCHA login</p></figcaption></figure>

4. Click **Duplicate**. You will be redirected to the flow configuration.<br>

   <figure><img src="/files/2Yu8iE854yinbQwGRYA9" alt=""><figcaption><p>Fig 4.12.2.d: Duplicated browser flow configuration page for reCAPTCHA login</p></figcaption></figure>

5. Delete everything under **ReCAPTCHA login forms**. <br>

   <figure><img src="/files/UMCor4B1k3DiVYo8b0Zd" alt=""><figcaption><p>Fig 4.12.2.e: reCAPTCHA browser flow configuration page after deleting executions</p></figcaption></figure>

6. Click on the **plus** icon on the right side of the **ReCaptcha login forms**. Select **Add Execution**. A popup will appear to select an execution.<br>

   <figure><img src="/files/E1r5bF4zIXoGKfbjBjN9" alt=""><figcaption><p>Fig 4.12.2.f: Proceeding to add a new execution to reCAPTCHA login flow</p></figcaption></figure>

7. Search for **Login Recaptcha Form**, select it and click **Add**.<br>

   <figure><img src="/files/jtmWeiubuPctSZvdqZAv" alt=""><figcaption><p>Fig 4.12.2.g: Select 'Login ReCaptcha Form' execution to add</p></figcaption></figure>

8. Click on the **settings menu (gear icon)** on the right side of the **Login Recaptcha form**. A popup will appear to configure the **reCAPTCHA**.<br>

   <figure><img src="/files/wDollfHjM2x9PIiG2WbT" alt=""><figcaption><p>Fig 4.12.2.h: Proceeding to configure reCAPTCHA for login</p></figcaption></figure>

9. Give it an alias. Enter your reCAPTCHA Site Key and reCAPTCHA Secret.<br>

   <figure><img src="/files/Q4zyZdWhmUtWHXPo30xa" alt=""><figcaption><p>Fig 4.12.2.i: Configuring reCAPTCHA for login</p></figcaption></figure>

   <table><thead><tr><th width="154">Field Name</th><th width="180.727294921875">Mandatory (Yes/No)</th><th width="132.727294921875">Field Type</th><th>Description</th></tr></thead><tbody><tr><td>Recaptcha Site Key</td><td>Yes</td><td>Text</td><td>Enter the reCAPTCHA site key as generated from Google Cloud Console</td></tr><tr><td>Recaptcha Secret</td><td>Yes</td><td>Text</td><td>Enter the reCAPTCHA secret key as generated from Google Cloud Console</td></tr></tbody></table>

10. Click **Save**.

11. Set the **Requirement** for **Login Recaptcha form** as **Required**.<br>

    <figure><img src="/files/3mjXfsjF80UAj2fypAgQ" alt=""><figcaption><p>Fig 4.12.2.j: Changing the 'Requirement' of reCAPTCHA for login</p></figcaption></figure>

12. Click on the **Actions**, on the top right of the page, and then **Bind flow**. A popup will appear.<br>

    <figure><img src="/files/ZWmDUvFBtdGuptU9dyYd" alt=""><figcaption><p>Fig 4.12.2.k: Proceeding to bind the login reCAPTCHA flow</p></figcaption></figure>

13. Select the **binding type** as **browser flow** and click **Save**.<br>

    <figure><img src="/files/otwr12XwwkXm8asyK6h4" alt=""><figcaption><p>Fig 4.12.2.l: Selecting a flow to bind reCAPTCHA login to</p></figcaption></figure>

The ReCAPTCHA will now be enabled in the login page.

<br>
