How to check security headers
- Enter the full URL of the page, including
https://. - Press Run check.
- Review each header. Missing ones are marked Not present.
The URL you enter is sent to the WP Sekar Tools backend on Cloudflare, which makes the request for you. Only public websites can be checked. Private IP addresses, local hostnames and non-standard ports are refused.
The headers checked, and what they do
Strict-Transport-Security (HSTS) tells browsers to use HTTPS for your domain for a set time, even if someone types http:// or clicks an old link. A typical value is max-age=31536000; includeSubDomains, which is one year. Add it only once HTTPS works everywhere on the domain, because browsers will refuse plain HTTP until it expires.
Content-Security-Policy (CSP) lists which sources may load scripts, styles, images and other resources. A good policy greatly limits the damage of a cross-site scripting attack. It is also the hardest header to get right on WordPress, since themes and plugins load files from many places.
X-Frame-Options stops other sites from showing your pages in a frame, which protects against clickjacking. Use SAMEORIGIN on most WordPress sites, because the block editor and the customizer use frames on your own domain. The modern equivalent is the CSP frame-ancestors directive.
X-Content-Type-Options should be nosniff. It stops browsers from guessing file types, which closes off a class of attacks. It is easy and safe to add.
Referrer-Policy controls how much of the page address is shared when visitors click a link to another site. strict-origin-when-cross-origin is a sensible default. It shares only the domain with other sites and keeps analytics working.
Permissions-Policy turns off browser features you do not use, such as the camera, microphone or location. An example is camera=(), microphone=(), geolocation=().
Cross-Origin-Opener-Policy (COOP) keeps your page in its own browsing context so pop-ups from other sites cannot interact with it. same-origin is the strict setting, but it can break login or payment pop-ups. same-origin-allow-popups is the safer choice in that case.
Presence is not a grade
This tool reports whether each header exists and shows its value. It does not score them. A CSP that allows 'unsafe-inline' and every domain is present but does little. A missing COOP header on a simple blog is a low risk. Read the values, not only the "present" or "not present" labels.
Adding security headers to a WordPress site
Pick one method so headers are not sent twice:
- Your host or CDN. Cloudflare, for example, can add headers with Transform Rules, and some managed WordPress hosts have a setting for HSTS.
.htaccesson Apache or LiteSpeed, usingHeader always setlines inside an<IfModule mod_headers.c>block.- A security plugin that offers a headers section.
Start with the low-risk ones: X-Content-Type-Options, Referrer-Policy, X-Frame-Options and Permissions-Policy. Add HSTS once you are sure about HTTPS. Introduce CSP last, ideally in report-only mode first, so you can see what it would block before it breaks anything.
Headers are one layer of defence. Updates, strong passwords and a firewall matter more. The best WordPress security plugins guide on WPSekar.com covers the rest.
Frequently asked questions
Are security headers a ranking factor?
Not directly. HTTPS is a light ranking signal, and HSTS supports it, but the main benefit is protecting visitors.
Why is X-XSS-Protection not checked?
Modern browsers have removed the feature it controlled, so it no longer adds protection.