denying 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

???

}

}

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

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

IE v11 user agent header no longer contains the string MSIE.