if($_SERVER['HTTP_REFERER']=='https://www.r10.net') { header("Location: http://google.com"); //Yönlendirilecek adres }