?
Solved

Detect if site visitor is using cellular data

Posted on 2011-02-23
3
Medium Priority
?
1,347 Views
Last Modified: 2012-05-11
Hi, we are running a private medium sized file hosting site (in php) which offers differing features depending on device (Desktop, Mobile device etc..).

Currently the device is detected by querying $_SERVER['HTTP_USER_AGENT'] However this does not seem to hold any clues as to a data service the vistor is using. Our client is requesting restrictions be made depending if the user is using their device on a wifi connection or on a mobile data connection.

Is their any known way to detect (by either php, js or htaccess) if a visitor on a mobile device is on a wifi network of on a cellular data network.

Thanks for any help.

0
Comment
Question by:DEGtheLEG
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 7

Expert Comment

by:DominoG
ID: 34960089
The only way I can think of to achieve this is by building (or acquiring/purchasing) a database containing  the IP ranges of cellular data providers.

This method won't be perfect by any stretch though as more and more cellular providers are also stretching into fixed line/wireless ISP's.
0
 
LVL 7

Accepted Solution

by:
DominoG earned 2000 total points
ID: 34960153
0
 
LVL 3

Expert Comment

by:David Brennan
ID: 34962797
Yes I agree with DominoG I think that to get it perfect is more or less an impossible task. There's definitely nothing in the  $_SERVER array with that sort of info, you would need up-to-date info on all networks. You could do a speed test, but that would be very inaccurate and could result in a Wifi broadband user being sometimes put onto the 3G site. I would not recommend this sort of thing at all.....
0

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
Suggested Courses

765 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question