|
|
@@ -78,12 +78,15 @@ class blacklist {
|
|
|
echo "Votre IP est : " . $ip . ". Nombre de tentatives récentes : " . (count($recent_attempts) + 1);
|
|
|
exit();
|
|
|
}
|
|
|
+ } else {
|
|
|
+ echo json_encode(["Error 404"]);
|
|
|
+ exit();
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public static function itIs(){ // Est-il blacklisté
|
|
|
$ip = $_SERVER['REMOTE_ADDR'];
|
|
|
- if(!self::checkBlacklist($ip)){
|
|
|
+ if(self::checkBlacklist($ip)){
|
|
|
echo "Votre IP (" . $ip . ") a été blacklistée pour trop de tentatives.";
|
|
|
exit();
|
|
|
}
|