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? Quote 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 } ?> Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/192621-proxys/#findComment-1014824 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.