# Legacy CAPTCHA for Country

## Step 1: Name your Rule

When naming your firewall it is best practice to use a name that encapsulates the rule.&#x20;

Example:

<div align="left"><img src="https://374896401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV6MMrAUfaxxHHZ312kIp%2Fuploads%2FI7biQhBfDFBPWI3sHa01%2Fname%20legacy%20captcha%20ip.PNG?alt=media&#x26;token=21588161-a0b1-47a5-890d-12b8c38105c5" alt=""></div>

## Step 2: Set Matching Rule

The fields below reflect a rule that applies to the United States.

Example:

![](https://374896401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV6MMrAUfaxxHHZ312kIp%2Fuploads%2FPPP7LAnHy6cjkvmuN9L5%2Fedit%20rule%20country.PNG?alt=media\&token=399bd331-fc71-4dea-b7b2-155d50237cd7)

{% hint style="info" %}
Expression: (ip.geoip.country eq "US")
{% endhint %}

## Step 3: Select Action

This block action will be executed with every request matching the fields above.

Example:

<div align="left"><img src="https://374896401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV6MMrAUfaxxHHZ312kIp%2Fuploads%2FSsqVLrjbrsh3S9jlF0Cu%2FLegacy%20Captcha%20action.PNG?alt=media&#x26;token=7719fa51-3b62-4f4e-950b-ce350bed5940" alt=""></div>

## Step 4: Deploy Rule

Select Deploy firewall rule to have all your changes reflect instantly. &#x20;

<div align="left"><img src="https://374896401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV6MMrAUfaxxHHZ312kIp%2Fuploads%2FEOszKLHYR9m8sglzAYa6%2FDeploy%20Rule.PNG?alt=media&#x26;token=bbddad56-f48d-42d6-9e9c-74560a5f9831" alt=""></div>

## Step 5: Check Rule Deployment

Client View: Visit host from a device that matches the rules.\
Example:

![](https://374896401-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FV6MMrAUfaxxHHZ312kIp%2Fuploads%2F52ZjLYowrLYswIekpEhF%2Fmanaged%20challenge%20captcha.PNG?alt=media\&token=dc052308-5ee5-4b48-9016-2e74c5de2ab0)

{% hint style="info" %}
**Good to know:** Splitting your product into fundamental concepts, objects, or areas can be a great way to let readers deep dive into the concepts that matter most to them.
{% endhint %}
