<?php
if(isset($_GET['ref'])){
header("Location: index.php");
die();
}
?>

örnek bağlantı gönderirmisin hocam