PHP IP Proxy check

IP Proxy check

<?php
$ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
                $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
echo 'IP is: '.$ip;
?>