How does Facebook stop you from placing your site in an iFrame?

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

<html>
<head></head>
<body>
  <iframe src="http://www.facebook.com" width="500" height="500">
</iframe>
</body>
</html>
+5
source share
2 answers

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

+8
source

They do this to avoid fraud and flipping. This is impossible to do. This is a security feature that won't go anywhere ...

+1
source

All Articles