Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does Facebook prevent you from putting the site into an iFrame?

The following code doesn't work. How does Facebook do this? Is there any way around it?

<html>
<head></head>
<body>
  <iframe src="http://www.facebook.com" width="500" height="500">
</iframe>
</body>
</html>
like image 781
Justin Avatar asked Jan 30 '12 23:01

Justin


1 Answers

This is because they have <meta http-equiv="X-Frame-Options" content="deny" /> in their source.

like image 168
The Real Baumann Avatar answered Nov 08 '22 17:11

The Real Baumann