// This file is not currently used in Swapware


put it at the top of the page before anything is sent to the browser

if(strpos($_SERVER['http_referer'],"blockeddomain.com")!==FALSE) {
                Header("Location: youareblocked.php");
                exit;
}