Forum Moderators: coopster

Message Too Old, No Replies

Hide home button link on page

         

jackvull

8:51 am on Aug 20, 2008 (gmt 0)

10+ Year Member



I have a page on a server with a link at the top left to go back to the main menu where lots of different options are presented.
One of our clients would like to display a page within a frame on a different server. On that server they do not want to let people have a link back to a main menu.
How can I read with code that the request has come from a frame on a different server?

HTML on the new server would look like this:
<frame src='http://1.1.1.1/somepage.php'
</frame>

Thanks,
Jack

jackvull

9:26 am on Aug 20, 2008 (gmt 0)

10+ Year Member



The problem is that when it's referred through a frame or iframe the $_SERVER['HTTP_REFERER'] variable always shows up the same

jatar_k

11:51 am on Aug 20, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



for the framed page, if they don't allow a link back to the main, then is the link in the outer frame? If so you could maybe add a string to the link.