Esta página incluye una lista de algunos de los recursos de terceros que se encuentran disponibles para ayudarlo a integrar las bases de datos GeoIP y los Servicios GeoIP Web con sus aplicaciones. MaxMind no avala ninguna de estas páginas, y si usa del código en ellas, lo hará a su entero riesgo.
Implementation
Basics
- Introduction to MaxMind - Overview of MaxMind on Linux.com. Goes over installing C API, using mod_geoip w/ Apache, showing IP address of a visitor w/ PHP
- Getting Visitor's Country with PHP using Geo IP
- Where are you from? IP Geolocation
Mapping
Usando GeoIP e Google Maps
Geotargeting
- Geotargeting PHP Script
- PHP Geotargeting Techniques
- Effective Geotargeting with PHP
- Geolocate your visitors with PHP
- Ad targeting and Drop-down country selector
- Whitelisting countries w/ PHP
Visitor Redirection by Country
Modules and Plugins
General
WordPress
- Visitor Map Generator for WordPress
- Free, JavaScript-based, WordPress Geolocation plug-in by Pat Friedl
TWiki
Spam Filter
- Installing Milter-Greylist with GeoIP to control spam - "The Milter-Greylist is a milter to sendmail written in C that implements the greylist filtering system, as proposed by Evan Harris."
Web Services
- GeoIP Web Service Tutorial - Uses Java API
- Creating your own web service
GSLB (Global Server Load Balancing)
- BIND GeoIP - A new patch for BIND which extends support to additional MaxMind databases, including GeoIP City and IPv6 GeoIP Country. Both threaded and non-threaded operation have been tested. >100B production queries have passed through this patch with neither crashes nor leaks.
- GeoDNS Patch for BIND DNS server - If you have a server in the US and another in Australia for xyz.com, this patch allows you to direct traffic to the nearest one not just by individual IP addresses, but rather by country. E.g., rather than having to list every IP you want redirected, you can just say, all of US, CA. MX ... go to server1 and all of AU, CN, PK, .... go to server2, etc.
- HOWTO Implement GeoDNS using BIND & MaxMind - A BASH script that allows the creation of a GeoIP.acl include file for BIND, that can be slotted straight into BIND's configuration file, without the need to patch BIND at all.
- GDNSD - an authoritative-only DNS server
LAMP
- Blake's CentOS LAMP Server Guide - sections on AWStats and mod_geoip2
Flash
- Note: we have a crossdomain file at http://j.maxmind.com/crossdomain.xml
- GeoIP Stream Locking Module for Wowza - Wowza is a Flash media server
- Getting Your Geospatial Freak-on with MaxMind - ActionScript wrapper for our Javascript City Web Service
- Facebook acts as a proxy between an FBML application and the end user. This "patch" modifies our mod_geoip API so that it receives the user's IP rather than Facebook's. French: G\xE9olocaliser un utilisateur Facebook depuis PHP via mod_geoip de MaxMind English: Geotag a Facebook user via PHP mod_geoip of MaxMind
Google Earth
- KML Files with a Placemark for cities and regions worldwide, each with a lat/lon See the GeoDjango API section below for more mapping-based resources.
API Resources
C #
- Documentation / Source - for Wei Wong's enchancements to the C # library for GeoIP Country
PHP
- GeoIP functions overview
- PEAR Library - ports MaxMind PHP API to PHP5 and PEAR Standards
- Using PHP + GeoLite City to detect the location of someone's IP Portuguese - English
CakePHP
- CakePHP is a web framework for PHP similar in concept to Ruby on Rails.
- Quickly Translate IP to Geo Coordinates
- GeoIp Component
Pure Perl
- Installing Geo IP PurePerl
- GeoIP Documentation on CPAN
- Apache-GeoIP on CPAN
- Pure Perl Installation on Debian - see post by leftbrainlogic
Ruby
- Using GeoIP in Ruby - from About.com spotlight
- Ruby "geoip" gem source code
mod-geoip
- Apache MIT GeoIP Module German - English
- Documentation - / Source - for mod_geoip for ProFTP Daemon - (an FTP Server)
- mod_geoip2 with fancy, new-fangled X-Forwarded-For handling
Python
- GeoIP-python mailing list on SourceForge
- python-geoip package for Debian - "This package contains the python bindings for GeoIP, allowing you to use this library within a python program and find the country of any IP address."
- python-geoip package for Ubuntu - same as above for Ubuntu
Java
Chicken Scheme
Erlang
Django
GeoDjango
"A GIS branch of django that intends to be a geographic web framework making it as easy as possible to build GIS web applications and harness the power of spatially enabled data."
Go
Distro Resources
Debian
Ubuntu
Slackware
RPMs
NetBSD
Mac OS X
Firewall
IPtables
- xt_geoip module included in Xtables-addons - replaces patch-o-matic in netfilter/iptables project
Modsecurity
- Apache Modsecurity with GeoIP blocking country specific traffic
- Using with GeoIP - from modsecurity website
fail2ban
Web Stats
AWStats
- Installing AWStats on CentOS - includes section on GeoIP
- HowTo get GeoIP City working w/ AWStats for PowWeb hosting community
AWFull (a Webalizer fork)
SQL
PostgreSQL
MySQL
- Vincent De Lau - How to import country into CSV
- MaxMind GeoIP install setup tutorial using PHPMyAdmin - Includes information on importing GeoIP CSV files into MySQL. Builds on Vincent De Lau's tutorial above with pictures
- Geo IP - install MaxMind GeoIP using PHP + MySQL - builds on link above on using PHPMyAdmin
- Great links from MySQL forum
MySQL Optimization
- Looking up the country of an IP using spatial R-tree indexes in MySQL - Great thread following post
- Andy Skelton - how they do lookup at WordPress - references above link
- Fast SQL queries using the CSV database and PHP
Oracle
- Importing GeoIP CSV files into Oracle 8i+ - By Sascha Pfalz. See link to download GeoIP01.zip