Forum Discussion

BK1's avatar
BK1
Icon for Cirrus rankCirrus
Aug 08, 2021
Solved

WAF custom block page settings

We have configured custom block page for WAF. It is perfectly working fine. Now our customer want few security settings like csp headers, hsts to be enabled on the response page. Could you please confirm if it is possible? If yes, kindly help with the same. Thank you

  • You don't need to add those headers in the code, but in the response headers field as shown below.

     

     

     

    if you are trying to add via iRule, please use HTTP_RESPONSE_RELEASE event as ASM is triggered after HTTP_RESPONSE event

3 Replies

  • You can select custom response and add those CSP, HSTS headers under Response Headers

     

     

     

  • Thanks Sanjay for your response on this. Appreciate it.

    Yes we have customized the block page from here by putting custom html code in the given field. Now I am looking for modifying code for hsts and csp headers. I tried the way we add it in irule but somehow it's still not working. I need help on this not sure if it's due to syntax problem or something else. ​

  • You don't need to add those headers in the code, but in the response headers field as shown below.

     

     

     

    if you are trying to add via iRule, please use HTTP_RESPONSE_RELEASE event as ASM is triggered after HTTP_RESPONSE event