| Language |
Author |
Description |
URL |
| GEO-IP DB |
Webnet77 |
This is the actual database all the scripts are based on. You need to download this first. |
DOWNLOAD DATABASE HERE |
| Java |
Chris Malan |
Java code (also requires MySQL) for reading the Geo-IP Database |
Download Source |
| Perl |
Webnet77 |
Perl script to allow IP lookups from a Web Browser |
Download Source |
| PHP |
Luc Balemans |
PHP script to allow IP lookups from a Web Browser.
PHP code Revised April 2008 by Bruce Henderson To correct a bug in the compare routine that was incorrectly doing a string compare. |
Download Source |
| awk/bash |
Grant Coady |
A suite of several awk and bash scripts to analyze iptables firewall log files and summarize data is a plain text presentation. Featured on Linux.com. |
Download Source |
| PHP |
Georg Jordt |
Connect to this site to download the database, extract the gzipped archive and read the CSV file into a MySQL database. |
Download Source |
| C |
Seenu Reddi |
A useful application that loads the database into memory and allows instantaneous lookup of an IP address is integer or dotted quad format. A windows EXE file is also available. |
Download Source |
| PHP (vBulletin) |
Mark Fyvie |
Geographic Location Awareness - GLA - for vBulletin. This is one of several plugins available for vBulletin by the same author. There are others linked from the link given to the right that display the country of origin, allow banning by country and more. |
Download plugin
(Requires vBulletin License) |
| Perl |
Webnet77 |
A simple command line utility that examines the Exim log file to make a human readable summary together with IP -> Country information |
Download Source |
| VBScript/ASP |
Rick Pence |
A VBScript/ASP code sample for using IP-To-Country database file.
Language: VBScript/ASP
Author: Rick Pence (RIaK, LLC.)
Description: A sample script file with functions and code to use Ip-To-Country database |
Download Source |
| Lua |
"Duck" |
Comments from author: "Such documentation as there is can be found as a largeish comment at the start of the file. There are no external dependencies, aside, of course, from Lua 5.1+ and the IpToCountry.csv data. The CSV file doesn't need pre-processing or stuffing into a database. The script just parses it into a table when it loads it -- Lua's quick enough for this." |
Download Source |
| symfony |
Frank |
A code snippet which will soon be a plug-in, of IP to Country lookup for the symfony Framework. Symfony is a Open-Source PHP Web-framework which is becoming very popular. |

Download Source |
IP2 country
Web Server |
Daiguo
|
This is a really useful application of our database written by Daiguo of Poland. It is intended for automated country lookups Simply call the script with a GET parameter like so: http://geoloc.daiguo.com?ip=66.94.234.13 OR
Decimal http://geoloc.daiguo.com?dec=1113516557
Return codes are as follows:
1;US;USA;UNITED STATES where the first parameter ("1" in this case) indicates status. Status parameter can be any of the following:
0 : Failed (bad IP format) - example 400.500.600.700
1 : OK
2 : Not found |

Info Link |
Please report any broken links using the "Contact us" address at the top of the page. |