How can I get the user's IP while using both CloudFlare and MaxMind's GeoIP with mod_geoip?
snippet in htaccess

How can I get the user's IP while using both CloudFlare and MaxMind's GeoIP with mod_geoip?

user5843

$_SERVER['REMOTE_ADDR'] = isset($_SERVER['HTTP_CF_CONNECTING_IP']) ? $_SERVER['HTTP_CF_CONNECTING_IP'] : $_SERVER['REMOTE_ADDR'];