Re: Question
| From: | Miguel Cruz | Date: | Mon, 08 Apr 2002 13:09:58 +0000 |
| Subject: | Re: Question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92031@lists.php.net to get a copy of this message | ||
On Mon, 8 Apr 2002, Roman Duriancik wrote:
> How to convert or discover from IPadress country visitors on my web ?
You need to use the 'whois' protocol. I am sure you can find sample code
snippets around. First, look up the address at whois.arin.net. Then, if
delegated to one of the regional registries (like RIPE or APNIC), look it
up again there.
While this is the most effective way, keep in mind that you still can't
determine with 100% certainty what country an IP address is in.
Multinational corporations, large ISPs with their own international
backbones, etc., will in many cases give you false results.
miguel