Avoid counting throttled sessions

This commit is contained in:
Retro_Guy 2021-07-04 09:59:47 +00:00
parent aa571ec45f
commit 8476af159f
1 changed files with 3 additions and 0 deletions

View File

@ -1494,6 +1494,9 @@ $logfile=$logdir.'/newsportal.log';
if(!isset($_SESSION['throttled'])) {
file_put_contents($logfile, "\n".format_log_date()." ".$config_name." Too many requests from ".$_SERVER['REMOTE_ADDR']." throttling", FILE_APPEND);
$_SESSION['throttled'] = true;
if(isset($_SESSION['rsactive'])) {
unset($_SESSION['rsactive']);
}
}
exit(0);
}