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_R...
hoolio
Cirrostratus
Jan 05, 2010Hi 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
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