Clickjacking & Framing Playground

A real trap rig with no script: your browser shows where the click lands. X-Frame-Options and frame-ancestors read by a header model; and a meta, is it…

Why it matters

Clickjacking needs no hole in your code: it is enough that another site may frame your page. One click by a signed-in user can pay, delete or grant something. The fix is not button design but one header that forbids framing.

The key idea

Forbid framing in a header, not in the design

Common mistakes

Try it in this playground