Mobile browser detection at server level

AndriesLouw nginx-forum at nginx.us
Sat Jan 7 14:56:20 UTC 2012


António P. P. Almeida Wrote:
-------------------------------------------------------

> There's a simpler and more efficient way to do it.
> Instead of
> detecting the mobile browser, do the
> complementary, i.e. detect the
> desktop browser:
> 
> https://gist.github.com/1326701
> 
> --- appa

I'd like to warn you about that one, it detects bot's like Googlebot
also as being an mobile device. My setup does also detect desktop
browsers first, as you may or may not have seen. So it's the same setup,
but mine has more exclusions to the "desktop" list.

--
Andries Louw Wolthuizen

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,183827,220909#msg-220909



More information about the nginx mailing list