Interface WebApplicationFirewallPolicy.UpdateStages.WithInspectRequestBody
- All Known Subinterfaces:
WebApplicationFirewallPolicy.Update,WebApplicationFirewallPolicy.UpdateStages.WithRequestBodyOrUpdate
- Enclosing interface:
- WebApplicationFirewallPolicy.UpdateStages
public static interface WebApplicationFirewallPolicy.UpdateStages.WithInspectRequestBody
The stage of a Web Application Firewall Policy update allowing to enable request body inspection.
-
Method Summary
Modifier and TypeMethodDescriptionDisables request body inspection.Enables request body inspection.
-
Method Details
-
enableRequestBodyInspection
WebApplicationFirewallPolicy.UpdateStages.WithRequestBodyOrUpdate enableRequestBodyInspection()Enables request body inspection. When your WAF receives a request that's over the size limit, the behavior depends on the mode of your WAF and the version of the managed ruleset you use.- When your WAF policy is in prevention mode, WAF logs and blocks requests that are over the size limit.
- When your WAF policy is in detection mode, WAF inspects the body up to the limit specified and ignores the rest. If the Content-Length header is present and is greater than the file upload limit, WAF ignores the entire body and logs the request.
- Returns:
- the next stage of the update
-
disableRequestBodyInspection
WebApplicationFirewallPolicy.Update disableRequestBodyInspection()Disables request body inspection. Turning off the request body inspection allows for messages larger than 128 KB to be sent to WAF, but the message body isn't inspected for vulnerabilities.- Returns:
- the next stage of the update
-