For anyone who wants to do this I have found a work around.. by using a third party called
http://ipinfo.io its open source which outputs a json which displays the company for the IP and host name, and with a simple PHP script I was able to look for the UK suppliers of mobile networks as in the UK there are only a few.
PHP script which you would place on your website
<?
$ip=$_SERVER['REMOTE_ADDR'];
function get_asn($ip) {
$details = json_decode(file_get_contents("
http://ipinfo.io/{$ip}"));
return $details->org;
}
echo get_asn($ip);
?>
on mouseUp
put empty into Mobile
put URL "
http://www.yourwebsite.co.uk/myip.php" into parser
if offset("Hutchison", parser) > 0 then
put "Three Mobile" into Mobile
end if
if offset("VODAFONE", parser) > 0 then
put "Vodafone" into Mobile
end if
if offset("Orange", parser) > 0 then
put "Orange" into Mobile
end if
if offset("Telefonica", parser) > 0 then
put "O2" into Mobile
end if
if Mobile <> empty then
answer(" Your On a Mobile " & Mobile) with "Ok"
else
answer("Could not detect 3G you must be on WIFI") with "ok"
end if
end mouseUp
Have tried it on Three mobile UK, Orange ( Now EE ), Vodafone UK, O2 UK, hope this is useful to someone
)