How to redirect if not from $_SERVER['HTTP_REFERER']?
<pre><code>&lt;?PHP
if (ereg("www\.test", $_SERVER['HTTP_REFERER']) != true)
{
    header("location http://www.example.com");
    end;
}
    echo "111";
        //dosomting?
?&gt;
</code></pre>

<p>It still not working </p>
