F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Vaughn_96017's avatar
Vaughn_96017
Icon for Nimbostratus rankNimbostratus
Jun 27, 2007

Redirect based on user browser (mobile)

I am writing an iRule that states if the user is coming in via a mobile device to get redirected to a different pool. My question, here is what I have, is this correct?

 

 

when HTTP_REQUEST {

 

if {[HTTP::header User-Agent] contains "Mozilla"}

 

{pool default-pool} else {pool mobile-pool}

 

 

I was givin a list of known mobile user agents to look for but wouldn't it be easier to just look for the non mobile user agents?

 

 

Version 9.4 HF4

 

13 Replies