RankingsFactor
HTTP Security & Hardening

Security Headers Checker

Analyze HTTP response headers including HSTS, CSP, X-Frame-Options, and Referrer-Policy. Receive an instant letter grade and actionable remediation code.

Enter a domain (e.g. example.com) or full URL (e.g. https://example.com/page)
Quick test:

What are HTTP Security Headers?

When a browser requests a page from your server, the response contains invisible metadata headers alongside the HTML. Security headers tell modern browsers which defense layers to activate against common attacks such as Cross-Site Scripting (XSS), Clickjacking, packet sniffing, and insecure SSL downgrades.

How to Add Security Headers in Next.js

// next.config.ts

const securityHeaders = [
  { key: 'Strict-Transport-Security', value: 'max-age=31536000; includeSubDomains; preload' },
  { key: 'X-Frame-Options', value: 'SAMEORIGIN' },
  { key: 'X-Content-Type-Options', value: 'nosniff' },
  { key: 'Referrer-Policy', value: 'strict-origin-when-cross-origin' },
];

export default {
  async headers() {
    return [{ source: '/(.*)', headers: securityHeaders }];
  },
};

Frequently Asked Questions

Technical specifications, limitations, and SEO recommendations.

HTTP security headers are directives sent by a web server in response to a client's request. They instruct the browser on how to handle content safely, enforcing encryption, preventing Clickjacking, blocking Cross-Site Scripting (XSS), and restricting resource loading.

Related Free SEO Tools

Continue auditing your website signals with complimentary diagnostic utilities.

Full Search Intelligence Platform

Continuous security and crawl posture monitoring with RankingsFactor

RankingsFactor monitors your domain's HTTP status codes, security posture, redirect health, and indexability automatically on every crawl cycle.

Deep multi-page crawl • AEO answer engine tracking • Google Search Console sync