Website Security Check: Headers, Cookies & CSP
HTTP headers such as HSTS, CSP and X-Frame-Options close many common holes — clickjacking, XSS and cookie theft — without touching application code.
Security headers grade
Open the tool page →5 of 6 key headers are set correctly. A+ needs all six with no notes.
- ! Needs workContent-Security-Policy
default-src 'self'; script-src 'self' 'unsafe-inline' https://cdn.example.com; object-src 'none'· script-src allows 'unsafe-inline' without a nonce/hash, so injected XSS scripts still run.
· 3 warnings — review them in the CSP Header Generator.
- ! Needs workStrict-Transport-Security (HSTS)
max-age=15552000· max-age 15552000 seconds (< 1 year) — raise it to 31536000.
· Without includeSubDomains, subdomains can still be opened over HTTP.
- ✓ GoodClickjacking protection
SAMEORIGIN - ✓ GoodX-Content-Type-Options
nosniff - ! Needs workReferrer-Policy
no-referrer-when-downgrade· no-referrer-when-downgrade sends the full URL (path and query included) to other sites — use strict-origin-when-cross-origin.
- — MissingPermissions-Policy
- X-XSS-Protection: 1; mode=block — this legacy filter is gone from modern browsers and can introduce holes; send "0" or remove it.
- x-powered-by: PHP/8.1.2 — reveals the software version; hide it (e.g. server_tokens off).
The CSP value above is only a safe starting point; build one that fits your site with the CSP Header Generator.
Symptoms and what to check
- A security audit or pentest is coming → check the security-header grade first.
- Session cookies readable by JavaScript → make sure HttpOnly, Secure and SameSite are set.
- Loading scripts from a CDN → pin them with SRI hashes and restrict them with CSP.
More Web Security checks
- Cookie inspectoronlineSecure, HttpOnly and SameSite on every cookie.
- Content-Security-Policy builderBuild a strict CSP without breaking the site.
- Permissions-Policy builderLimit camera, microphone and other browser APIs.
- SRI hashPin CDN files with Subresource Integrity.
- Browser fingerprint testHow unique your browser looks to websites.
- Defang URLs & IOCsMake malicious links safe to share in reports.
What leaves your browser?
Checks labelled “online” send the value you check — a domain, IP or URL — to the service named on the tool's page (public DNS-over-HTTPS resolvers, RDAP, ipinfo.io, RIPEstat, or KalkuNet's fetch API, which blocks internal addresses). Checks labelled “in browser” send nothing. Privacy policy