Jump to content

Archived

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

ignace

How to retrieve ISP?

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!

Share this post


Link to post
Share on other sites
hii,
    nice question.. , this web solution of your query.. :)

http://www.maxmind.com/app/country

Share this post


Link to post
Share on other sites
I am a very poor programmer, that even $50 bucks is way beyond my salary, anything cheap like free?

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

×

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.