Skip to content

Website security checklist: 24 rules for HTTPS and security headers

Many company websites carry sign-in, a customer area and contact forms. These rules cover HTTPS and the TLS certificate, security headers such as CSP and HSTS, cookies, forms and password fields, plus exposed credentials and suspicious code. Most of them concern the security of your visitors and data, not Google Search.

Check HTTPS and the certificate first: they are the only two rules here that Google's Search documentation backs, and an invalid certificate makes the connection fail before the page loads. Password pages and exposed credentials come next. Many header rules compare the site with a policy you set yourself; without that policy, the result stays open.

24 rules22 run dailyGoogle evidence checked on

Partly backed2 · 8%
Google backs part of the rule. The rest goes further or is narrower.
Outside Google Search22 · 92%
It concerns accessibility, security, law or users, not Google Search.

Security 24

Partly backedRuns daily

Every public page is served over HTTPS

Check
Looks at the final URL after all redirects. Fails when the document is served there over HTTP instead of HTTPS.
Fix
Serve the page through correctly configured HTTPS so that its final URL uses the HTTPS scheme as well.
Google
Google's Search documentation on page experience asks whether pages are served securely. That backs HTTPS in general; this rule is narrower and checks only the scheme of the final URL, not the certificate.

security.document-served-httpsRevision 1changed

Partly backedRuns daily

The TLS certificate is valid for the requested hostname

Check
Opens a fresh TLS connection with standard certificate verification, including supported hostname aliases. Fails when verification rejects the chain, the hostname match or the validity period.
Fix
Install a current certificate with its full chain for every hostname you serve, including aliases such as the www variant.
Google
Google's Search documentation on page experience asks whether pages are served securely. The rule goes further and verifies chain, hostname and validity period one by one, which that guidance does not spell out.

security.tls-certificate-validityRevision 1changed

Outside Google SearchRuns daily

Third-party sign-in buttons lead to the approved login service

Check
Checks where controls offering sign-in with a third-party brand, such as Sign in with Google, actually lead. Fails when a destination is confirmed to differ from the site owner's approved identity-provider routing.
Fix
Point the control at the approved authentication flow.
Google
Not a Google Search topic. The rule concerns sign-in security.
Note
An unexpected host is a reason to review, not proof of phishing; external identity brokers are often legitimate.

security.brand-login-destination-policyRevision 1changed

Outside Google SearchRuns daily

Persistent cookies expire in line with their purpose

Check
Compares the lifetime of persistent cookies, taken from Expires or Max-Age, with the retention the site owner has set for each purpose. Fails when an observed lifetime exceeds that limit.
Fix
Shorten lifetimes to what the purpose justifies, and review how the cookies renew and get deleted.
Google
Not a Google Search topic; it concerns security and operations. Google's developer documentation describes a 400-day cap in Chrome, which is a browser limit, not a recommended lifetime.
Note
The site owner sets the allowed lifetime per purpose; the 400 days from Chrome are not a legal benchmark.

security.cookie-retention-budgetRevision 1changed

Outside Google SearchRuns daily

The COOP header matches the chosen window isolation

Check
Reads the effective Cross-Origin-Opener-Policy on pages where the site owner has defined isolation and popup requirements. Fails when the observed value conflicts with that requirement.
Fix
Test popups and cross-window flows such as OAuth or payment first, then deploy a compatible COOP value.
Google
Not a Google Search topic; this is security. Google's developer documentation explains that same-origin-allow-popups keeps references to the page's popups, so strict same-origin is a deliberate choice, not a default requirement.

security.coop-owner-policyRevision 1changed

Outside Google SearchRuns daily

Pages in the CSP rollout send an enforced Content Security Policy

Check
For pages in the site owner's CSP rollout, checks the Content-Security-Policy header. Fails when it is missing, invalid or sent only as Content-Security-Policy-Report-Only.
Fix
Trial the policy in report-only mode first, then enforce it.
Google
This rule concerns security, not Google Search. For HTML rendered on the server, Google's developer documentation advises a strict CSP built on nonces.

security.csp-enforcement-presentRevision 1changed

Outside Google SearchRuns daily

The Content Security Policy restricts scripts as intended

Check
Evaluates the script directives of the enforced Content-Security-Policy. Fails when the policy demonstrably allows script sources or execution that the site owner's requirement forbids.
Fix
Tighten script-src with tested nonces or hashes, and allow only the sources your integrations need.
Google
Not a Google Search topic; this is protection against injected scripts. Google's developer documentation recommends a strict, nonce-based CSP for pages rendered on the server.

