Forum Discussion
atoth
Aug 17, 2020Cirrus
its best to give people the benefit of the doubt.
when HTTP_REQUEST {
if {[string tolower [HTTP::host][HTTP::path]] contains "/wfc"} {
<whatever pool or node you want to send traffic to>
} else {
HTTP::respond 403
}
}
Based on what you're describing, this should work. The second line of your irule has the "contains" modifier. This will find "/wfc" no matter where it's in the uri. If that's not your intention, you can also use "starts_with" or "ends_with" instead of "contains"