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