Irule to match a URI and defined RH parameter has certain defined variable
Hello All, I'm trying to write an IRULE match an URI and a certain defined variable RH parameter value. If the condition met then it should forward the traffic to webserver else it should drop the traffic.
For example: if URI is X.com/obs.php?re* is in the URL, then the logic should validate the rh value from the list of defined values and only if the condition is met forward the traffic to webserver.
Here is the irule i tried.
Could you please help me to write the irule script for my request.
when HTTP_REQUEST { set variable XX
variables needs to be defined based on the value from IAM team)
if {[HTTP::URI] contains /obs.php?re*"} validate the rh value from a list of defined values if {[string tolower [URI::query [HTTP::uri] "RH"]] equals "xx"}{ pool POOLX } Redirect client else { HTTP::respond 403 } } else {pool POOLX } }
Regards, Thiyagu