Skip to content

ikyon/IP2Country

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Copyright (C) 2011, Jörgen Nilsson

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see http://www.gnu.org/licenses/.


IP2Country is a php class to which country an IP number is registred in.
You can also use it to find ASN for an IP number and validate an IP 
number.

The ip2country function use the database from http://software77.net/geo-ip/. 
The database has been compressed and converted to MySQL
queries before being downloaded from http://ikyon.se/.

The ip2asn function queries the DNS server of team-cymru.org. See 
http://www.team-cymru.org/Services/ip-to-asn.html for more information.

About

PHP class for IP to country lookup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages