Header Security
X-Frame-Options Header Check
Learn how the X-Frame-Options header prevents your site from being embedded in malicious iframes and protects your users against clickjacking attacks.
What this test checks
This test checks for the presence and configuration of the X-Frame-Options header. It prevents your site from being embedded in an iframe on a third‑party site, protecting your users against clickjacking attacks where an attacker overlays invisible elements on your site to trick the user.
Our recommendation
Configure your server to add the X-Frame-Options header with the value 'SAMEORIGIN' to allow embedding only from your own domain. Example Apache: 'Header always append X-Frame-Options SAMEORIGIN'. For Nginx: 'add_header X-Frame-Options SAMEORIGIN'. Avoid 'ALLOW-FROM' which is obsolete.
Security tests