Forum Discussion
[Irule][ASM] Header name with no header value
Hi Hoang Hung,
You can check this article: Disabling a violation for a URL using an iRule (f5.com)
According to article, first get the violation name in a separate irule and then use that violation name in second irule with your host header condition. Do not forget to change the "Specific_ASM_Violation" value with the name of matched violation, when the request with header name "abc" has no value.
when ASM_REQUEST_DONE {
if {[ASM::violation names] contains "Specific_ASM_Violation" and [HTTP::header "abc"] equals "" } {
ASM::unblock
log local0. "ASM unblocking"
}
}
Ahoi,
what is exactly unblocked here? What if i have multiple violations in one request? Are they all unblocked if one of them contains what is defined in the irule?
Is there another way to remove the empty cookie or header before it reaches the asm processing?
Recent Discussions
Related Content
* 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