How to set custom Block response for managed rule sets in AWS WAF?


I need to set custom response header and response body for WAF WEB ACL that uses managed rule sets. How to override action to customized block instead of count?

asked 3 months ago29 views
1 Answer

You can customize web requests and responses in the following ways:

  • With allow, count, and CAPTCHA actions, you can insert custom headers into the web request. 
  • With block actions, you can define a complete custom response, with response code, headers, and body. the link with more details and examples.

profile picture
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions