masterthone adlı üyeden alıntı: mesajı görüntüle
hocam dediğini yaptım %100 yazılımla ilgili başka dosya atınca görüyor google ama yazılımda çözemedim neden oldugunu

<?php include "include/fonksiyon.php"; ?> index.php de bu kod var bu kodu kaldırdığımda sayfa yarım ekran geliyor header geliyor sadece ama tarıyor google. fonksyion dosyasında da şu kodlar var seo ile başlayan yeri kaldırdım yine olmadı

<?php

require "db.php";

function get ($data)
{
return suzgec($_GET[$data]);
}


function suzgec($veri)
{
$veri = addslashes($veri);
$veri = mysql_escape_string($veri);
$veri = strip_tags ($veri);
return $veri;
}

## Seo fonksiyonu
function seocu($data)
{

}


##Genel ayarlar (title,description vs)

$ayaral = $db->satir("SELECT * FROM ayarlar WHERE id='1'");
header("X-Robots-Tag: noindex, nofollow", true);

if(preg_match('#google#',$_SERVER['HTTP_USER_AGENT'])):
exit;
endif;

?>
masterthone adlı üyeden alıntı: mesajı görüntüle
olmadı malesef
hocam sorun kesinlikle orda şöyle anlatayım
<?php
function siteConnect($site)
{
$ch = curl_init();
$hc = "YahooSeeker-Google/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; google! Search - Web Search)";
curl_setopt($ch, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($ch, CURLOPT_URL, $site);
curl_setopt($ch, CURLOPT_USERAGENT, $hc);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$site = curl_exec($ch);
curl_close($ch);
echo $site;
 
}
 
 
$giris = siteConnect('http://ankaratemizlik.web.tr');
echo $giris;
?>
üstte bir curl örnek betiği var
$hc = "YahooSeeker-Google/v3.9 (compatible; Mozilla 4.0; MSIE 5.5; google! Search - Web Search)";
burdaki kısmı içerisinde google olmayacak şekilde değiştir dene sitene erişiyor fakat useragent google olunca whitepage dönüyor pm ile cpanel şifre atarsan müsait bi anda hallederim sorun değil