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? Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/275366-ip-address-block/#findComment-1417214 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.