mostafatalebi Posted March 7, 2013 Share Posted March 7, 2013 I need to block ip addresses when they enter their user and pass wrongly for 5 times. Is using $_SERVER["REMOTE_ADDR"] enough to handle it? Link to comment https://forums.phpfreaks.com/topic/275366-ip-address-block/ Share on other sites More sharing options...
Lyleyboy Posted March 7, 2013 Share Posted March 7, 2013 I don't see why it couldn't work using $_SERVER['REMOTE_ADDR'] I'm maybe store an array in a session with a count. Link to comment https://forums.phpfreaks.com/topic/275366-ip-address-block/#findComment-1417206 Share on other sites More sharing options...
mostafatalebi Posted March 7, 2013 Author Share Posted March 7, 2013 I do the same counting. But this counting must have an identifier to work properly. That identifier couldn't be $_SESSION['username'], but has to be an IP Address Link to comment https://forums.phpfreaks.com/topic/275366-ip-address-block/#findComment-1417214 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.