ClickJack Test
Test your website for clickjacking vulnerabilities
Enter a URL above to check for X-Frame-Options and CSP frame-ancestors headers.
What is clickjacking?
Clickjacking is an attack where a site tricks a user into clicking something they did not intend to. An attacker loads your page inside a transparent iframe layered over their own site. The user sees the attacker's page -- but their clicks land on yours.
Two HTTP response headers prevent this. A site needs at least one of them to be protected:
- X-Frame-Options -- set to
DENY(block all embedding) orSAMEORIGIN(allow only your own domain). TheALLOW-FROMdirective is obsolete and causes modern browsers to ignore the entire header. - Content-Security-Policy: frame-ancestors -- the modern approach. Use
frame-ancestors 'none'(equivalent to DENY) orframe-ancestors 'self'(equivalent to SAMEORIGIN). Unlike most CSP directives,frame-ancestorsdoes not fall back todefault-src. Supported in all browsers since 2018.
This tool requests your URL and checks whether either header is present with a restrictive value. It starts with HEAD and retries with GET when HEAD is rejected or omits framing headers, because some servers attach those headers only to GET. It does not test JavaScript-based frame-busting scripts, which are easily bypassed. A “Protected” result means your server returned a valid defense header. “Vulnerable” means neither was detected -- add one.
X-Frame-Options: the definitive reference -- every directive, browser support table, and the CSP replacement.
CSP frame-ancestors: the definitive reference -- syntax, the wildcard gotcha, how it differs from X-Frame-Options, and why meta tags won't work.
Setup guides by stack -- step-by-step instructions for NGINX, Apache, Cloudflare, Next.js, WordPress, and more.
X-Frame-Options vs CSP frame-ancestors: the sharp edges -- ALLOW-FROM nullification, default-src gotcha, meta tags, and ancestor chain checking.
DoubleClickjacking: the attack that bypasses all framing protections -- how window.opener.location swaps defeat X-Frame-Options, CSP, and SameSite cookies.
Scanner says “missing anti-clickjacking header”? -- what ZAP, Nessus, Burp, and Qualys alerts mean and how to fix them.