Skip to content

Commit d50f2d9

Browse files
committed
update screenshots and remove pivots
1 parent 16bfbc7 commit d50f2d9

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

articles/web-application-firewall/afds/waf-front-door-configure-custom-response-code.md

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
---
2-
title: Configure custom responses for Web Application Firewall with Azure Front Door
2+
title: Configure custom responses for Azure Front Door WAF policy
33
description: Learn how to configure a custom response code and message when Azure Web Application Firewall blocks a request.
44
author: halkazwini
55
ms.author: halkazwini
66
ms.service: azure-web-application-firewall
77
ms.topic: how-to
8-
ms.date: 04/04/2025
8+
ms.date: 05/05/2025
99
ms.custom: devx-track-azurepowershell
10-
zone_pivot_groups: front-door-tiers
1110
---
1211

1312
# Configure a custom response for Azure Web Application Firewall
@@ -22,7 +21,7 @@ By default, when Azure Web Application Firewall blocks a request because of a ma
2221

2322
You can configure a custom response status code and body under **Policy settings** on the Azure Web Application Firewall portal.
2423

25-
:::image type="content" source="../media/waf-front-door-configure-custom-response-code/custom-response-settings.png" alt-text="Screenshot that shows Azure Web Application Firewall Policy settings.":::
24+
:::image type="content" source="../media/waf-front-door-configure-custom-response-code/custom-response-settings.png" alt-text="Screenshot that shows Azure Web Application Firewall Policy settings." lightbox="../media/waf-front-door-configure-custom-response-code/custom-response-settings.png":::
2625

2726
In the preceding example, we kept the response code as 403 and configured a short "Please contact us" message, as shown in the following image:
2827

@@ -106,17 +105,7 @@ Update-AzFrontDoorFireWallPolicy `
106105
> [!NOTE]
107106
> If you leave the block response body blank, the WAF returns a *403 Forbidden* response for normal WAF blocks and a *429 Too many requests* for rate limit blocks.
108107
109-
::: zone pivot="front-door-standard-premium"
110-
111-
"{{azure-ref}}" inserts the unique reference string in the response body. The value matches the TrackingReference field in the `FrontDoorAccessLog` and `FrontDoorWebApplicationFirewallLog` logs.
112-
113-
::: zone-end
114-
115-
::: zone pivot="front-door-classic"
116-
117-
"{{azure-ref}}" inserts the unique reference string in the response body. The value matches the TrackingReference field in the `FrontdoorAccessLog` and `FrontdoorWebApplicationFirewallLog` logs.
118-
119-
::: zone-end
108+
`{{azure-ref}}` inserts the unique reference string in the response body. The value matches the TrackingReference field in the `FrontDoorAccessLog` and `FrontDoorWebApplicationFirewallLog` logs.
120109

121110
## Next step
122111

-18.9 KB
Loading
-8.06 KB
Loading

0 commit comments

Comments
 (0)