$validreferer = "http://www.domain.com/index.php";
if (("$HTTP_REFERER") == $validreferer)
{ echo("i m in"); }
else
{ echo("Fail"); }
when i check the above page by clicking a link on the valid referer, it works for Netscape but fails in IE
any Ideas
thanks in advance
kalyan
So echo the value of $HTTP_REFERER in IE to see what it sends.
Seemed to work just fine for me.
I've noticed that sometimes IE will add a trailing control character (can't remember which one) which trim() should be able to remove.
Or, use eregi() to find $validreferer in $HTTP_REFERER
-Rich