Dragosvr92 Posted November 23, 2011 Share Posted November 23, 2011 Hello, Does anyone know how may i detect the Connection type by user IP? Broadband etc. Quote Link to comment https://forums.phpfreaks.com/topic/251659-get-connection-type-by-ip/ Share on other sites More sharing options...
btellez Posted November 23, 2011 Share Posted November 23, 2011 I don't have any experience with this one, but this looks like something you might be in search of: http://php.net/manual/en/function.gethostbyaddr.php Also, google analytics collects this type of data for you if your just trying to get a general overview of the traffic you get... Quote Link to comment https://forums.phpfreaks.com/topic/251659-get-connection-type-by-ip/#findComment-1290651 Share on other sites More sharing options...
trq Posted November 23, 2011 Share Posted November 23, 2011 What exactly do you mean by "connection type"? Quote Link to comment https://forums.phpfreaks.com/topic/251659-get-connection-type-by-ip/#findComment-1290652 Share on other sites More sharing options...
kicken Posted November 23, 2011 Share Posted November 23, 2011 Broadband etc. I assume you want to know if the user is on cable, dsl, wifi, dial-up, etc? That's not something an IP will tell you. Some ISP's give hints about that in their reverse dns of an ip, but that's not something you can rely on, and it may not really even be accurate. You'd have to have a database on your end that could map ip ranges to connection type. Creating such a database would mean having to find out who owns what IP blocks, and what services they provide with those IPs. I have no idea if such a DB already exists that you might download/buy. Google may know. Quote Link to comment https://forums.phpfreaks.com/topic/251659-get-connection-type-by-ip/#findComment-1290658 Share on other sites More sharing options...
Dragosvr92 Posted November 23, 2011 Author Share Posted November 23, 2011 hi thorpe, i meant what kicken said. kicken, you are right. there are databases, but they arent free, i thought a php functioon may be able to do that. nevermind. Quote Link to comment https://forums.phpfreaks.com/topic/251659-get-connection-type-by-ip/#findComment-1290789 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.