bledileka
Programmer
- Nov 15, 2006
- 16
Hi people !
I tried to secure one page with http_referer. this is wot i did actualy :
<?php $kot = $_SERVER ["HTTP_REFERER"];
if ($kot == "page1.php")
{
echo "do some stuff";
} else {
echo "<a href=\"java script:window.close()\"><font color=\"#000000\">Close The Window !</font></a> ";
}
?>
Im not sure this is the right way but this is wot i thought can work.
Im havin problems with browsers. Its not workin with IE. With Mozilla works perfectly but in IE it just gives me Close the Window.
Can anybody help me on this ?
thnx.
I tried to secure one page with http_referer. this is wot i did actualy :
<?php $kot = $_SERVER ["HTTP_REFERER"];
if ($kot == "page1.php")
{
echo "do some stuff";
} else {
echo "<a href=\"java script:window.close()\"><font color=\"#000000\">Close The Window !</font></a> ";
}
?>
Im not sure this is the right way but this is wot i thought can work.
Im havin problems with browsers. Its not workin with IE. With Mozilla works perfectly but in IE it just gives me Close the Window.
Can anybody help me on this ?
thnx.