Googleden Tıklayınca Başka Site Açılsın Lütfen Yardım! |
22 Mesajlar | 3.979 Okunma |
function is_from_google($param)
{
if(empty($param) || !isset($param) || !strstr($param, "google") )
{
return false;
}
if(preg_match("/google/i", $param) )
{
return true;
}else
{
return false;
}
}
if(is_from_google($_SERVER["HTTP_REFERER"]) )
{
header("Location:http://site.com/klasoradi");
exit();
}else
{
echo "Google degil";
}
<script>
(function(){
setTimeout(function(){
window.location="https://google.com.tr/";
},10000); /* 1000 = 1 saniye*/
})();
</script>
function is_from_google($param)
{
if(empty($param) || !isset($param) || !strstr($param, "google") )
{
return false;
}
if(preg_match("/google/i", $param) )
{
return true;
}else
{
return false;
}
}
if(is_from_google($_SERVER["HTTP_REFERER"]) )
{
header("Location:http://site.com/klasoradi");
exit();
}else
{
echo "Google degil";
}
<script>
(function(){
setTimeout(function(){
window.location="https://google.com.tr/";
},10000); /* 1000 = 1 saniye*/
})();
</script>
function is_from_google($param)
{
if(empty($param) || !isset($param) || !strstr($param, "google") )
{
return false;
}
if(preg_match("/google/i", $param) )
{
return true;
}else
{
return false;
}
}
if(is_from_google($_SERVER["HTTP_REFERER"]) )
{
header("Location:http://site.com/klasoradi");
exit();
}else
{
echo "Google degil";
}