| IP to Country Database Interface module | ||||||||||||||||||||||||||||||
The zipped archive (bottom of page) contains several versions of simple scripts you can use to run on your server which uses our IP to country database flat file to lookup the country of origin of an IP address. Scripts are written in PHP and Perl. and most do something similar to what you see below although some are designed to work with MySQL data as well. Geo Location or GeoIP (also called geo targeting) databases, have many applications. The include the following:
Enter an IP address like so: 211.36.194.66, and the script will produce the following output:
|
||||||||||||||||||||||||||||||
|
It should work on any flavor *NIX server with a working Perl install. The only modules required are the 'strict' and 'cgi' modules which should already be on your server. |
||||||||||||||||||||||||||||||
| Skill Level Required: | ||||||||||||||||||||||||||||||
Intermediate. If you have never installed a script before, you may find this above you. |
||||||||||||||||||||||||||||||
| Installation | ||||||||||||||||||||||||||||||
Installation is really easy and there are no additional files required except for the actual data file which you download from here (or you can use someone else's provided the format is the same) Uploading instructions, setting of parameters and variables are all documented below. Enjoy! 1) Make sure the first line of the script points to Perl for your server. The default is:
2) Upload the script to a web accessible directory on your server that can execute CGI scripts. For example the cgi-bin directory on your website. 3) Make sure you upload the script in ASCII mode or it won't work. 4) CHMOD it to 755. 5) Unzip the file you downloaded from here and upload it to the same directory as the script. If you call it 'IpToCountry.csv' on your server (Case Sensitive!!) you won't need to change anything in the Perl code. 6) There are only 3 variables you worth mentioning in the code you can change:
7) Don't forget to update your database form time to time by downloading the latest data file. |
||||||||||||||||||||||||||||||
| Price | ||||||||||||||||||||||||||||||
|
FREEWARE |
||||||||||||||||||||||||||||||
| Terms of Supply | ||||||||||||||||||||||||||||||
|
Software is supplied with absolutely no warranty at all. If it breaks your server it is not our problem. |
||||||||||||||||||||||||||||||
| Help | ||||||||||||||||||||||||||||||
|
Limited help is available at the forum only. We do not provide help for this product via email. |
||||||||||||||||||||||||||||||
| Download | ||||||||||||||||||||||||||||||
|
Download zip file [DOWNLOAD] |
||||||||||||||||||||||||||||||
|
Copyright © 2002- Webnet77.com. All Rights reserved.
TOS::AUP::Privacy