Website Security Check
Scan a website for the basics: HTTP to HTTPS redirect, HSTS, security headers like CSP and X-Frame-Options, cookie flags, and an exposed server or CMS version. Read only, nothing is attacked.
No account needed. One normal request to the site, like a browser makes. Nothing you check is saved.
How to use this tool
- Enter the website address.
- The tool loads the home page once, like a browser, and reads the response headers.
- Fix problems first, then warnings. Each row says which header to add.
Headers worth adding
Strict-Transport-Security stops downgrade to http. Content-Security-Policy limits where scripts can load from, the main defense against injected scripts. X-Content-Type-Options: nosniff and Referrer-Policy are one line each.
Building a CSP by hand is the hard one. Use the CSP generator, and start in report only mode.
The headers in order of effort
One line each: X-Content-Type-Options: nosniff, Referrer-Policy: strict-origin-when-cross-origin, X-Frame-Options: SAMEORIGIN. Add these first.
HSTS next, once every subdomain you use works on HTTPS. Start with max-age=86400, raise to a year later.
CSP last, it takes testing. Ship it as Content-Security-Policy-Report-Only first and watch what it would block.
Website security headers guide
What are HTTP security headers?
Headers the server sends with every page that tell the browser to switch on protections: stay on https, block the page from being framed, do not guess file types, limit where scripts load from. They cost nothing and stop whole classes of attacks.
How to check security headers of a website
Type the address above. The tool loads the home page once and lists each header, present or missing, with what to add. From a terminal: curl -sI https://example.com shows all response headers.
HSTS header (Strict-Transport-Security)
Tells browsers to use https only for this site, for a set time. Example: Strict-Transport-Security: max-age=31536000; includeSubDomains. Start with a short max-age, add includeSubDomains only when every subdomain has https, and only add preload if you are sure, it is hard to undo.
Content Security Policy (CSP) header
Lists where scripts, styles, images and frames may load from. A good CSP stops most injected scripts. Start with Content-Security-Policy-Report-Only, watch the console for what would break, then switch to enforcing. Build it with the CSP generator.
X-Frame-Options and frame-ancestors
X-Frame-Options: SAMEORIGIN stops other sites from showing your pages in a frame, which blocks clickjacking. The modern version is frame-ancestors 'self' inside CSP. Sending both is fine.
X-Content-Type-Options, Referrer-Policy and Permissions-Policy
X-Content-Type-Options: nosniff stops browsers from treating files as a different type. Referrer-Policy: strict-origin-when-cross-origin keeps full URLs from leaking to other sites. Permissions-Policy turns off features you do not use, like camera and geolocation.
How to add security headers in nginx, Apache and WordPress
nginx: add_header X-Content-Type-Options "nosniff" always; in the server block. Apache: Header always set X-Content-Type-Options "nosniff" in .htaccess or the vhost. WordPress: a security plugin or the hosting panel, or the same lines in .htaccess on Apache hosts. Cloudflare: Transform Rules can add response headers.
Secure cookie flags: Secure, HttpOnly, SameSite
Session cookies should carry Secure (https only), HttpOnly (not readable by JavaScript) and SameSite=Lax or Strict. The scan flags cookies set without them.
Server version and CMS version leaks
Headers like Server: Apache/2.4.41 or X-Powered-By: PHP/7.4 tell attackers which exploits to try. Hide them: server_tokens off; in nginx, ServerTokens Prod in Apache, expose_php = Off in php.ini.
Is this a full website security scan?
No. It checks headers, https setup and what the server reveals. It does not test for SQL injection, outdated plugins or weak passwords. Treat it as the quick baseline every site should pass.
HTTP to HTTPS redirect check
Visiting http://example.com should return a 301 redirect to https://, ideally in one step to the final address. Chains like http to https to www to https www slow the first visit. The scan follows the redirect and flags missing or chained ones.
Security headers grade: what A+ needs
Most graders want HSTS, CSP, X-Frame-Options or frame-ancestors, X-Content-Type-Options, Referrer-Policy and Permissions-Policy. The hardest is a CSP without unsafe-inline. A site with all the one line headers and HSTS already beats most of the web.
Security headers for WordPress
Many WordPress hosts let you add headers in the panel. Otherwise add them in .htaccess on Apache or LiteSpeed hosts. Be careful with CSP on WordPress: plugins and page builders load scripts from many places, so start in report only mode.
Security headers on Cloudflare
Cloudflare can add response headers with Transform Rules, and set HSTS in SSL/TLS, Edge Certificates. Headers set at the origin pass through too, check the result here after any change.
Permissions-Policy header example
Permissions-Policy: camera=(), microphone=(), geolocation=(), payment=() turns those features off for your pages and any embedded frames. Allow only what your site needs.
X-XSS-Protection: should I still use it?
No. Browsers removed that filter and the header can cause problems in old ones. Use a Content Security Policy instead. Set X-XSS-Protection: 0 or leave it out.
Check a site for an outdated CMS or server
The scan reports versions the site reveals in headers and the generator tag. If it shows an old PHP, WordPress or server version, updating is the fix, hiding the version is only a small extra.
Website security checklist beyond headers
Updates for the CMS, plugins and server, strong admin passwords with two step login, regular off site backups, a web application firewall if you can, and removing old plugins and test sites you no longer use.
Content Security Policy example for a simple site
default-src 'self'; img-src 'self' data:; script-src 'self'; style-src 'self' 'unsafe-inline'; frame-ancestors 'self'; base-uri 'self'; form-action 'self'. Add the domains of analytics, fonts or a CDN you use. Report only mode first.
Security headers for an API
APIs need fewer browser headers but should send X-Content-Type-Options: nosniff, a strict CORS policy (only the origins you trust), Cache-Control: no-store on private data, and HSTS.
How often to scan security headers
After every server, CDN or plugin change, since any of them can drop headers silently. A quick scan here takes seconds.
Referrer-Policy values explained
no-referrer sends nothing. same-origin sends the full URL only to your own site. strict-origin-when-cross-origin (the browser default now) sends the full URL to your site and only the domain to others, never over http. That last one is the right choice for most sites, it keeps analytics working without leaking private paths or tokens in URLs.
Set it once at the server level so every page gets it.
Security headers checker vs SSL checker
This page checks what the server sends with each page. The SSL checker checks the certificate, chain and TLS versions. Run both after a server move, they catch different mistakes.
Frequently asked questions
Is this a penetration test?
No. It makes one normal request and reads the headers. It does not probe or attack anything.
My WordPress version shows
The generator meta tag gives it away. Remove it and keep WordPress updated, the version alone is not a hole but it helps attackers pick one.
Is it safe to add HSTS?
Only once HTTPS works on every subdomain you use. Start with a short max-age.
Related tools
- CSP generator: build the hardest header
- SSL checker: the certificate side
- htaccess redirect generator: force https on Apache