Skip to content

Commit cdcf216

Browse files
committed
place response screenshot after the tabs
1 parent 7d96e21 commit cdcf216

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,10 @@ To customize the response status code and body, follow these steps:
5757

5858
1. Enter the custom response status code and response body in **Block response status code** and **Block response body** respectively.
5959

60-
:::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":::
60+
:::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":::
6161

6262
1. Select **Save**.
6363

64-
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:
65-
66-
:::image type="content" source="../media/waf-front-door-configure-custom-response-code/custom-response.png" alt-text="Screenshot that shows a custom response example.":::
67-
6864
# [**PowerShell**](#tab/powershell)
6965

7066
To customize the response status code and body, use [Update-AzFrontDoorWafPolicy](/powershell/module/az.frontdoor/Update-AzFrontDoorWafPolicy) cmdlet.
@@ -102,11 +98,15 @@ az network front-door waf-policy update \
10298
10399
---
104100

101+
In the previous example, we kept the response code as 403 and configured a short "*Please contact us with this information*" message:
102+
103+
:::image type="content" source="../media/waf-front-door-configure-custom-response-code/custom-response.png" alt-text="Screenshot that shows a custom response example.":::
104+
105105
> [!NOTE]
106106
> `{{azure-ref}}` inserts the unique reference string in the response body. The value matches the TrackingReference field in the `FrontDoorAccessLog` and `FrontDoorWebApplicationFirewallLog` logs.
107107
108108
> [!IMPORTANT]
109-
> 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.
109+
> 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.
110110
111111
## Next step
112112

0 commit comments

Comments
 (0)