-2

Possible Duplicate:
How to Block Iframe call

I want my website not to be displayed in iframes.

How can I do it?

Community
  • 1
  • 1

1 Answers1

4

Add this to your htaccess or server config:

Header always append X-Frame-Options SAMEORIGIN

It will prevent (at least in browsers that support it) your site from being displayed inside another website's iFrame.

Jon Lin
  • 142,182
  • 29
  • 220
  • 220