e-hadi.net adlı üyeden alıntı: mesajı görüntüle
once
tag1.php diye bir dosya olustur. www anadizine at.

tag1.php kodları
<?
function parcala($a) {
preg_match('@^(?:http://)?([^/]+)@i',
    "$a", $matches);
$t = $matches[1];
preg_match('/[^.]+\.[^.]+$/', $t, $matches2);
$a =$matches2[0];
return $a; }

$gelen = parcala($_SERVER['HTTP_REFERER']);
$google="google.com";
if($gelen==$google) {
header('Location: http://www.seninsite.com/index.php');
}
?>
.htaccess deki /tag denk gelen php dosyasının adını tag1.php olarak degistir
sorun hal olacaktır.
bu şekilde /tag dizinine gelen her isteği yönlendirecektir. Arkadaş etiket yoksa yönlendirilsin istemiş. Bu koda ek olarak htaaccess dosyasında ErrorDocument 404 satırını şu şekilde değiştir:

ErrorDocument 404 /tag1.php

eğer böyle bir satır bulamazsan ekle : )