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.