RE: [squid-users] redirect based on User Agent ?

From: Len Kranendonk <lkranendonk@dont-contact.us>
Date: Mon, 11 Jul 2005 14:46:25 +0200

Thanks for the answer Joshua. I'm going to use WURLF (
http://wurfl.sourceforge.net/ ) for maintaining the list of devices.

Do you know if it's possible to pass the User Agent variable to the
redirector program ?

Len

-----Oorspronkelijk bericht-----
Van: Joshua Goodall [mailto:joshua@roughtrade.net]
Verzonden: maandag 11 juli 2005 13:29
Aan: Len Kranendonk
CC: squid-users@squid-cache.org
Onderwerp: Re: [squid-users] redirect based on User Agent ?

On Mon, Jul 11, 2005 at 01:04:02PM +0200, Len Kranendonk wrote:
> We're using multiple squids in http accelerator mode to speed up a
high
> traffic website.
> At the moment we're working on a site for mobile / pda browsers.
>
> I'd like to redirect mobile users to an alternate URL.
> Is there a way to led squid handle the redirects based on User Agent ?

Do you mean something like this?

acl blackberry browser Blackberry
acl windowsce browser Windows.CE
acl symbian browser Symbian
redirect_program /usr/local/bin/myredirector
redirector_access allow blackberry
redirector_access allow windowsce
redirector_access allow symbian

This page might help you with constructing regexes to use:
http://www.zytrax.com/tech/web/mobile_ids.html

Alternatively, you might find it more flexible to do this in the
application.
That'll allow you to handle many more special cases than Squid will.
Looking at the variegated browser strings, I suspect there'll be plenty
of gotchas.

Regards
Joshua.

-- 
Joshua Goodall                           "as modern as tomorrow
afternoon"
joshua@roughtrade.net                                       - FW109
Received on Mon Jul 11 2005 - 06:46:27 MDT

This archive was generated by hypermail pre-2.1.9 : Mon Aug 01 2005 - 12:00:02 MDT