Jump to content

How to retrieve ISP?


ignace

Recommended Posts

A few days ago, I was on this website that showed me my ISP, ofcourse as curious as I am, I went directly to php.net where I found gethostbyaddr(); providing me something but not what I wanted, so if someone knows how I can accomplish this, then please feel free to enlight me!
Link to comment
https://forums.phpfreaks.com/topic/16640-how-to-retrieve-isp/
Share on other sites

The web site that you saw do this feat (showing you your isp name); what they most likely did was:

$_SERVER['REMOTE_addr']; //gets the client IP

then they probably queried whois.arin.net with fread() or similar to get the registered owner of that IP (which would be your provider (if they are tier 1, otherwise it will return your provider's provider))

The whois data adhere's to conventions and standards so the web site new what and where to look to get your ISP's name.
Link to comment
https://forums.phpfreaks.com/topic/16640-how-to-retrieve-isp/#findComment-69842
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.