OTrap
Elite Member
- Jul 12, 2008
- 2,314
- 1,064
I currently have a setup for page2.php that looks something like this:
My understanding is that this means that unless a page is framed by http://www.website.com/randompage.html, it will show "Page 2."
However, it appears that if you use Chrome, and you go to http://www.website.com/randompage.html, find the source code, and find the framed page, and then they go to "view-source: http://www.website.com/page2.php," it will still show the "Page 1" source code.
Is there any way to side-step that?
Thanks.
Code:
<?
$referer = $_SERVER['HTTP_REFERER'];
if ( top != self && $referer == "http://www.website.com/randompage.html") {
echo "Page 1";
echo "$referer";
} else {
echo "Page 2";
echo "$referer";
}
?>
My understanding is that this means that unless a page is framed by http://www.website.com/randompage.html, it will show "Page 2."
However, it appears that if you use Chrome, and you go to http://www.website.com/randompage.html, find the source code, and find the framed page, and then they go to "view-source: http://www.website.com/page2.php," it will still show the "Page 1" source code.
Is there any way to side-step that?
Thanks.
Last edited: