Forum Discussion
N__197982
Nimbostratus
Jan 13, 2016iRule to detect the client browser the request is coming from.
Folks,
I am looking for some iRule which will detect the kind of browser the request is coming from and then write some rules to handle this requests.
I want to identify if the request is coming from...
Kai_Wilke
MVP
Jan 13, 2016Hi N.,
in the past I've used the snippet below to perform those kind of checks...
switch -glob -- [HTTP::header value "User-Agent"] "*iPhone*" - "*iPad*" - "*iPod*" - "*Opera M*" - "*Android*" - "*IEMobile*" - "*BlackBerry*" - "*Kindle*" {
Mobile Client
} "Mozilla*" - "Opera*" {
Browser
} default {
Unknown Client
}
Cheers, Kai
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
