Page 1 of 1

Gbook page security question

Posted: Mon Nov 30, 2009 11:34 pm
by cyberdyne
I have my guestbook in an iFrame.

Is there a way to prevent the calling of the gbook.php file directly if not navigated to from the page it is contained within?

ie: allow gbook.php if called from page.html but not permit its' loading if called directly from, eg: domain.com/gbook/gbook.php

Maybe using the isset function?

Any pointers greatly appreciated.
Thank you.

Posted: Tue Dec 01, 2009 4:14 pm
by Klemen
If a page is accessible from an iframe it is also accessible directly in the browser. I don't know of any way to prevent that.

Posted: Tue Dec 01, 2009 4:20 pm
by cyberdyne
No problem, thank you for your reply.