bladechob Posted October 18, 2008 Share Posted October 18, 2008 Hi I'm currently using the script <?php if(isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { echo $_SERVER['HTTP_X_FORWARDED_FOR']; } else { echo $_SERVER['REMOTE_ADDR']; } ?> to display ip address and any proxy - but it only seems to generate a 'random' ip from somewhere along the server path (I tried it myself using a proxy address and it came up with some German ip!) Is there a definitive way of establishing the genuine visitor IP? I want to deter people using nicked credit card info to purchase my stuff. Thanks Link to comment https://forums.phpfreaks.com/topic/128947-displaying-ips-exposing-rogues/ Share on other sites More sharing options...
Prismatic Posted October 18, 2008 Share Posted October 18, 2008 There's no reliable way to be sure your user's IP is real. I can bounce my IP off 8 proxies before I hit your site and you'd have no idea what country I'm from. Link to comment https://forums.phpfreaks.com/topic/128947-displaying-ips-exposing-rogues/#findComment-668545 Share on other sites More sharing options...
bladechob Posted October 18, 2008 Author Share Posted October 18, 2008 0h well, guess I'll just have to hold on to the dosh until the old cyber bill come knocking... Link to comment https://forums.phpfreaks.com/topic/128947-displaying-ips-exposing-rogues/#findComment-668546 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.