if($_SERVER["HTTP_REFERER"] == 'http://site.com/show.php?t=8598'){
echo "Yasak";
die;
{

Bunun çalışması lazım.