Sure... add a variable in your index.php, name it for example $flag. Made $flag = "your flag word".
Then use:
PHP Code:
<?php
if ($flag == ""){
echo "You cannot access this page directly.";
exit;
}
?>
Thatīs it. In my prior post I said to write the variable on your config.php but that will be of not use, because if you write your variable there the script will not work, sorry for the mistake.
Regards,
Sergio.
__________________
"You can change the channels but you cannīt change the news."
Last edited by SergioC; 03-27-2005 at 04:42 PM..
|