user4013347
user4013347

Reputation:

How do you block your site from iframes?

I've been wondering. A while ago, I was messing with I-Frames when I discover that some websites could not be displayed within I-Frames. So? How do you do it?

Upvotes: 0

Views: 111

Answers (1)

Fernando Carvalhosa
Fernando Carvalhosa

Reputation: 1107

Duplicate?

You can use HTTP Header Field X-Frame-Options:

<meta http-equiv="X-Frame-Options" content="deny">

Upvotes: 1

Related Questions