Go Back   CodingForums.com > :: Server side development > Other server side languages/ issues

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-02-2010, 05:03 PM   PM User | #1
auriaks
Regular Coder

 
Join Date: Feb 2010
Posts: 207
Thanks: 14
Thanked 2 Times in 2 Posts
auriaks has a little shameless behaviour in the past
What IP can tell me?

Hi,

I know ones' IP, and I want to know where "it" is - city and address...

Is it possible? OR Can I create a script to do locating? {It would detect all info when he is on the page with script}

All, suggestions are welcome...
auriaks is offline   Reply With Quote
Old 07-04-2010, 09:54 PM   PM User | #2
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
Geo locating *may* be able to get the country, region and sometimes city. There exists no implied accuracy, except in domain lookups with provided addressing (so, businesses maybe). That would be exclusive of NAT.
My last test put my expected location (non-proxied, with an accurate ip) over 3400KM away and in a different country. So to answer your question, an ip can provide nothing of tangable value. We log so if any illegal activity occurs the address can be provided to authority and they can work with the isp - an ISP will not provide end users with information. Static addresses can be used for blocking, but thats about the extent of its value on the web.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Old 07-05-2010, 10:37 AM   PM User | #3
auriaks
Regular Coder

 
Join Date: Feb 2010
Posts: 207
Thanks: 14
Thanked 2 Times in 2 Posts
auriaks has a little shameless behaviour in the past
Could you post a script which you used?

I know that is is really not accurate detection, but maybe it will show a real place. If it will show many KM from me, I will understand it as a fail info
auriaks is offline   Reply With Quote
Old 07-05-2010, 11:07 AM   PM User | #4
Philip M
Supreme Master coder!

 
Philip M's Avatar
 
Join Date: Jun 2002
Location: London, England
Posts: 17,033
Thanks: 197
Thanked 2,410 Times in 2,388 Posts
Philip M has a spectacular aura aboutPhilip M has a spectacular aura aboutPhilip M has a spectacular aura about
Firefox Plugin:
Displays IP Trace information when you hover over a link.
Hostipfox 0.4.3.9 (download)
Source: git://github.com/bfolkens/hostipfox-firefox-plugin.git

It is your responsibility to die() if necessary….. - PHP Manual
Philip M is offline   Reply With Quote
Old 07-07-2010, 03:03 PM   PM User | #5
auriaks
Regular Coder

 
Join Date: Feb 2010
Posts: 207
Thanks: 14
Thanked 2 Times in 2 Posts
auriaks has a little shameless behaviour in the past
I need script which could show not mine but others information...
auriaks is offline   Reply With Quote
Old 07-07-2010, 03:11 PM   PM User | #6
Fou-Lu
God Emperor


 
Fou-Lu's Avatar
 
Join Date: Sep 2002
Location: Saskatoon, Saskatchewan
Posts: 15,635
Thanks: 4
Thanked 2,448 Times in 2,417 Posts
Fou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to allFou-Lu is a name known to all
PHP has a geoip module through pecl.
http://php.net/manual/en/book.geoip.php
Getting the hostname is generally just gethostbyaddr. BTW, that one can also fail.
__________________
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php
Fou-Lu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:22 PM.


Advertisement
Log in to turn off these ads.