How do I restore original visitor IP with Datalife Engine?

Please do the following to restore visitor IP to DataLife Engine:

 

(Open): 
/engine/inc/include/functions.inc.php

(Find): 
$db_ip_split = explode( ".", $_SERVER['REMOTE_ADDR'] );

(Change): 
$db_ip_split = explode( ".", $_SERVER['HTTP_CF_CONNECTING_IP'] );

(Find): 
$ip_split = explode( ".", $_SERVER['REMOTE_ADDR'] );

(Change): 
$ip_split = explode( ".", $_SERVER['HTTP_CF_CONNECTING_IP'] );

-----------------------------------------------------------------------------------------

(Open): 
/engine/modules/addcomments.php

(Find): 
$_SERVER['REMOTE_ADDR'],

(Change): 
$_SERVER['HTTP_CF_CONNECTING_IP'],

-----------------------------------------------------------------------------------------

(Open):
/engine/modules/functions.php

(Find):
$_IP = $_SERVER['REMOTE_ADDR'];

(Change): 
$_IP = $_SERVER['HTTP_CF_CONNECTING_IP'];

(Find):
$db_ip_split = explode( ".", $_SERVER['REMOTE_ADDR'] );

(Change): 
$db_ip_split = explode( ".", $_SERVER['HTTP_CF_CONNECTING_IP'] );

(Find):
$ip_split = explode( ".", $_SERVER['REMOTE_ADDR'] );

(Change): 
$ip_split = explode( ".", $_SERVER['HTTP_CF_CONNECTING_IP'] );
Still not finding what you need?

The CloudFlare team is here to help. 95% of questions can be answered using the search tool, but if you can’t find what you need, submit a support request.

Powered by Zendesk