<?php
$validateServer=false;
function validateServer()
{
global $validateServer;
$yourHostingDomain = "
www.mydomain.org";
if(strstr($_SERVER["HTTP_R
EFERER"], $yourHostingDomain) )
$validateServer = true;
else
$validateServer = false;
}
validateServer();
if($validateServer)
{}
else
{
header("Location:
http://www.mydomain.com");
}
?>