Forum Discussion
Will_Adams_1995
Feb 15, 2016Nimbostratus
I have played around some more with the iRule and hae it responding to an iFile instead, however I can't (like the above iRule) get it to continue onto the web page. I am stuck in a loop. Here is the update iRule with the iFile.
when HTTP_REQUEST { switch -glob [ string tolower [HTTP::header User-Agent]] { "chrome/40" - "msie 11.0" - "msie 10.0" - "msie 9.0" - "msie 8.0" - "msie 7.0" - "msie 6." { HTTP::respond 200 content [ifile get "us_a_supported_browser_html"] set lookup ==1 log local0. "Client IP:[IP::client_addr] has been redirected with user agent :[HTTP::header User-Agent]" } if {$lookup ==1 } default { go to a default location if nothing matches } } }