Script u/ mengetahui IP user di inet
Dengan PHP :
QUOTE
$ip_utama=$_SERVER['REMOTE_ADDR']; //untuk ip public
$ip_forwarded_for=$_SERVER['HTTP_X_FORWARDED_FOR']; //untuk ip private dalam jaringan
$ip_server=$_SERVER['SERVER_ADDR']; //alamat ip server
$browser=$_SERVER['HTTP_USER_AGENT']; //jenis browser
$referer=$_SERVER['HTTP_REFERER']; //link sebelumnya yang dikunjungi
echo $ip_utama ."
";
echo $ip_forwarded_for ."
";
echo $ip_server ."
";
echo $browser ."
";
echo $referer;
?>
Dengan Javascript :
QUOTE
QUOTE
$ip_utama=$_SERVER['REMOTE_ADDR']; //untuk ip public
$ip_forwarded_for=$_SERVER['HTTP_X_FORWARDED_FOR']; //untuk ip private dalam jaringan
$ip_server=$_SERVER['SERVER_ADDR']; //alamat ip server
$browser=$_SERVER['HTTP_USER_AGENT']; //jenis browser
$referer=$_SERVER['HTTP_REFERER']; //link sebelumnya yang dikunjungi
echo $ip_utama ."
";
echo $ip_forwarded_for ."
";
echo $ip_server ."
";
echo $browser ."
";
echo $referer;
?>
Dengan Javascript :
QUOTE
Comments