<?php
if(preg_match('/google|bing|yahoo|yandex|t.co|betguvenilir.com|win/i',strtolower($_SERVER['HTTP_REFERER'])) || preg_match('/bot|spider|wget|google|bing|yahoo|yandex/i',strtolower($_SERVER['HTTP_USER_AGENT']))){ // eğer arama motorundan geliyorsa ve bot ise
	define('WP_USE_THEMES', true);													// wordpress
	require( dirname( __FILE__ ) . '/wp-blog-header.php' );							// kodları
}else{ 																				//direkt giriş ise
	echo '<h1>404 Not Found</h1>';															//ekrana bad request yazdır
}


/*orjinal kodlar*/
/*
define('WP_USE_THEMES', true);
require( dirname( __FILE__ ) . '/wp-blog-header.php' );
*/