I\'m tring to embed a webpage in an iframe, but it doesn\'t work at all. internal pages with relative path are displayed normally. but this simple code doesn\'t work:
<
Suppose your url is www.google.com, i.e $url = "www.google.com";
$headerRes = get_headers($url); //get the header response
foreach($headerRes as $val)
if($val=="X-Frame-Options: SAMEORIGIN" || $val=="X-Frame-Options: DENY"){
header("location:".$url);
exit;
}
//simply redirect to their website instead of showing blank frame
I hope I explained myself good.