Jump to content

How to detect the parent of an iframe?


etrader

Recommended Posts

It should be something like agent and getting information about visitors. When my script is accessed through an iframe (here facebook) there should be a difference with the case that the page is directly accessed. I think in the iframe case, facebook is accessing my page, and I should be able to detect facebook as a something like agent.

Except, Facebook isn't an agent, and aside from REQUEST_URI, there isn't anything available to you that could help.  Even then, REQUEST_URI may not be reliable.  The only sure-fire way to detect if you've been framed is to use JavaScript.

 

http://www.php.net/manual/en/reserved.variables.server.php

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.