Forum Discussion
IRule - 11.6 HF4 User-Header and redirect to original page.
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 } } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
* 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