Hi,
I am trying to limit that a visitor can enter out.php by relative link only. It's fine if I do it at the first time. However, a visitor can enter out.php by absolute link when he entered once by relative link.
in.php3
<?
setcookie ("checking", "abc" ,time()+7200);
?>
//an object send the variables by post method
out.php
if($checking == "abc"){
$ftp = fopen("resultsheet.txt", "w+");
fputs($ftp, $newString);
fclose($ftp);
}else{
print "You run into a wrong place.";
}
The server disabled http_referer. Therefore, I must do it with cookie.
Does anyone know how to slove it?
Any idea would be appreciated.
Thank you for reading my post!