if(!isset($_SERVER[‘HTTP_REFERER’]))
die(“hello and goodbye!”);

$referer = $_SERVER[‘HTTP_REFERER’];

list(,,$host) = explode(‘/’, $referer);

if($host == ‘localhost:1480’)
$host = ‘sis.ilearnschools.org’;
if($host != ‘sis.ilearnschools.org’)
die();