This document provides a high-level overview of setting up Google Cloud Fraud Defense
on websites.

> [!NOTE]
> **Note:** If you use a content management system (CMS) or third-party plugin for WordPress or Shopify, you don't need to write custom frontend or backend code. Instead, see [Reconcile Admin Console and Google Cloud console
> terminology](https://docs.cloud.google.com/recaptcha/docs/reconcile-legacy-terminology#integrate-cms) to check your key version (`v2` or `v3`) and find your site key and secret key.

Setting up Fraud Defense on a website involves the following steps:

1. Create a reCAPTCHA key for your website (also known as key).

   The key is required to collect information about the user actions and send it to Fraud Defense.
   1. [Choose the key type that is best for your use case](https://docs.cloud.google.com/recaptcha/docs/choose-key-type.md.txt).
   2. [Create a key for your website](https://docs.cloud.google.com/recaptcha/docs/create-key-website.md.txt).
2. Integrate with your website frontend:

   Install the key that you created on your web pages by using
   the reCAPTCHA JavaScript API.
   - [Install score-based keys](https://docs.cloud.google.com/recaptcha/docs/instrument-web-pages.md.txt).
   - [Install checkbox keys](https://docs.cloud.google.com/recaptcha/docs/instrument-web-pages-with-checkbox.md.txt).
   - [Install policy-based challenge keys](https://docs.cloud.google.com/recaptcha/docs/instrument-web-pages-policy.md.txt).
3. Integrate with your backend:

   1. To verify the token sent by reCAPTCHA and assess the risk, [create assessments](https://docs.cloud.google.com/recaptcha/docs/create-assessment-website.md.txt) from your backend server.
   2. [Interpret the assessment scores and the associated risk](https://docs.cloud.google.com/recaptcha/docs/interpret-assessment-website.md.txt), and define how to handle users, for example, allow the user to log in only when the score is high and the risk is low.
4. Optional: Configure an IP address allowlist

   [Add trusted IP addresses to an allowlist](https://docs.cloud.google.com/recaptcha/docs/allowlist-ip.md.txt) to exclude them from
   Fraud Defense enforcement.

## What's next

- [Choose the reCAPTCHA key type that is best for your use case](https://docs.cloud.google.com/recaptcha/docs/choose-key-type.md.txt).