X-Frame-Options Checker
Check whether a website sends an X-Frame-Options header to prevent clickjacking.
Enter a domain to check whether it sends an X-Frame-Options header.
More Security Tools
View all 10JustChecker monitors your security headers continuously and alerts you if any regress.
What Is X-Frame-Options?
The X-Frame-Options header controls whether other websites may show your page inside a frame. Blocking this prevents clickjacking, where attackers trick users into clicking hidden buttons on your site.
When to Use It
- For sites with logins, payments or account settings.
- During security reviews.
How to Use It
- Enter the domain.
- Check whether the header is present and its value.
Understanding the Result
DENY blocks all framing; SAMEORIGIN allows framing only by your own site. The modern equivalent is the CSP frame-ancestors directive, which browsers prefer when both exist.
Limitations
If your pages must be embedded by partner sites, use frame-ancestors with an allow-list instead of X-Frame-Options.
How Clickjacking Works
An attacker builds a page with an enticing button, then loads your site in an invisible frame on top of it. The visitor thinks they are clicking the attacker's button but actually clicks "Delete account" or "Transfer" on your site, where they are logged in. Blocking framing stops this.
How to Set It
# Nginx
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy "frame-ancestors 'self'" always;
# Apache
Header always set X-Frame-Options "SAMEORIGIN"
Sending both covers older browsers (X-Frame-Options) and modern ones (frame-ancestors).
Which Value to Choose
| Situation | Setting |
|---|---|
| Your pages are never framed | DENY / frame-ancestors 'none' |
| Your own site frames its pages | SAMEORIGIN / frame-ancestors 'self' |
| Partners must embed your widget | frame-ancestors 'self' https://partner.example |
The old ALLOW-FROM value is not supported by modern browsers - use frame-ancestors instead. Check the rest of your headers with the Security Headers Checker.
Frequently Asked Questions
Explore More Tools
Keep going with related categories and our most used tools.