Kemstar_50071
Aug 23, 2012Nimbostratus
Control Browser version
Need help, Is there a way to control IE version for accessing certain web applicaion that only support IE8 using iRule? and denial other browser version. Thanks
Need help, Is there a way to control IE version for accessing certain web applicaion that only support IE8 using iRule? and denial other browser version. Thanks
You could use the http:header cmd and query the user-agent.
Hope this helps,
N
https://devcentral.f5.com/Multimedi...20823.aspx
-Joe
when HTTP_REQUEST {
if {not ([string tolower [HTTP::header User-Agent]] contains "MSIE 8.0")} {
HTTP::respond 200 content {
sorry, but the browser is not supported.
}
log local0. "Unhandled User Agent: [HTTP::header User-Agent]"
}
}
when HTTP_REQUEST {
if {not ([string tolower [HTTP::header User-Agent]] contains "MSIE 8.0")} {
HTTP::respond 200 content {
sorry, but the browser is not supported.
}
log local0. "Unhandled User Agent: [HTTP::header User-Agent]"
}
}
if { not ([string tolower [HTTP::header User-Agent]] contains "msie 8.0") }
And see if that helps...
-Joe