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...
Stanislas_Piro2
Apr 03, 2017Cumulonimbus
try this code which does the same as your irule (optimized):
when HTTP_REQUEST {
Rewrite the User-Agent header value to show up supported browser
switch -glob -- [string toupper [HTTP::header User-Agent]] {
"*MSIE [6789]*" {
HTTP::header replace "User-Agent" "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko"
log local0. "[HTTP::header User-Agent]"
}
default {
}
}
}
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