Skip to content

Commit abc03fc

Browse files
committed
tweaks
1 parent 307d2f1 commit abc03fc

4 files changed

Lines changed: 13 additions & 16 deletions

File tree

articles/web-application-firewall/ag/waf-ag-configure-custom-response-code.md renamed to articles/web-application-firewall/ag/configure-custom-response-code.md

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11
---
2-
title: Configure custom responses for Azure Web Application Firewall with Application Gateway
2+
title: Configure custom responses for Azure Application Gateway WAF
33
description: Learn how to configure a custom response code and body (message) when Azure Web Application Firewall blocks a request.
44
author: YaakobiEden
55
ms.author: edenyaakobi
66
ms.service: azure-web-application-firewall
77
ms.topic: how-to
8-
ms.date: 03/11/2025
8+
ms.date: 08/24/2025
99
---
1010

11-
12-
# Configure custom response code and body for Azure Application Gateway WAF
13-
11+
# Configure custom response code and body for Application Gateway WAF
1412

1513
By default, when Web Application Firewall (WAF) on Application Gateway blocks a request due to a matched rule, it returns a 403 status code with the message "The request is blocked." You can customize the response by configuring a custom status code and message to better suit your use case.
1614

17-
This article shows you how to configure a custom response page when Azure Application Gateway's Web Application Firewall (WAF) blocks a request using the Azure portal. You can also configure custom responses using the [Azure CLI](/cli/azure/network/application-gateway/waf-policy/policy-setting) and PowerShell.
15+
This article shows you how to configure a custom response page when Azure Application Gateway's Web Application Firewall (WAF) blocks a request using the Azure portal. You can also configure custom responses using the [Azure CLI](/cli/azure/network/application-gateway/waf-policy/policy-setting) or PowerShell.
1816

1917
## Configure a custom response status code and message
2018

@@ -26,17 +24,16 @@ To customize the response status code and body, take the following steps:
2624

2725
1. Enter the custom response status code and response body in **Block response status code** and **Block response body** respectively.
2826

27+
:::image type="content" source="../media/configure-custom-response-code/application-gateway-custom-response-settings.png" alt-text="Screenshot that shows Azure Web Application Firewall policy settings." lightbox="../media/configure-custom-response-code/application-gateway-custom-response-settings.png":::
2928

29+
1. Select **Save**.
3030

31-
:::image type="content" source="../media/application-gateway-waf-configure-custom-response-code-and-body/ag-waf-custom-response-settings.png" alt-text="Screenshot that shows Azure Web Application Firewall Policy settings." lightbox="../media/application-gateway-waf-configure-custom-response-code-and-body/ag-waf-custom-response-settings.png":::
32-
33-
4. Select **Save**.
34-
35-
In this example, we changed the default 403 response code to 429 and set a brief message stating, "The request has been blocked".
36-
37-
:::image type="content" source="../media/application-gateway-waf-configure-custom-response-code-and-body/ag-waf-custom-response.png" alt-text="Screenshot that shows a custom response example.":::
31+
In this example, we changed the default 403 response code to 429 and set a brief message stating, *The request has been blocked*.
3832

33+
:::image type="content" source="../media/configure-custom-response-code/application-gateway-custom-response.png" alt-text="Screenshot that shows a custom response example.":::
3934

40-
## Next steps
35+
## Related content
4136

42-
Learn more about [Azure Web Application Firewall on Application Gateway](../ag/ag-overview.md).
37+
- [Azure Web Application Firewall policy](policy-overview.md)
38+
- [Create Web Application Firewall policies for Application Gateway](create-waf-policy-ag.md)
39+
- [Azure Web Application Firewall on Application Gateway](ag-overview.md)

articles/web-application-firewall/media/application-gateway-waf-configure-custom-response-code-and-body/ag-waf-custom-response-settings.png renamed to articles/web-application-firewall/media/configure-custom-response-code/application-gateway-custom-response-settings.png

File renamed without changes.

articles/web-application-firewall/media/application-gateway-waf-configure-custom-response-code-and-body/ag-waf-custom-response.png renamed to articles/web-application-firewall/media/configure-custom-response-code/application-gateway-waf-custom-response.png

File renamed without changes.

articles/web-application-firewall/toc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ items:
109109
- name: Request size limits
110110
href: ./ag/application-gateway-waf-request-size-limits.md
111111
- name: Configure custom response code and body
112-
href: ./ag/waf-ag-configure-custom-response-code.md
112+
href: ./ag/configure-custom-response-code.md
113113
- name: WAF engine
114114
href: ./ag/waf-engine.md
115115
- name: Front Door

0 commit comments

Comments
 (0)