Solved

Detect if site visitor is using cellular data

Posted on 2011-02-23
3
1,327 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
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 500 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Cordova Camera plugin fails 2 93
Recursively Delete Files 5 65
Need script to search multiple files in one drive 13 33
tag title an image 13 15
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

914 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

16 Experts available now in Live!

Get 1:1 Help Now