HOME BUY ONLINE DEVELOPERS PARTNERS SUPPORT ABOUT US CONTACT US
products
DB1 IP2Location™ IP- Country
DB2 IP2Location™ IP- Country-ISP
DB3 IP2Location™ IP- Country-Region-City
DB4 IP2Location™ IP- Country-Region-City-ISP
DB5 IP2Location™ IP- Country-Region-City- Latitude-Longitude
DB6 IP2Location™ IP- Country-Region-City- Latitude-Longitude-ISP
DB7 IP2Location™ IP- Country-Region-City- ISP-Domain
DB8 IP2Location™ IP- Country-Region-City- Latitude-Longitude-ISP- Domain
DB9 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode
DB10 IP2Location ™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-ISP- Domain
DB11 IP2Location™ IP-Country-Region-City-Latitude-Longitude-ZIPCode-Timezone
DB12 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-TimeZone -ISP-Domain
DB13 IP2Location™ IP- Country-Region-City- Latitude-Longitude- Timezone-Netspeed
DB14 IP2Location™ IP- Country-Region-City- Latitude-Longitude- ZIPCode-Timezone-ISP-Domain-Netspeed
software products
DNx IP2Location™ .NET Component
JVx IP2Location™ Java Component
AXx IP2Location™ ActiveX/COM DLL
ISx IP2Location™ ISAPI Filter
WS1 IP2Location™ IP-Country Web Service
BOx BrowserObject™ Browser Detection
XML SOAP XML Web Services
CPS Custom Programming Services
free resources
IP2Location™ Application (Free)
IP2Location™ Online Demo (Free)
IP2Location™ Email Header Tracer (Free)
IP2Location™ IPV6-COUNTRY Free Edition
IP2Location™ API (Free)
IP2Location™ Articles & Tutorial (Free)
IP2Location™ Downloader Script (Free)
IP2Phrase™ Geo-Personalized Phrase (Free)
IP2Map™ Visitors Tracking by Map (Free)
World Country Information (Free)
ISO 3166 Country Code List (Free)
Flags of the World (Free)
 

Apache IP2Location 2.1.1

This is a IP2Location Apache Module that enables the user to identify the country, region, city, latitude, longitude, zip code, time zone, ISP, domain name and connection type by IP address. It contains a demo IP2Location IP-COUNTRY BIN database which consists of real data for IP address range 0.0.0.0 to 99.255.255.255. This database contains IP address blocks as key and countries as values. The paid version of IP2Location database covers all IP address range. In general, it is more complete, fast and accurate than using reverse DNS lookups.

Developers can download other sample databases to evaluate other features such as region, city, latitude, longitude, zip code, ISP and domain name using the same Apache module.

 
  Download - Apache Module
IP2Location Apache Module [ Version 2.1.1 ]
 
  Download - Sample .BIN Files
IP2Location™ DB1 Sample .BIN File
IP2Location™ DB2 Sample .BIN File
IP2Location™ DB3 Sample .BIN File
IP2Location™ DB4 Sample .BIN File
IP2Location™ DB5 Sample .BIN File
IP2Location™ DB6 Sample .BIN File
IP2Location™ DB7 Sample .BIN File
IP2Location™ DB8 Sample .BIN File
IP2Location™ DB9 Sample .BIN File
IP2Location™ DB10 Sample .BIN File
IP2Location™ DB11 Sample .BIN File
IP2Location™ DB12 Sample .BIN File
IP2Location™ DB13 Sample .BIN File
IP2Location™ DB14 Sample .BIN File
 
Note: The demo version of Binary (.BIN) data file consists of IP address range from 0.0.0.0 to 99.255.255.255. The complete Binary (.BIN) data file is available for all paid subscribers at no extra cost. Please contact our sales department for the download information.
 
  Complete .BIN Files (Subscription Required)
