X-Frame-Options
Controls whether a page can be displayed in a frame or iframe, protecting against clickjacking attacks.
Syntax
X-Frame-Options: DENY | SAMEORIGIN
Example
X-Frame-Options: SAMEORIGIN
Description
The X-Frame-Options header controls whether a browser can render a page in <frame>, <iframe>, <embed>, or <object>. Key defense against clickjacking.
Values: DENY (no framing), SAMEORIGIN (same-origin only), ALLOW-FROM uri (deprecated).
The modern replacement is frame-ancestors in Content-Security-Policy. For maximum compatibility, use both headers.
How real sites send this header
Home-page responses of 502 popular sites from the enterno.io /check catalogue, checked in the last 30 days.
52.4%
(263 of 502) send X-Frame-Options.
Most common values:
SAMEORIGIN— 208 sitesDENY— 47 sitesallow-from https://www.freshworks.com— 2 sites
See it on: google.com, discord.com, github.com, cloudflare.com, habr.com
Check if your website sends this header correctly
Check your headers →