I don't know about vB4, but for 3.8.x I would say try this:
1. open includes/class_core.php after saving a clean copy of it to your desktop for easy revert.
2. Find:
Code:
function fetch_ip() { return $_SERVER['REMOTE_ADDR']; }
replace with:
Code:
function fetch_ip() { if(isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { return $_SERVER['HTTP_CF_CONNECTING_IP']; } return $_SERVER['REMOTE_ADDR']; }
Find:
Code:
function fetch_alt_ip() { $alt_ip = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['HTTP_CLIENT_IP'])) { $alt_ip = $_SERVER['HTTP_CLIENT_IP']; }
Replace with:
Code:
function fetch_alt_ip() { $alt_ip = $_SERVER['REMOTE_ADDR'];
if (isset($_SERVER['HTTP_CF_CONNECTING_IP'])) { $alt_ip = $_SERVER['HTTP_CF_CONNECTING_IP']; } else if (isset($_SERVER['HTTP_CLIENT_IP'])) { $alt_ip = $_SERVER['HTTP_CLIENT_IP']; }
Save changes, then upload back to the /includes folder.