Technical Forum
Ask questions. Discover Answers.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

WAF custom block page settings

BK1
Cirrus
Cirrus

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

1 ACCEPTED SOLUTION

SanjayP
MVP
MVP

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

 

0691T00000DyScKQAV.gif 

 

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

View solution in original post

3 REPLIES 3

SanjayP
MVP
MVP

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

 

0691T00000DyPb4QAF.gif 

 

BK1
Cirrus
Cirrus

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. ​

SanjayP
MVP
MVP

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

 

0691T00000DyScKQAV.gif 

 

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