What is X-Frame-Options?
// short answer
An older security header that tells browsers whether other websites may show your pages inside a frame, protecting against clickjacking.
In plain English
X-Frame-Options controls whether your pages can be loaded inside a frame on another site. It is the classic defence against clickjacking.
DENY— nobody may frame your pages, including you.SAMEORIGIN— only your own site may frame them.
The modern replacement is the frame-ancestors directive in a Content Security Policy, which is more flexible and takes priority in browsers that support it. Sending both is a common belt-and-braces approach.
X-Frame-Options: SAMEORIGIN
Content-Security-Policy: frame-ancestors 'self'Why it matters to a small business
If your site has a login, checkout or booking flow, framing protection stops other sites from tricking your customers into clicking buttons they cannot see.
What to do
Add X-Frame-Options: SAMEORIGIN (or DENY) and frame-ancestors 'self'. If a partner genuinely needs to embed your pages, use frame-ancestors to name them specifically. Check it with the security headers checker.