IP Blocker?
Can anyone write an extension that will look at a list of IP's and stop all logins from that IP?
I don't want it to just stop them, It would be fantastic if it could display a message on the login page whenever it is accessed from one of the denied IP. It needs to be quite obvious that the IP is blocked before they actually try and sign-in.
I don't want it to just stop them, It would be fantastic if it could display a message on the login page whenever it is accessed from one of the denied IP. It needs to be quite obvious that the IP is blocked before they actually try and sign-in.
0
This discussion has been closed.
Comments
/* grab the IP */ $ip = $_SERVER['REMOTE_ADDR'];/* block only the computer on 192.168.1.104 */ if ($ip == '192.168.1.104') { echo '<h1>B4NZ0R!</h1>'; exit(); }/* Blocks out the entire IP range for 192.168.xxx.xxx */ if (ereg ("(192).(168).([0-9]{1,3}).([0-9]{1,3})", $ip, $regs)) { /* Anyone on the range will receive this message */ echo '<h1>B4NZ0R!</h1>'; exit(); }a stupidly simple method, but it works...How odd, two v's look just like a w.