Forum Discussion
mfkk531_168091
Nimbostratus
Jan 06, 2016Irule to only allow IE to access the site, elkse redirect to different URL
Hi DC Community,
I'm in need of a irule that allows only IE to access the site. If user tries in different browser (desktop/mobile) they should be redirected to a different url.
Than...
Brad_Parker
Cirrus
Jan 06, 2016I haven't been able to test this just yet, but should cover all IE UAs and mobile.
when HTTP_REQUEST {
if {!([string tolower [HTTP::header "User-Agent"]] contains "msie") || !([string tolower [HTTP::header "User-Agent"]] contains "trident") || [string tolower [HTTP::header "User-Agent"]] contains "mobile"}{
HTTP::respond 302 Location "http://www.differentlocation.com"
}
}
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