Clickjacking Protection Tester

Paste your page's headers to see if other sites can frame it, try a live frame test of your own page, and copy the fix for nginx, Apache, IIS, Express or Vercel.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Get the headers

    Run curl -sI on your page or copy response headers from the Network tab.

  2. 2
    Paste and read the verdict

    Paste them on the Check tab and read the findings.

  3. 3
    Try the frame test

    Enter your page address and load it in the test frame, optionally with the decoy.

  4. 4
    Choose a policy

    On Build, pick nobody, your site only, or your site and partners.

  5. 5
    Copy the snippet

    Use the lines for your server, or merge into your existing CSP.

  6. 6
    Recheck

    Deploy, paste the new headers and confirm the verdict is Protected.

About this tool

Clickjacking, also called UI redressing, happens when another website loads your page in an invisible frame and places its own content on top. The visitor thinks they are clicking a harmless button, but the click lands on your page underneath: a delete button, a payment confirmation, a permission dialog or a social like. The defence is simple and lives entirely in HTTP response headers. Browsers refuse to show a page inside a frame on another site when the page sends Content-Security-Policy with a frame-ancestors directive, or the older X-Frame-Options header. The trouble is in the details. ALLOW-FROM looks like it works but is ignored by every current browser, a meta tag version does nothing, two conflicting header values can cancel each other, and a wildcard source gives no protection at all. This tester reads the headers you paste, explains exactly how browsers will treat them, lets you see the result in a live frame and writes the right lines for your server.

What the header check looks for

The analyzer reads every Content-Security-Policy header, including several policies in one header, and finds frame-ancestors. It recognises 'none', 'self', host sources with wildcards and ports, and flags sources that are not allowed in this directive, bare schemes like https: that allow every site, and plain http origins. It reads X-Frame-Options, accepting DENY and SAMEORIGIN, and reports ALLOW-FROM and invalid values as errors, along with conflicting duplicate headers. Because CSP frame-ancestors overrides X-Frame-Options in modern browsers, a weak CSP is not rescued by a strict X-Frame-Options, and the tool says so. Report-only policies, meta tag attempts and cookies sent with SameSite=None are also explained.

The live frame test

Enter the address of a page you own and the tool loads it in a sandboxed frame inside this page, straight from your site. If the page appears, it can be framed. If the browser shows a refusal message or an empty box, the protection works. A decoy mode places a button underneath and makes the frame partly transparent, so you can see how an attack would line up a click. The load event fires in both cases, so judge by what you see and confirm with the header check.

Building the fix

Choose who may frame the page: nobody, only your own site, or your site plus named partner origins. The tool writes the directive and complete snippets for raw HTTP, nginx, Apache, IIS web.config, Express, Netlify or Cloudflare Pages _headers files and vercel.json. If you already send a Content-Security-Policy, paste it and the tool merges frame-ancestors into it instead of adding a second header, which would be enforced separately.

Limits

The page does not fetch headers itself, because browsers do not let one site read another site's response headers. Paste them from curl or the developer tools. The live frame shows only what your browser does; very old browsers may differ. It does not test other defences such as SameSite cookies or confirmation dialogs, and you should only test pages you own.

Worked example

A developer pastes the headers of an account settings page: x-frame-options: ALLOW-FROM https://partner.example and a session cookie with SameSite=None. The tester reports Not protected, explains that ALLOW-FROM is ignored by Chrome, Edge, Safari and Firefox, and notes that the cookie is sent inside third-party frames. In the frame test the settings page appears inside the box, confirming the problem. On the Build tab she chooses My site and listed partners, enters https://portal.partner.example and pastes the existing policy default-src 'self'. The merged header becomes default-src 'self'; frame-ancestors 'self' https://portal.partner.example, and the nginx line is ready to copy. After deployment she pastes the new headers and the verdict changes to Protected for her own origin and the partner portal.

Quick facts

Frequently asked questions

Should I use X-Frame-Options or CSP frame-ancestors?

Use CSP frame-ancestors; it is the current standard and supports lists of allowed sites. Add X-Frame-Options DENY or SAMEORIGIN as a fallback only when you do not need an allow-list.

Why does ALLOW-FROM not work?

It was never widely supported, and Chrome, Safari, Edge and now Firefox ignore it. A page that relies on it can be framed by anyone. Replace it with frame-ancestors and the partner origin.

Can I set frame-ancestors in a meta tag?

No. Browsers ignore frame-ancestors, report-uri and sandbox when CSP is delivered in a meta element. It has to be an HTTP response header.

Why does my page show in the test frame even though I added the header?

The header may be missing on that exact URL, overwritten by a proxy or CDN, or only sent on some responses. Paste the real headers of that URL from curl -sI to check.

Does the frame test send my data anywhere?

Your browser requests your page directly from your own site, as when you visit it. Nothing passes through this site's servers.

Which pages need this protection?

Any page with actions a user can take while signed in: settings, payments, deletes, OAuth consent and admin screens. Setting it site-wide is simplest unless a page is meant to be embedded.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages