The big picture
Clickjacking is one of the oldest tricks in the book. And it still works on thousands of websites.
Your site can be loaded inside an invisible iframe on a malicious page. Users think they are clicking one thing, but they are actually clicking your site.
Why it matters
Attackers use this to:
- Trick users into clicking ads they did not intend to click
- Get users to authorize OAuth applications they did not mean to authorize
- Steal credentials through fake login forms overlaid on your real login form
If your site has any user actions (buttons, forms, links), you are a target.
The fix
Wondering if your site has this issue?
VibeSec runs a full 4-phase security assessment and gives you fix prompts you can paste into Claude or Cursor. $199/mo for unlimited scans.
Get Your Free AssessmentAdd this header to your responses:
X-Frame-Options: DENY
That is it. One line. Your site cannot be embedded in iframes anywhere.
For more flexibility
If you need to allow embedding from specific domains:
X-Frame-Options: SAMEORIGIN
This allows embedding only from your own domain.
How to test
Run this in your terminal:
curl -I https://yoursite.com | grep -i "x-frame-options"
If you see nothing, you are vulnerable.
The bottom line
This takes 5 minutes to fix. There is no reason to skip it.
Add the header today.