Forum Discussion
SAM2_121342
Nov 24, 2014Nimbostratus
Redirect iRule that includes Operating System?
Hi - I'm working on building my first iRule for my LTM's. We want to redirect users based on user agent header info but along with the type of browser we want to also specify the users OS.
I see the ...
Brad_Parker
Nov 24, 2014Cirrus
you should be able to use nested IFs to accomplish your redirect or something like:
when HTTP_REQUEST {
if { [string tolower [HTTP::header User-Agent]] contains "windows nt 5.1" && [string tolower [HTTP::header User-Agent]] contains "msie 8.0"}{
HTTP::redirect "http://www.browser-OS-refused.example.com"
}
}
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