This is my code from frame.php
<FRAMESET rows="20, 200" FRAMEBORDER=NO FRAMESPACING=0 BORDER=0>
<FRAME src="menu1.html">
<FRAME src="test1.php">
</FRAMESET>
I am wondering if there's a way to block people from going to "test1.php" directly?
I want people to stay on frame.php and if people try to go to " test1.php " directly, it will give you error. Is there such a way or code?
Before coming to this "frame.php" page, my user needs to login.
I am a newbie and I am trying to move things around from user authenticate and config pages, but don't think anything is working for me.
I include user authenticate and config pages in "menu1.html". This section shows something like " welcome username | logoff | the rests of the menus ". When people sign-in, they can access "frame.php including test1.php"
I found this, but not really sure how to use it. What code do i put in the " proceed " area? Also, should I put " logoff.php " after else?
if ($_SERVER['HTTP_REFERER'] == 'http://mysite.com/downloadlist.php') {
//proceed
} else {
//kick user out
}
Thank you very much.