From 19dc33a836bf64a0efa4fca971b71089ff478828 Mon Sep 17 00:00:00 2001 From: wrongecho Date: Sat, 21 Sep 2024 13:08:30 +0100 Subject: [PATCH] Show a 429 header when logins are blocked --- login.php | 1 + 1 file changed, 1 insertion(+) diff --git a/login.php b/login.php index d1d41b213..09fa76762 100644 --- a/login.php +++ b/login.php @@ -39,6 +39,7 @@ mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login', log_action = 'Blocked', log_description = '$ip was blocked access to login due to IP lockout', log_ip = '$ip', log_user_agent = '$user_agent'"); // Inform user & quit processing page + header("HTTP/1.1 429 Too Many Requests"); exit("

$config_app_name

Your IP address has been blocked due to repeated failed login attempts. Please try again later.

This action has been logged."); }