Forum Discussion
Sachin_M_258695
Nimbostratus
Apr 03, 2018iRule Required.
We have requirement where i have to match both IP(Data group created already) and "User Agents" To allow a traffic to VIP.
Kindly help me to build iRule.
Thanks
Sachin M
youssef1
Cumulonimbus
Apr 03, 2018Hello,
when HTTP_REQUEST {
if { [class match [IP::client_addr] equals my_ip_dg] && [class [string tolower [HTTP::header "User-Agent"]] contains allow_user_agent ] } {
Do what's you want
}
}
I let you optimise Irule according to your needs...
Regards
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
