cpd Posted July 2, 2009 Share Posted July 2, 2009 Hi, im baisically looking to take note and put into a database peoples IP's so that i can check to see if they are banned. Could someone please tell me how to do this. Ive tried a few things and they do work but NOT for everyone. Some peoples IP's just wont log and some peoples do... Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/ Share on other sites More sharing options...
Maq Posted July 2, 2009 Share Posted July 2, 2009 Have you tried: $_SERVER['REMOTE_ADDR'] Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-867991 Share on other sites More sharing options...
iPixel Posted July 2, 2009 Share Posted July 2, 2009 Banning IP's isnt that helpfull is it? I mean anyone can just change their IP address and pop right back in. Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-868012 Share on other sites More sharing options...
nbarone Posted July 2, 2009 Share Posted July 2, 2009 Banning IP's isnt that helpfull is it? I mean anyone can just change their IP address and pop right back in. via proxy, sure they can. Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-868018 Share on other sites More sharing options...
iPixel Posted July 2, 2009 Share Posted July 2, 2009 Banning IP's isnt that helpfull is it? I mean anyone can just change their IP address and pop right back in. via proxy, sure they can. Not even just that, simply turning off your modem and waiting a little while will give you a new IP also Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-868021 Share on other sites More sharing options...
nbarone Posted July 2, 2009 Share Posted July 2, 2009 Banning IP's isnt that helpfull is it? I mean anyone can just change their IP address and pop right back in. via proxy, sure they can. Not even just that, simply turning off your modem and waiting a little while will give you a new IP also but who wants to do that when you could be coding Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-868022 Share on other sites More sharing options...
iPixel Posted July 2, 2009 Share Posted July 2, 2009 Hahahahah well said buddy well said . Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-868025 Share on other sites More sharing options...
Maq Posted July 2, 2009 Share Posted July 2, 2009 Banning IP's isnt that helpfull is it? I mean anyone can just change their IP address and pop right back in. Regardless, it's still a good idea to keep track of IPs. Link to comment https://forums.phpfreaks.com/topic/164565-getting-the-ip-of-a-user/#findComment-868026 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.