Gbook page security question

Dr. GBooky is here to help you with your guestbook problems ...
Post Reply
cyberdyne
Posts: 7
Joined: Mon Nov 02, 2009 4:54 pm

Gbook page security question

Post 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.
Klemen
Site Admin
Posts: 10116
Joined: Fri Feb 11, 2005 4:04 pm

Post 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.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
cyberdyne
Posts: 7
Joined: Mon Nov 02, 2009 4:54 pm

Post by cyberdyne »

No problem, thank you for your reply.
Post Reply