+ 5
IP address
Suppose I'm challenging an unknown person on sololearn app/website , is there any way of knowing the IP ADDRESS of the opponent on website as well as app.
4 Respostas
+ 6
function getUserIpAddr(){
if(!empty($_SERVER['HTTP_CLIENT_IP'])){
//ip from share internet
$ip = $_SERVER['HTTP_CLIENT_IP'];
}elseif(!empty($_SERVER['HTTP_X_FORWARDED_FOR'])){
//ip pass from proxy
$ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
}else{
$ip = $_SERVER['REMOTE_ADDR'];
}
return $ip;
}
echo "User Real IP – ".getUserIpAddr();
+ 4
No, Skiddie. There isn't. Any attempt to grab user data will catch the HTTP Server's proxy data.
+ 2
Till now i am unable to find the answer of this question
0
At kill