Forum Discussion
ozgur_guler_344
Nimbostratus
Jan 05, 2010denying firefox
Hello;
I want to deny connections from firefox,etc(anything other than IE). How can i do that? I prepared a sample irule, but i don't know what action to use.
when HTTP_REQUEST {
if { [HTTP::header "User-Agent"] contains "MSIE" } {
Internet explorer
?????
} else {
other than IE
?????
}
}
- hoolio
Cirrostratus
Hi Ozgur,when HTTP_REQUEST { Check if the UA header does not contain MSIE if { not ([HTTP::header "User-Agent"] contains "MSIE") } { Send an HTTP response indicating the UA isn't allowed? HTTP::respond 200 content {your browser isn't allowed} } }
- Martin_Williams
Nimbostratus
Hello,
I want to use something similar, ie only allow connections from IE, however this doesn't seem to work in IE 11.0 on Windows 8.1, with the browser isn't allowed message being returned. Any ideas how to get around this?
Thanks,
Martin
- gsharri
Altostratus
IE v11 user agent header no longer contains the string MSIE.
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