Jump to content


Photo

How to retrieve ISP?


  • Please log in to reply
3 replies to this topic

#1 ignace

ignace
  • Moderators
  • Now mod flavored
  • 6,430 posts
  • LocationBelgium

Posted 05 August 2006 - 02:27 PM

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!

#2 xec

xec
  • Members
  • PipPip
  • Member
  • 23 posts

Posted 05 August 2006 - 02:43 PM

hii,
    nice question.. , this web solution of your query.. :)

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


#3 ignace

ignace
  • Moderators
  • Now mod flavored
  • 6,430 posts
  • LocationBelgium

Posted 05 August 2006 - 02:49 PM

I am a very poor programmer, that even $50 bucks is way beyond my salary, anything cheap like free?

#4 phporcaffeine

phporcaffeine
  • Members
  • PipPipPip
  • Advanced Member
  • 361 posts
  • LocationOhio, USA

Posted 05 August 2006 - 04:44 PM

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.
Thanks,

Ryan Huff
President & Founder, MyCodeTree
support@mycodetree.com | http://mycodetree.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users