Forum Discussion
jba3126
Mar 31, 2017Cirrus
iRule to Rewrite User Agent Header
We have a client that has an internal browser policy for IE to run in compatibility mode due to legacy applications. Unfortunately with the latest update to our application servers this causes issues...
Amine_Kadimi
Apr 03, 2017MVP
If you would like to use a traffic policy which I think would be a better approach:
- From "Local Traffic ›› Policies ›› Policy List" Create a new policy
-
In that policy create a new rule with the following condition and action:
-
HTTP Header named User-Agent contains any of XXX at request time
-
Replace HTTP Header named User-Agent with value YYY at request time
For XXX, add each of your specific strings (MSIE 7, ...), I'm not sure if this field accept regular expressions but you can test the regex suggested by Stanisla.
Replace YYY with your replacement string.
-
- Save and publish your policy, then associate it with your VS.
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