0

user ip detection

how to find realy ip adress if use vpn and proxy

22nd Apr 2017, 9:13 AM
ziad hany
ziad hany - avatar
2 ответов
+ 26
You can't... that's why people use VPN & Proxy... ~_~
22nd Apr 2017, 9:24 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 2
function getClientIpAddress() { //$ipaddress = ''; if (getenv('HTTP_CLIENT_IP')) $ipaddress = getenv('HTTP_CLIENT_IP'); else if (getenv('HTTP_X_FORWARDED_FOR')) $ipaddress = getenv('HTTP_X_FORWARDED_FOR'); else if (getenv('HTTP_X_FORWARDED')) $ipaddress = getenv('HTTP_X_FORWARDED'); else if (getenv('HTTP_FORWARDED_FOR')) $ipaddress = getenv('HTTP_FORWARDED_FOR'); else if (getenv('HTTP_FORWARDED')) $ipaddress = getenv('HTTP_FORWARDED'); else if (getenv('REMOTE_ADDR')) $ipaddress = getenv('REMOTE_ADDR'); else $ipaddress = 'UNKNOWN'; return $ipaddress; } Anyway it will no return real ip address if client using proxy, it will return ip of proxy instead.
22nd Apr 2017, 12:29 PM
Jeth
Jeth - avatar