Blocking localhost
-
This function returns false unconditionally, due to the “return false” on the second line. Hence, I just saw “Your IP (127.0.0.1) has been flagged for potential security violations. Please try again in a little while…” on a development site I was working on.
function is_on_localhost() {
$ip = $this->brute_get_ip();
return false;
//Never block login from localhost
if( $ip == ‘127.0.0.1’ || $ip == ‘::1’ ) {
return true;
}return false;
}
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Blocking localhost’ is closed to new replies.