---
name: azion-set-a-firewall-on-a-domain
description: >-
  Set an existing Firewall on a domain from Azion Console, so that it inspects the requests to the hostnames of the domain.
---

# Set a Firewall on a domain

> Platform versions: this page applies to API v3.x only, not to API v6.x and API v4.x.
> Equivalent page for API v4.x: [Set a Firewall on a Workload](/en/documentation/guides/application-security/firewall-and-waf/firewall-protect-your-domain.md)
> Release stage: Deprecated.

You can set an existing [Firewall](/en/documentation/platform/firewall/) on a [domain](/en/documentation/platform/domains/) from Azion Console, so that it inspects the requests to that domain. A domain sets the Firewall in its own settings.

---

## Prerequisites

- A domain that serves an application. For more information, refer to [Domains](/en/documentation/platform/domains/).
- A Firewall with the rules the domain needs. To create a Firewall, refer to [Firewall quickstart](/en/documentation/platform/firewall/quickstart/). To add rules to it, refer to [Create a Firewall rule](/en/documentation/guides/application-security/firewall-and-waf/work-with-rules-engine/).
- Access to Azion Console. For more information, refer to [Access Azion Console](/en/documentation/guides/platform/account-and-billing/how-to-access-azion-console/).

---

## Set the Firewall on the domain

To set a Firewall on a domain in Azion Console:

1. **Open the domain**

   Access [Azion Console](https://console.azion.com/) > **Domains** > **the domain whose requests the Firewall inspects**.

2. **Choose the Firewall**

   In the **Settings** section, open the **Firewall** selector and choose the Firewall.

3. **Save the domain**

   Select **Save**.

The Firewall then inspects the requests of that domain.

---

## Confirm that the Firewall applies its rules

The check needs a rule of the Firewall whose answer you can recognize. This section uses a rule that denies every path that starts with `/deny-test`, such as the one in [Create a Firewall rule](/en/documentation/guides/application-security/firewall-and-waf/work-with-rules-engine/).

The rules of the Firewall can take several minutes to reach the domain after you set the Firewall, and no duration is guaranteed. Until then, requests reach your application as before, and while the change propagates, answers to the same request alternate between the old result and the new one. Repeat the request until it returns `403`. For more information, refer to [How Firewall works](/en/documentation/platform/firewall/how-it-works/#propagation).

Send a request to the denied path. Replace `<your-domain>` with a hostname the domain serves, such as its Azion address of the form `xxxxxxxxxx.map.azionedge.net`:

```bash
curl -i https://<your-domain>/deny-test
```

The Firewall refuses the request with `403`. This excerpt of the response leaves out its long `content-security-policy` header:

```text
HTTP/2 403
server: nginx
date: Thu, 01 Jan 2026 12:00:00 GMT
content-type: text/html; charset=utf-8
x-content-type-options: nosniff
x-azion-request-id: 0123456789abcdef0123456789abcdef
x-azion-edge-location: <edge-location>
alt-svc: h3=":443"; ma=86400
```

The body is Azion's default error page, headed Forbidden, and it shows your IP address and the request ID. No response header identifies the Firewall or the rule behind the refusal. Paths that no rule matches still reach your application.

If `/deny-test` keeps reaching your application after the change has had several minutes to propagate, refer to [Troubleshoot Firewall](/en/documentation/platform/firewall/troubleshooting/).

---

## Next steps

- [Create a Firewall rule](/en/documentation/guides/application-security/firewall-and-waf/work-with-rules-engine.md): Add a rule that denies one path, or a rule that requires a client certificate.
- [Add a custom domain to an application](/en/documentation/guides/platform/migration/configure-a-domain/v3.md): List your own hostnames on the domain the Firewall protects.
- [Troubleshoot Firewall](/en/documentation/platform/firewall/troubleshooting.md): Find why a Firewall does not act on the requests it should inspect.
