Skip to content

Security Metrics

PerfLeaf checks each page for common web security best practices during every scan.

CheckDescription
HTTPSWhether the page is served over a secure connection
Mixed contentWhether any HTTP resources are loaded on an HTTPS page
CSPWhether a Content-Security-Policy header is present and configured
HSTSWhether Strict-Transport-Security is set
X-Content-Type-OptionsWhether nosniff is set to prevent MIME-type sniffing
X-Frame-OptionsWhether clickjacking protection is in place
Referrer-PolicyWhether a referrer policy is configured

The Security Metrics card in the Site Report shows the overall security posture. Each check is shown as a pass/fail indicator.

At the page level, the Page Report shows per-page security results, which can differ across pages if your server configuration varies.

Security is one of the six Performance Score categories. Each missing or misconfigured header reduces the security score.

IssueFix
Not using HTTPSObtain a TLS certificate (e.g. Let’s Encrypt) and redirect all HTTP to HTTPS
Missing CSPAdd a Content-Security-Policy header to your server or CDN configuration
Missing HSTSAdd Strict-Transport-Security: max-age=31536000; includeSubDomains
Missing X-Frame-OptionsAdd X-Frame-Options: DENY or SAMEORIGIN
Missing X-Content-Type-OptionsAdd X-Content-Type-Options: nosniff
Missing Referrer-PolicyAdd Referrer-Policy: strict-origin-when-cross-origin