Forum Discussion
Songseajoon_222
Nimbostratus
Mar 16, 2016I want to division to browser type, using an iRule.
In APM,
I want to division to browser type, using an iRule.
My Big-IP Version is 11.5.3
Using a VPE of APM
I made a irule
and then,
I Made Event iRule
I made E...
Seth_Cooper
Employee
Mar 16, 2016You don't need an iRule to do this. You can create an empty action in the VPE and then in the branch rules do a custom expression and search for a string in the user-agent string.
For example:
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36
you could have an expression like
expr { [mcget { session.user.agent}] contains "Chrome" }
Then in that branch rule have the logic you want it to follow.
For IE you could have something like this:
Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; AS; rv:11.0) like Gecko
Mozilla/5.0 (compatible, MSIE 11, Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko
expr { [mcget { session.user.agent}] contains "MSIE" || [mcget { session.user.agent}] contains "rv:11.0" }
This should account for all versions of IE.
-Seth
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