Forum Discussion
Thiago_Morais
Altostratus
5 years agoiRule with HTTP::request and datagroup
Hi Guys, I need to create an iRule that will check two conditions: 1) HTTP::request contain a specific word "test" 2) The source IP is a member of the Datagroup I would like to cre...
Mayur_Sutare
MVP
5 years agoHere, you can use logical AND operator to check both conditions and if both are fulfilled, set required actions.
Below is IF statement for your reference.
if { ([HTTP::host] contains "test") && ([class match [IP::client_addr] equals Allow-List]) }Hope it helps!
- Samir5 years ago
MVP
Add string tolower functions may help here.
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