This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
Merge remote-tracking branch 'origin/master' into HEAD
Conflicts: Changes README mod_geoip.c
- Loading branch information...
Showing with 188 additions and 8 deletions.
|@@ -0,0 +1,46 @@|
|+**mod_geoip2 with fancy, new-fangled X-Forwarded-For handling**|
|+A fork of [MaxMind](http://www.maxmind.com)'s|
|+[mod_geoip2](http://www.maxmind.com/app/mod_geoip) with more intelligent|
|+X-Forwarded-For handling, as per|
|+Currently based on mod_geoip2_1.2.7|
|+**Summary**: The client-IP address in the list of addresses potentially|
|+in the X-Forwarded-For HTTP header is normally the left-most header but|
|+clients with private IP addresses using a forwarding proxy mean that|
|+you'll often get the wrong address, usually a private IP address. This|
|+module follows the rule:|
|+**Always use the leftmost non-private address.**|
|+You can compare with the current MaxMind release|
|+To enable this special mode you need to turn the **GeoIPUseLeftPublicXForwardedForIP**|
|+flag **On** in your apache config.|
|+An additional config option is also available: **GeoIPEnableHostnameLookups**, when|
|+set to **On** mod_geoip2 will attempt to resolve the matched IP address and store|
|+the result in the GEOIP_HOST environment variable. This is useful for logging or|
|+other basic remote host based configuration.|
|+Changes for this fork are being recorded in the|
|+Contributions more than welcome!|
|+Thanks to Kevin Gaudin for his contributions to fall back to the RemoteIP|
|+where we fail to find a public IP address match.|
|+Original MaxMind README is|
|+Follow the same instructions found in the original|
|+**See [Downloads](https://github.com/rvagg/mod_geoip2_xff/downloads) for tarballs.**|