Forum Discussion
gowenfawr
Jan 21, 2016Nimbostratus
We dealt with it in an iRule, and it's pretty simple:
when ASM_REQUEST_BLOCKING {
set asm_info [ASM::violation_data]
if {[string compare -nocase "/web/json-y-page" [HTTP::uri]] == 0} {
ASM::payload replace 0 [ASM::payload length] "{\"response\":\"1\", \"message\":\"Request Rejected. Support ID: [lindex $asm_info 1]\"}"
HTTP::header replace Content-Length [ASM::payload length]
}
}
This will replace the default response page that would otherwise be sent.