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
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
Hello,
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
Try with [HTTP::header User-Agent]
Here you have some similar example https://devcentral.f5.com/questions/block-a-user-agent-with-an-irule
Thanks for the response and Time. I go through the link.