Forum Discussion
Brian_Yeager_12
Nimbostratus
Jan 26, 2009Does Not Equal String Question
I have been working on this (sanitized a bit).
when HTTP_REQUEST {
if { ([HTTP::uri] contains "/whateverthisendsupbeing") and
([IP::client_addr] != "xxx.xxx.xxx.xxx...
hoolio
Cirrostratus
Jan 27, 2009You can use the IP::addr command (Click here) to evaluate single IP addresses or a single subnet against another single IP address or single subnet.
You can perform a logical not using ! or "not":
Check if x isn't equal to 2
if { ! (x==2) }{
or in iRules:
Check if x isn't equal to 2
if { not (x==2) }{
Aaron