Free Frame Security Policy Checker
Validates CSP frame-ancestors and X-Frame-Options headers to block clickjacking and UI redress attacks, with copy-paste fixes for Nginx, Apache, and Express.
- Frame-ancestors policy
- Embedding rules
- Clickjacking safety

What you get for free
18 core security checks via this tool, passive scans, step-by-step remediation, security score on every result.
What Essential adds at $39/mo
+17 advanced checks, continuous monitoring, daily security score history, email alerts, GitHub SAST, board-ready PDFs, SOC 2 / ISO 27001 / PCI reports.
How to set a safe policy
- Prefer:
frame-ancestors 'none'unless embedding is required - If partners must embed, list exact origins and review regularly
- Remove X‑Frame‑Options once CSP coverage is consistent to avoid conflicts
What is a frame security policy?
Frame security is enforced via the CSP frame-ancestors directive (or legacy X-Frame-Options). It defines which origins can embed your pages in iframes - critical to preventing clickjacking and UI redress attacks.
What this checker validates
- Presence and syntax of
frame-ancestors - Conflicts with X‑Frame‑Options and missing coverage
- Overly broad allowances (e.g., *) and safer alternatives
Across 7,440 recent scans, 59.0% have no X-Frame-Options or CSP frame-ancestors directive set. Clickjacking protection is rarely enforced.
Implementation examples
Once you've identified the gap, applying the fix is straightforward. Here are the three configurations developers reach for most often.
Nginx
add_header Content-Security-Policy "frame-ancestors 'none';" always;
add_header X-Frame-Options "DENY" always;Apache
Header always set Content-Security-Policy "frame-ancestors 'none';"
Header always set X-Frame-Options "DENY"Node.js (Express + Helmet)
import helmet from "helmet"
app.use(
helmet({
contentSecurityPolicy: {
directives: { frameAncestors: ["'none'"] },
},
frameguard: { action: "deny" },
}),
)Tool-specific questions
Is X-Frame-Options enough?
Can I allow only a subpath?
Built for the engineers who already have enough to fix.
Real-time results
Comprehensive checks
Step-by-step fixes
More free checks, for the rest of your surface.
Complete Security Scan
Pre-Pentest Security Scan
Security Compliance Checker
WAF Checker
Security Headers Test
TLS/SSL Security Checker
Go deeper on the same topic.
Clickjacking Protection
Missing X Frame Options
Security Headers Guide
Frequently asked.
What is Barrion and how does it enhance website security?
How safe is Barrion to use for security testing?
What types of security issues does Barrion identify?
What specific security checks does Barrion perform?
What is Barrion's smart crawling?
How often does Barrion perform security scans?
Is Barrion suitable for security testing of all business sizes?
How does Barrion handle data security and privacy during security testing?
What if I'm not satisfied with Barrion's security testing service?
How does Barrion help with SOC 2, ISO 27001, NIS2, and other compliance frameworks?
Anything else? Email contact@barrion.io.
Run a full report on your site.
Free first scan covers every check, no signup needed. Sign up to save the report and turn on continuous monitoring.