Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IP locator websites..?
#1
So I have been wondering, how do sites like http://whatismyipaddress.com/ gather so much information from an IP address? Where do they grab the information from?

If I was to create an IP locator, how would I go about doing it?

Thanks a lot,
- Jack
Reply
#2
Not sure, but to print IP's then example PHP would be:

Code:
?echo $_SERVER['REMOTE_ADDR'];?>
Reply
#3
Theres a site that says the browser the person is using/ ip/ router
[Image: pughacking.png]
Reply
#4
I was more wondering about the information gathered from the IP address. Such as ISP, Host, City, Country, Proxy, etc...
Reply
#5
I'm guessing they somehow request it through the ISP. Not all are 100% my IP is traced to a couple of miles away from where I actually live.
Reply
#6
There are several pre-defined functions in PHP.

To be honest I would just use a site rather than make one..
http://www.geobytes.com/IpLocator.htm

(08-29-2010, 09:17 AM)Fragma Wrote: I was more wondering about the information gathered from the IP address. Such as ISP, Host, City, Country, Proxy, etc...

IP address
PHP Code:
<?php $_SERVER['REMOTE_ADDR'?>

Host
PHP Code:
<?php $_SERVER['REMOTE_HOST'?>

Browser info..
PHP Code:
<?php $_SERVER['HTTP_USER_AGENT'?>
(11-23-2010, 08:40 PM)Guest Wrote: Alright, did the 'Support' get removed from SupportForums?
You're not a good Emotional Helper.
Reply
#7
Small javascript I have which will make your work simple.

PHP Code:
<script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script>

<
br>Country Code:
<
script language="JavaScript">document.write(geoip_country_code());</script>
<
br>Country Name:
<
script language="JavaScript">document.write(geoip_country_name());</script>
<
br>City:
<
script language="JavaScript">document.write(geoip_city());</script>
<
br>Region:
<
script language="JavaScript">document.write(geoip_region());</script>
<
br>Region Name:
<
script language="JavaScript">document.write(geoip_region_name());</script>
<
br>Latitude:
<
script language="JavaScript">document.write(geoip_latitude());</script>
<
br>Longitude:
<
script language="JavaScript">document.write(geoip_longitude());</script>
<
br>Postal Code:
<
script language="JavaScript">document.write(geoip_postal_code());</script
Hope, I helped you.
Reply
#8
Thanks but I was actually wanting to implement this into a desktop application without having to use a website like http://whatismyipaddress.com/ to gather the information.
Reply
#9
Then work in vb.net
Reply
#10
Sorry but you have misunderstood totally. I want to know the process in which websites gather so much information purely by having an IP address. Where do they get the information from?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  List of Top Websites to Learn How to Code tk-hassan 0 404 06-13-2021, 11:29 PM
Last Post: tk-hassan
  My Websites. Baked 6 1,881 03-26-2011, 08:14 PM
Last Post: Baked
  Welcome title for websites. Akshay* 0 815 10-14-2009, 02:54 AM
Last Post: Akshay*
  Introduction to javascript 1.3 for websites-part 1 Akshay* 5 1,261 10-11-2009, 08:10 AM
Last Post: Akshay*

Forum Jump:


Users browsing this thread: 3 Guest(s)