security.csp-script-restrictionRevision 1changed

Outside Google SearchRuns daily

Resources are referenced with explicit HTTPS

Check
Looks for scheme-relative resource URLs that start with //. Where the site owner's policy requires explicit HTTPS, each such reference that is not needed fails.
Fix
Replace scheme-relative references with verified HTTPS URLs.
Google
Not a Google Search topic; the rule concerns URL hygiene and security.
Note
On an HTTPS page, scheme-relative URLs load over HTTPS and are not mixed content.

security.explicit-https-resource-urlsRevision 1changed

Outside Google SearchRuns daily

External links in new windows grant no unwanted `opener` access

Check
Covers external links with target="_blank". Fails when a supported browser creates a window.opener relationship to the linking page that the policy does not allow.
Fix
Add rel="noopener" where needed, and use noreferrer only if you mean to suppress the referrer.
Google
Not a Google Search topic. The rule concerns security between browser windows.
Note
Modern browsers usually treat target="_blank" as noopener already; a missing rel alone is not a vulnerability.

security.external-window-opener-policyRevision 1changed

Outside Google SearchRuns daily

Forms submit their data to HTTPS destinations

Check
Resolves the destination of every public form, including action, formaction and <base>. Fails when a destination uses HTTP; GET forms count too.
Fix
Serve form pages and their resolved submission endpoints over HTTPS.
Google
Not a Google Search topic; this is transport security. Google's developer documentation explains that HTTPS stops others from eavesdropping on traffic between a site and its users.

security.form-action-httpsRevision 1changed

Outside Google SearchRuns daily

Only intended sites may embed the page in a frame

Check
For pages with a defined embedding policy, reads frame-ancestors and X-Frame-Options. Fails when protection is missing, ineffective or permits parent origins that are not intended.
Fix
List the allowed origins in frame-ancestors and keep X-Frame-Options only as a compatible fallback.
Google
Not a Google Search topic; this is clickjacking protection. Google's developer documentation describes frame-ancestors as the way to let only specific origins embed a page.

security.framing-allowlist-policyRevision 1changed

Outside Google SearchRuns daily

The HTTPS host sends HSTS with the required lifetime

Check
Reads the Strict-Transport-Security header on the HTTPS host. Fails when it is missing, malformed, set to max-age=0 or below the minimum lifetime the site owner has set.
Fix
Enable or extend HSTS only once HTTPS works reliably on every host it will cover.
Google
Not a Google Search topic; it concerns security. Google's developer documentation explains that once this header is set, the browser connects over HTTPS directly, skipping HTTP, for the duration the header names.
Note
The site owner sets the minimum lifetime; the rule does not demand preload or includeSubDomains without checking every subdomain.

security.hsts-owner-policyRevision 2changed

Outside Google SearchRuns daily

Responses send `X-Content-Type-Options: nosniff` where required

Check
Covers responses within the site owner's MIME hardening scope. Fails when one of them lacks a valid X-Content-Type-Options: nosniff header.
Fix
Serve correct Content-Type headers, add nosniff, then test scripts and stylesheets.
Google
Not a Google Search topic; this is security. Google's developer documentation advises sending nosniff on all server responses, paired with an accurate Content-Type.

security.nosniff-owner-policyRevision 1changed

Outside Google SearchRuns daily

Pages with password fields are served over HTTPS

Check
Covers public pages containing an <input type="password">. Fails when such a page is served over HTTP, even if the form posts to an HTTPS address.
Fix
Move the sign-in page to HTTPS and review the form destination separately.
Google
Transport security, not a Google Search topic. According to Google's developer documentation, HTTPS protects against passive eavesdropping between a site and its users.

security.password-page-httpsRevision 1changed

Outside Google SearchRuns daily

Password fields allow pasting

Check
Looks for code that cancels paste in password and sign-in fields, such as an onpaste handler. Fails when a field is confirmed to block pasting.
Fix
Lift the paste block so password managers can fill the fields.
Google
Not a Google Search topic. Google's developer documentation lists allowing paste as a best practice, since it lets people use password managers and so raises security.

security.password-paste-not-blockedRevision 1changed

Outside Google SearchRuns daily

The Permissions Policy allows only the browser features in use

