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
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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