$clientIpAdress = isset(
$_SERVER['HTTP_CLIENT_IP']
) ? $_SERVER['HTTP_CLIENT_IP']:isset(
$_SERVER['HTTP_X_FORWARDED_FOR']
) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
Do *not* use this on it’s own for security purposes!
$clientIpAdress = isset(
$_SERVER['HTTP_CLIENT_IP']
) ? $_SERVER['HTTP_CLIENT_IP']:isset(
$_SERVER['HTTP_X_FORWARDED_FOR']
) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
Do *not* use this on it’s own for security purposes!