Check
Evaluates the Permissions-Policy header. Fails when an allowlist conflicts with the site owner's restrictions or blocks a required integration; empty or malformed values do not pass.
Fix
Allow sensitive browser features only where your page or an integration needs them, then test those features.
Google
Not a Google Search topic; this is security. Google's developer documentation describes the header as the site's declaration of which features it and embedded third-party code plan to use.

security.permissions-policy-intentRevision 1changed

Outside Google SearchRuns daily

Version-pinned third-party scripts and styles carry valid SRI hashes

Check
Covers version-pinned cross-origin scripts and stylesheets whose delivery supports SRI. Fails when the integrity attribute is missing or unusable.
Fix
Pin a stable version and add the matching integrity hash with crossorigin, or choose a documented safe alternative.
Google
Not a Google Search topic; this is security. Google's developer documentation mentions SRI only in the narrower case of precaching, which sets no general obligation.

security.pinnable-third-party-integrityRevision 1changed

Outside Google SearchRuns daily

The referrer policy shares only the intended URL data

Check
Determines the effective referrer policy from element, page and browser default. Fails when it allows referrer disclosure that the site owner's policy forbids.
Fix
Set a supported policy such as strict-origin-when-cross-origin where it suits your integrations.
Google
Not a Google Search topic; it concerns privacy and integrations. Google's developer documentation sets the order: element policy first, then page policy, then the browser default.
Note
A missing header does not fail the rule on its own, since modern browsers often apply a protective default.

security.referrer-disclosure-policyRevision 1changed

Outside Google SearchRuns daily

Response headers reveal no unnecessary software or version details

Check
Reads headers such as Server and X-Powered-By. Fails when a response advertises software details that the site owner's disclosure policy rules out.
Fix
Where operations allow it, strip identifying headers.
Google
Not a Google Search topic. The rule concerns security as an extra layer of defense.

security.software-header-disclosure-policyRevision 1changed

Outside Google SearchRuns daily

Source maps are referenced only where the site owner intends it

Check
Looks for sourceMappingURL references in production JavaScript and CSS responses. Fails when a reference breaks the site owner's policy for publishing production code.
Fix
Remove unintended references, or publish source maps deliberately with the access your policy allows.
Google
Not a Google Search topic; the rule concerns security and operational hygiene. Google's developer documentation treats source maps as a legitimate debugging tool.
Note
A reference alone proves neither that the map is reachable nor that secrets are exposed.

security.source-map-publication-policyRevision 1changed

Outside Google SearchRuns daily

Trusted Types are enforced where the site owner requires them

Check
Reads the enforced CSP for the directive require-trusted-types-for 'script'. Fails when it is missing, invalid or set only in report-only mode.
Fix
Start in report-only mode, fix what it reports, and enforce Trusted Types once approved.
Google
Not a Google Search topic; this is protection against DOM-based cross-site scripting. Google's developer documentation names 'script' as the only valid value of that directive.

security.trusted-types-owner-policyRevision 1changed

Outside Google Search

Public code contains no confidential credentials

Check
Scans captured HTML and inline scripts for confidential credentials and private keys without storing any values. Fails when an exposed secret is confirmed.
Fix
Remove the exposure, revoke and rotate the affected secrets through your approval process, and review past access.
Google
Not a Google Search topic; this is security.
Note
Some identifiers, such as OAuth client IDs, may be public; only confirmed confidential values fail the rule.

security.public-confidential-credentialRevision 1

Outside Google Search

Obfuscated inline code is reviewed and authorized

Check
Flags inline scripts with suspicious traits, such as long encoded strings combined with eval or atob. Fails when a flagged script is confirmed unauthorized or does not match the approved deployment.
Fix
Investigate unauthorized changes and remove confirmed foreign code through your incident process.
Google
Not a Google Search topic. It concerns site security: whether code was injected without approval.
Note
Suspicious traits are a review signal, not proof of malware; legitimate libraries show them too.

security.unreviewed-obfuscated-inline-codeRevision 1

Have these rules put into practice on your site.

We’re starting with a few companies and opening up step by step. The first customers get founding terms. Cancel monthly, no minimum term.

What happens next

  1. 1

    Before launch

    We get in touch personally and check whether XEO fits your company. If the answer is no, we’ll tell you plainly.

  2. 2

    At launch

    You give us access to your website, Search Console and Analytics, using a short checklist.

  3. 3

    After that

    Reviewed changes go live continuously. Every Monday you see what moved.

We only use your details to contact you when XEO opens. No newsletter. A short email to contact@usexeo.com is enough to have your signup deleted. Privacy