# Protect your domain

import Tabs from '~/components/tabs/Tabs'

import Code from '~/components/Code/Code.astro'
import Apiv4Rollout from '~/includes/snippets/apiv4Rollout/en/snippet.mdx'

<Apiv4Rollout />

Once you create an firewall with Azion, you can modify a few configurations. 

In this guide, you'll learn how to select an firewall to protect a particular domain.

On the Console, you must now configure your domain so your firewall protects it.

There are separate instructions for API v3 using [legacy Domains](/en/documentation/products/build/applications/domains/) settings and API v4 using the new [Workloads](/en/documentation/products/secure/workloads) product.

:::tip
If you're not sure which steps apply to your account, see [the Verify Your Account Migration guide](/en/documentation/products/guides/verify-account-migration/) to determine if your account has already been migrated.

:::tip
In this guide, there are separate instructions for API v3 and API v4. If you're not sure which steps apply to your account, see [the Verify Your Account Migration guide](/en/documentation/products/guides/verify-account-migration/) to determine if your account has already been migrated.
:::

<Tabs client:visible>
    <Fragment slot="tab.consoleworkloads">Console - Connectors</Fragment>
    <Fragment slot="tab.consoledomais">Console - Origins</Fragment>


<Fragment slot="panel.consoleworkloads">

1. On the **Products menu**, select **Workloads**.
2. Click on the Workload you want to protect with your firewall.
3. In the **Deployment Settings** section, click the `Firewall` selector and choose the firewall.
4. Click the **Save** button.

</Fragment>

<Fragment slot="panel.consoledomains">

1. On the **Products menu**, select **Domains**.
2. Click on the domain you want to protect with your firewall.
3. In the **Settings** section, click the `Firewall` selector and choose the firewall.
4. Click the **Save** button.

Done. Now the selected firewall will protect the domain you indicated.

</Fragment>
</Tabs>