reldar_76465
Nimbostratus
Jul 13, 2011redirect mobile devices
Hi,
I'm looking for a script that will enable us to redirect all traffic coming from mobile devices to a mobile site.
Many thanks for the help.
Roy
There are a few additional examples and a partial list in this post: (http://devcentral.f5.com/Default.aspx?tabid=53&forumid=5&tpage=1&view=topic&postid=15116)
The best way to get a list is to create a logging statement (log local0. "Device Access Attempt [HTTP::header User-Agent]").
This will put the User-Agent into your /var/log/ltm log and you can grep it with the iRule name to see what is being logged.
You could also go here, but this is quite a list: http://www.user-agents.org/
Keep in mind that if you use a datagroup list to split between Desktop Browser Traffic and Mobile Traffic, that either way you are going to have to maintain a list of one or the other and every time a new mobile device comes out you may need to update your list.
The entries you listed contain wildcards so that they will catch all Mozilla based browsers “*Mozilla*”, or all versions of Internet Explorer “*IE*”, but I would be careful using them since I know that there are mobile versions of IE, and perhaps Mozilla based browsers.