IP2Location™ DB1 Full .BIN File
IP2Location™ DB2 Full .BIN File
IP2Location™ DB3 Full .BIN File
IP2Location™ DB4 Full .BIN File
IP2Location™ DB5 Full .BIN File
IP2Location™ DB6 Full .BIN File
IP2Location™ DB7 Full .BIN File
IP2Location™ DB8 Full .BIN File
IP2Location™ DB9 Full .BIN File
IP2Location™ DB10 Full .BIN File
IP2Location™ DB11 Full .BIN File
IP2Location™ DB12 Full .BIN File
IP2Location™ DB13 Full .BIN File
IP2Location™ DB14 Full .BIN File
 
  Requirements
1) IP2Location C API library (download from http://www.ip2location.com/c.aspx)
2) Apache 2.0x
3) GNU make or any compatible make utility
 
  Linux Build
1) apxs -i -a -L<path_to_ip2location_c_api_compiled_library>
    -I<path_to_ip2location_c_api_src>-lIP2Location -c mod_ip2location.c

e.g. apxs -i -a -L../C-IP2Location-2.1.1/libIP2Location/.libs/ -I../C-IP2Location-2.1.1/libIP2Location/-lIP2Location -c mod_ip2location.c

 
  Windows Build
1) Open Makefile.win and configure macros as below: 
   - IP2LOCATION_CSRC_PATH =<path_to_ip2location_c_api_src> 
       e.g. IP2LOCATION_CSRC_PATH =../C-IP2Location-2.1.1/libIP2Location

   - IP2LOCATION_CLIB_PATH = <path_to_ip2location_c_api_compiled_library>
       e.g. IP2LOCATION_CLIB_PATH = ../C-IP2Location-2.1.1/libIP2Location

   - APACHE_INSTALL_PATH =<path_to_apache_installation>
       e.g. APACHE_INSTALL_PATH = "C:/Program Files/Apache Group/Apache2"

2) nmake /f Makefile.win

3) Copy the resulting IP2Location_apache.dll to Apache modules path

 
  Apache Configuration
1) Load the compiled IP2Location module by adding these lines in httpd.conf
         LoadModule IP2Location_module
         <compiled_ip2location_dll_file_with_fully_qualified_path>
         <IfModule mod_ip2location.c>
         IP2LocationEnable <On|Off>
         # ENV will set server variables
         # NOTES will set apache notes
         # ALL will set both
         IP2LocationSetmode <ALL|ENV|NOTES>
         IP2LocationDBFile <ip2location_binary_db_file_with_fully_qualified_path>
         </IfModule>

2) Restart Apache server to take effect of the changes

 
  PHP Testing
Load mod_ip2location_test.php from Web browser
 
  Apache Rewrite Testing

1) Add below lines to Apache configuration file httpd.conf:
         RewriteEngine On
         RewriteCond %{ENV:IP2LOCATION_COUNTRY_SHORT} ^UK$
         RewriteRule ^(.*)$ http://www.google.co.uk [L]

2) This will redirect all IP address from United Kingdom to     http://www.google.co.uk

 
 
 
 
live product demo
 
IP2Location™ Internet
IP Address 2008
Report
 
live product demo
 
IP Address
 
 
IP2Location Affiliate Program
 
Earn up to 20% on Sales from New Customer and
2-Year Return Commission
More Information
testimonials
"No doubt why security expert, Mike Schiffman, author of the Hacker’s Challenge book series recommended IP2Location™ in IP Geo project".
- S. Jones, California (United States)
"I am very satisfied with my purchase for my ip address log analysis project. Got my account immediately right after order approved. No hassle or delay time at all as I always thought. A must to meet project deadline".
- J. Wagner, New York (United States)
"Innovative products with low price tags compared with others million dollars geo-targeting products".
- Balakrishnan, Bangalore (India)
client list
 
client list
 
as seen in
 
msdn
 
eWeek
 
product overview
 
Take a closer look in this in-depth tour and learn more about IP2Location™ products:
IP2Location™ Product Overview
IP2Location™ Product Brochure
showcase
Web Sites Powered by IP2Location™
Geolocation IP Address by IP2Location Prevent Credit Card Fraud by Fraudlabs Zip Code Database Solution by ZIPCodeWorld.com Geographic City Database by GeoDataSource Browser Detection by BrowserObject