jumbo1
Junior Member
- Apr 18, 2012
- 156
- 19
Hi guys,
I'm working on making my websites responsive.
The first step to that is being able to detect when a visitor to your website is a mobile device (vs a desktop computer).
What is the best way to achieve that? I've come through this website Detect Mobile Browsers - Open source mobile phone detection
which offers a number of codes in different languages that seem to perform this task, but I'd like to know if there is any other "standard" way of detecting mobile devices.
On another hand, I'm using Cloudflare for my websites. I tried to find out if CF offers a way of telling your website whether the visitor is a mobile device. I know there is an option in CF to redirect mobile traffic to the m.website.com version of your website, but that's not what I'm looking to do.
Any help will be appreciated.
I'm working on making my websites responsive.
The first step to that is being able to detect when a visitor to your website is a mobile device (vs a desktop computer).
What is the best way to achieve that? I've come through this website Detect Mobile Browsers - Open source mobile phone detection
which offers a number of codes in different languages that seem to perform this task, but I'd like to know if there is any other "standard" way of detecting mobile devices.
On another hand, I'm using Cloudflare for my websites. I tried to find out if CF offers a way of telling your website whether the visitor is a mobile device. I know there is an option in CF to redirect mobile traffic to the m.website.com version of your website, but that's not what I'm looking to do.
Any help will be appreciated.