add_action( 'init', 'process_referer' );
function process_referer() {
global $_SERVER;
$ref = $_SERVER['HTTP_REFERER'];
$ref_parca = parse_url($ref);
$ref_gelen = $ref_parca['host'];
if(strstr(strtolower($ref_gelen), "google.com"))
{
wp_die( 'Girişiniz Yasaklanmıştır!' );
}
}temanızın functions.php'sine eklemeniz yeterlidir
google.com yazan yere girmesini istemediğiniz domainin adını yazmanız yeterlidir.