Forum Discussion
jdam_41848
Dec 18, 2014Altocumulus
nested if iRule
Hi, I am trying to develop an iRule that will flow through several conditions, breaking out as soon as a condition is false to make it efficient. It doesn't seem to be working but not sure why.
...
nitass
Dec 21, 2014Employee
can you try something like this?
[root@ve11a:Active:In Sync] config tmsh list ltm rule qux
ltm rule qux {
when HTTP_REQUEST {
if { [HTTP::method] equals "POST" } {
if { [HTTP::uri] contains "/URI-In-Question/" } {
HTTP::collect 100
} else {
Stop processing
return
}
} else {
Stop processing
return
}
}
when HTTP_REQUEST_DATA {
if { not ([HTTP::payload 100] contains "keyword") } {
Reject
reject
}
}
}
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