codrgii Posted February 19, 2010 Share Posted February 19, 2010 is it possible to detect if someone is using a proxy server? i assume so as i've seen various sites being able to, so would anyone that knows, share some examples of it below? Link to comment https://forums.phpfreaks.com/topic/192621-proxys/ Share on other sites More sharing options...
Wolphie Posted February 19, 2010 Share Posted February 19, 2010 <?php if (get_env("HTTP_X_FORWARDED_FOR")) { $ip = get_env("HTTP_X_FORWARDED_FOR"); // They're behind a proxy } else { $ip = getenv("REMOTE_ADDR"); // Proxy doesn't exist } ?> Link to comment https://forums.phpfreaks.com/topic/192621-proxys/#findComment-1014771 Share on other sites More sharing options...
JonnoTheDev Posted February 19, 2010 Share Posted February 19, 2010 It can be spoofed. There is no real sure fire way. That is why we use proxies. Link to comment https://forums.phpfreaks.com/topic/192621-proxys/#findComment-1014824 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.