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
?????
}
}
3 Replies
- hoolio
Cirrostratus
Hi Ozgur,
You pretty much had it. This example would send an HTTP response with some custom HTML stating the browser isn't allowed. You can change the status from 200 to something else if you want.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} } }
The default action for MSIE browsers would be to use the VIP's default pool.
Aaron - 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.
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