<?php
$ref=@$HTTP_REFERER;
if($ref=='http://istenmeyen.site.com')
{
su islem;
}
else{
bu islem;
}

?>

olabilir