dadamssg Posted March 6, 2009 Share Posted March 6, 2009 im developing a members registration site and all that jazz. If the members decides to post crap on my site, how can i capture his/her IP address and ban it from creating another member id if i block his first? is php capable of doing this? Link to comment https://forums.phpfreaks.com/topic/148199-solved-banning-certain-ip-addresses/ Share on other sites More sharing options...
trq Posted March 6, 2009 Share Posted March 6, 2009 Take a look at $_SERVER['REMOTE_ADDR']. Link to comment https://forums.phpfreaks.com/topic/148199-solved-banning-certain-ip-addresses/#findComment-777918 Share on other sites More sharing options...
dadamssg Posted March 6, 2009 Author Share Posted March 6, 2009 thanks, will do Link to comment https://forums.phpfreaks.com/topic/148199-solved-banning-certain-ip-addresses/#findComment-777919 Share on other sites More sharing options...
ratcateme Posted March 6, 2009 Share Posted March 6, 2009 you can but most internet IP's are now home to many users and are dynamic so that if they disconnect there router they get a new one on reconnect so they are no longer blocked also then when someone else on the same ISP connects they could get the blocked IP when they did nothing. really all you can use is email addresses and cookies but unfortunately they can both be defeated. but really if you use a CAPTCHA then they can't use automated scripts and will likely give up after being banned Scott. Link to comment https://forums.phpfreaks.com/topic/148199-solved-banning-certain-ip-addresses/#findComment-777920 Share on other sites More sharing options...
dadamssg Posted March 6, 2009 Author Share Posted March 6, 2009 alright thanks, im not really worried about them writing malicious scripts right now...soon though, rather the actual things they post on my site. Link to comment https://forums.phpfreaks.com/topic/148199-solved-banning-certain-ip-addresses/#findComment-777923 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.