Forum Discussion
2funky_105078
Feb 26, 2018Cirrus
ASM: insert header when a virus is found
Hello,
I tried to configure a iRule to add a HTTP header in the POST request which uploads a file to an origin server.
This HTTP header should contain the ASM support ID only when there is a viru...
2funky_105078
Feb 27, 2018Cirrus
Thanks for your time looking at my question. I tried but it did not work.
Anyway i found this and it's OK.
when ASM_REQUEST_DONE
{
log local0.debug "\[ASM::status\] = [ASM::status]"
if { ([ASM::status] equals "alarmed") && ([ASM::violation_data] contains "VIOLATION_VIRUS_DETECTED") } {
set x [ASM::violation_data]
HTTP::header insert X-ASM "violation=[lindex $x 0] supportid=[lindex $x 1]"
log local0.debug "DEBUG02: violation=[lindex $x 0] supportid=[lindex $x 1]"
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects