Restricting IFRAME access in PHP
Posted
by m0j0
on Stack Overflow
See other posts from Stack Overflow
or by m0j0
Published on 2008-10-28T21:32:29Z
Indexed on
2010/04/03
23:23 UTC
Read the original article
Hit count: 145
I am creating a small web page using PHP that will be accessed as an IFRAME from a couple of sites. I'm wanting to restrict access to this site to work ONLY within the "approved" sites, and not other sites or accessed directly. Does anyone have any suggestions? Is this even possible? The PHP site will be Apache, and the sites iframing the content will probably be .NET.
Just to clarify, any site can view the page, as long as it's iframe'd within an approved site. I want to block people from accessing it directly. I'm thinking cookies might be a solution, but I'm not sure.
© Stack Overflow or respective owner