Solved

Detect if site visitor is using cellular data

Posted on 2011-02-23
3
1,323 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
  • 2
3 Comments
 
LVL 7

Expert Comment

by:DominoG
Comment Utility
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 500 total points
Comment Utility
0
 
LVL 3

Expert Comment

by:David Brennan
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now