Search squid archive

RE: Splash page -- detect if client is mobile?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 10 Oct 2011 21:15:02 +0000, Sébastien WENSKE wrote:
Hi Dale,

I think that you can achieve that with dynamic stuff like PHP and browser
headers.

Sebastian


-----Message d'origine-----
De : Dale Mahalko [mailto:dmahalko@xxxxxxxxx]
Envoyé : lundi 10 octobre 2011 19:33
À : squid-users@xxxxxxxxxxxxxxx
Objet :  Splash page -- detect if client is mobile?

Is there a way for a splash page to detect if it is being displayed on a mobile device, and to be able to redirect or show a different page that is reformatted to fit the much smaller display area of the mobile screen?

I don't know if this is really a squid-related question, or if this can all
be handled through the magic of javascript, independent of squid.

-- Dale Mahalko

Well, yes. It can be handled by javascript and CSS a lot better than by Squid or the web server.

Squid provides a "browser" type ACL to scan for regex patterns in the User-Agent string. But it is really hard to tell the difference between UA on smartphones, tablets, notebooks, projectors and PCs these days. I'm apt to say don't bother since you can design the page to be flexible on its own.

Amos


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux