

function respondToPostThreat($data) { // Keep existing time trap logic but only for actual threats $ip = $data['ip']; $uri = $data['uri']; $timestamp = date('Y-m-d H:i:s'); $date_prefix = date('Ymd'); $response_log = LOGS_BASE_DIR . '/' . $date_prefix . '-post-threat-responses.log'; file_put_contents($response_log, "[$timestamp] BLANK_TIME_TRAP - IP: $ip - URI: $uri - User-Agent: " . substr($data['user_agent'], 0, 100) . "\n", FILE_APPEND | LOCK_EX); http_response_code(404); header('Content-Type: text/html; charset=utf-8'); header('Cache-Control: no-cache, no-store, must-revalidate'); sleep(8); echo " "; ob_flush(); flush(); sleep(12); echo " "; ob_flush(); flush(); sleep(15); exit; }