09-Jun-2020
23:38
- last edited on
04-Jun-2023
21:25
by
JimmyPackets
Hi
I want to be sure if I can combine those two iRules into one and if I'm using the correct order of conditions:
when ASM_REQUEST_DONE {
if { [HTTP::uri] starts_with "/myurl.php/" && [ASM::violation count] <= 4 } {
if { [ASM::violation_data] contains "VIOLATION_OBJ_TYPE"} {
ASM::unblock
}
}
else {
return
}
}
And this iRule:
when ASM_REQUEST_DONE {
if { [HTTP::uri] starts_with "/my/url/1.php" } {
ASM::unblock
}
}
Combined into this one:
when ASM_REQUEST_DONE {
if { [HTTP::uri] starts_with "/myurl.php/" && [ASM::violation count] <= 4 } {
if { [ASM::violation_data] contains "VIOLATION_OBJ_TYPE"} {
ASM::unblock
}
} elseif
{ [HTTP::uri] starts_with "/my/url/1.php" } {
ASM::unblock
}
else {
return
}
}