Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Español · Українська

Spiderlint

Spiderlint crawls every page a site serves, collects facts about each request (HTML, headers, TLS, timings, sizes) and lints them against rulesets scoped by URL group, so a template missing a heading is one finding rather than one per page. Built on Node and Crawlee.

Stand with Ukraine Projectfile inside License Cosign PRs welcome REUSE compliance

Last commit on kiota.ch Last commit on Codeberg Last commit on GitHub

npm version npm downloads per month Dependency freshness

Publish pipeline on GitHub Vulnerability audit on GitHub Dependency freshness on GitHub Analysis sweep on GitHub

Publish pipeline on kiota.ch Vulnerability audit on kiota.ch Dependency freshness on kiota.ch Analysis sweep on kiota.ch

Features

  • Accessibility checked from every side
  • Client-rendered pages audited as visitors see them
  • Every kind of page early, whatever the limit
  • CSS checked as browsers read it
  • The DNS behind every crawled host
  • Feeds checked the way readers see them
  • One finding per template, not per page
  • Icons fetched and measured
  • Image weight measured, not estimated
  • The site measured as a whole
  • Dead links, on the site and off it
  • Mail authentication of every domain it crawls
  • Each origin checked once, beyond its pages
  • Structured data and markup checked on every page
  • Speed problems found without a browser
  • Privacy before consent
  • Sites on any network, crawled politely
  • Reports for people, pipelines and coding agents
  • Page dependencies fetched once
  • robots.txt read the way crawlers read it
  • Over 500 rules, and new ones written as data
  • Search visibility checked across the whole site
  • Security headers judged, not just detected
  • Scan server
  • Crawl once, lint many times
  • The footprint of every page view
  • TLS configuration scanned in-house
  • Transport checked per page, not per host
  • What the CDN or host adds, kept apart
  • The files a site publishes beside its pages

It also inherits the features of B19 / Ubuntu — see Features for the full list.

What this provides

  • CI action damian-buho/spiderlint@0.152.0
  • Container image ghcr.io/damian-buho/spiderlint:latest
  • Container image damianbuho/spiderlint:latest
  • npm package spiderlint — command spiderlint

Installation

Container image

Pull the published container image:

Pull from GHCR — linux/amd64

docker pull ghcr.io/damian-buho/spiderlint:latest
alias spiderlint='docker run --rm --user "$(id -u):$(id -g)" --group-add 0 --volume "$PWD:/app/ws" --workdir /app/ws ghcr.io/damian-buho/spiderlint:latest spiderlint'

Pull from DockerHub — linux/amd64

docker pull damianbuho/spiderlint:latest
alias spiderlint='docker run --rm --user "$(id -u):$(id -g)" --group-add 0 --volume "$PWD:/app/ws" --workdir /app/ws damianbuho/spiderlint:latest spiderlint'

Stable releases also publish X.Y.Z, X.Y and X tags — pull the precision you want to pin.

If the registries above are unreachable, pull from the origin instead:

Pull from Kiota — linux/amd64

docker pull kiota.ch/damian-buho/spiderlint:latest
alias spiderlint='docker run --rm --user "$(id -u):$(id -g)" --group-add 0 --volume "$PWD:/app/ws" --workdir /app/ws kiota.ch/damian-buho/spiderlint:latest spiderlint'

Then run it as if it were installed — the alias runs every example as written against the current directory:

spiderlint --help

npm package

Install the command globally:

npm install --global spiderlint

Needs Node.js >=26.

Usage

Run it as a step in a GitHub Actions workflow:

- uses: damian-buho/spiderlint@0.152.0

The action takes these inputs:

InputDefaultDescription
urlsNewline-separated seed URLs. Empty takes the targets from the config file.
config_fileProjectfile or plain YAML carrying the org.spiderlint subtree, relative to the workspace.
siteOne org.spiderlint.sites name to audit; a config declaring several needs one step per site.
rulesComma-separated rulesets replacing every group’s rules (e.g. recommended,axe).
argsMore audit flags, one per line with its value after a space (e.g. –max-pages 200).
fail_onerrorSeverity that fails the job: error | warning | info | never
upload_sariffalseUpload the SARIF report to code scanning; needs the security-events: write permission.
cachetrueKeep the crawl store in the forge cache, so an unchanged site is re-audited with 304s.
versionImage tag to pull (e.g. latest, 1.2.3). Empty follows the action’s own version tag, else latest.
imageFull image reference. Takes precedence over version.

spiderlint

$ spiderlint --help
spiderlint
Site-wide linter for SEO tags, security headers, TLS and links
https://dbuho.me/project/spiderlint/

Usage: spiderlint <command> [domain…] [options]
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.

Check a site:
  audit [domain…]                 crawl a site, then lint it
  crawl [domain…]                 fetch pages into the store, lint nothing
  lint [domain…]                  lint the stored pages, with no network
  show-report [domain…]           print the stored report again, in any format

Inspect:
  show-facts <url>                fetch one page and print its facts
  export-facts [domain…]          print every stored page’s facts, no network
  list-groups [domain…]           count the pages in each URL group

Rules:
  list-rules [ruleset|id…]        list rules at the severity this config gives
  list-presets                    list the shipped rulesets and their groups
  explain-rule <rule>             show a rule’s facts, expectation and fix
  rules                           print the shipped rule catalog, or write one
                                  page per rule

Cache:
  show-cache [domain…]            show the entries, bytes and age of each bucket
  purge-cache [bucket] [domain…]  delete a site’s cached entries
  warm-cache [domain…]            fetch robots.txt and sitemaps without crawling

Commands:
  help [command]                  show a command’s options and examples

Options:
  --config <path>                 settings file
                                  (default: projectfile.yaml)
                                  (env: SPIDERLINT_CONFIG)
  --site <names>                  only these org.spiderlint.sites, repeatable
                                  (default: all)
  --[no-]color                    force or disable color
                                  (default: auto, env: NO_COLOR, FORCE_COLOR)
  --[no-]progress                 status line on an interactive stderr
                                  (default: auto)
  --log-level <level>             trace, debug, info, warn, error or silent
                                  (default: warn, env: SPIDERLINT_LOG_LEVEL)
  -V, --version                   show the version
  -h, --help                      show this screen, or a command’s

Run spiderlint <command> --help for a command’s options and examples.

Exit codes:
  0  clean
  1  findings at or above --fail-on
  2  usage or config error
  3  nothing fetched, or an --offline cache miss
  4  the run failed

Examples and every command’s help are in Usage.

Building

Clone the repository with its submodules:

git clone --recurse-submodules https://codeberg.org/damian-buho/spiderlint spiderlint && cd spiderlint

Build the container image locally:

make container-build

Run make with no arguments for the default target; run make help to list every target.

For the local dev loop, make dev-container brings up the dev-container.

Pipeline entry points:

  • make analyzed — Run the heavy analysis sweep (mutation testing, benchmarks)
  • make audited — Re-scan the pinned dependencies and published artifacts for new vulnerabilities
  • make check-outdated — Report every pinned dependency that lags upstream
  • make release-is-ready — Run the pseudo-CI pipeline locally — build, test and scan, without publishing

Documentation

For contributors

Policies

License

This project is licensed under AGPL-3.0-only — see the LICENSE file for details.

Español · Українська

Features

Project Features

Accessibility checked from every side

  • Every axe-core rule for WCAG 2.2 A and AA, and its best practices, runs in the rendered page, so defects that scripts introduce are caught too.
  • The markup of every page, not a sample, is checked for the accessibility defects html-validate sees without a browser: missing labels, skipped heading levels, missing alt text.
  • Keyboard use is tried on a few pages per template: Tab must reach every control without a trap, focus must show and stay uncovered, a skip link must come first, and click handlers on plain elements are reported.
  • Visitor settings are honoured: animations stop under reduced motion, text stays readable in the dark scheme and the higher contrast a page offers, focus and icons survive Windows high contrast, and form fields are large enough that phones do not zoom.

Client-rendered pages audited as visitors see them

  • A page whose tags, links or content appear only after its scripts run is rendered in a real browser, so what gets linted is what search engines and visitors see.
  • Only the sections that need a browser are rendered; the rest of the site is crawled over plain HTTP at full speed in the same run, and a section that renders its tags client-side can be detected on its own.
  • Console errors, load timings and every resource a page loads at runtime become facts that rules can check.
  • What a page loses without JavaScript — its title, description, canonical link, heading, internal links or text — is reported, from its raw HTML against its rendered page.

Every kind of page early, whatever the limit

  • Pages are visited so each section of a site is sampled before any one is exhausted: the first project page is fetched before the fiftieth post.
  • A page limit, or a crawl cut short, still shows every kind of page the site has.
  • Turn it off with one setting when discovery order is what you want.

CSS checked as browsers read it

  • Style sheets and inline CSS are parsed for what browsers silently drop: syntax errors that lose a whole rule, misspelled properties and values outside a property’s grammar.
  • Each defect names its line and column, in the style sheet or in the page that holds the inline block.
  • A style sheet every page loads is one finding with the pages that use it, and inline CSS folds per template.
  • Features the project’s declared browsers lack are listed with the browsers that lack them, while code behind @supports is left alone.
  • Vendor prefixes and old browser hacks are never reported, and the check needs no Java validator.

The DNS behind every crawled host

  • Missing HTTPS records are reported, so a first visit can start on HTTP/3 without a round trip to discover it.
  • CAA is judged against the certificate the site actually serves, so a CA that CAA forbids is caught before it fails a renewal.
  • DNSSEC is checked end-to-end: an unsigned zone, weak algorithms, stalled re-signing, and a signed zone that validating resolvers reject.
  • Name servers are asked directly and every other query goes only to the resolver you name, so a lame server or a zone out of sync shows, and a link to a subdomain whose CNAME points nowhere is flagged as a takeover risk.
  • Each name is judged by what its records say it does with mail: one that takes none is held to a null MX, a deny-all SPF and a DMARC reject policy, one that does to a single closed SPF record and an enforced DMARC policy, so a half-finished setup shows either way.
  • The domain registration is read from its registry, so a renewal that is days away, a missing transfer lock or a registry naming other name servers than the zone shows before the domain lapses or is taken.
  • Every address is traced to the network that routes it, so a route that RPKI-enforcing networks drop, a mail server with no matching reverse DNS, or a site and its name servers all behind one provider come to light.
  • SSH host key fingerprints published in DNS are compared with the keys the SSH server actually presents, so a record left stale by a key rotation is caught before it makes clients refuse to connect, and one no client may trust without DNSSEC is named.

Feeds checked the way readers see them

  • RSS, Atom and JSON feeds are checked against their own specifications: required fields, dates readers can parse, identifiers that never repeat or change, so subscribers never see an old post as new.
  • Item content is read as a reader renders it: unrendered Markdown or MDX, template placeholders, relative links and images, double escaping and markup readers strip are each named with the item they sit in.
  • Every item is compared with the page it links: a link that fails or redirects, a title, date or language that disagrees, a canonical URL the feed bypasses, and a feed of teasers where readers expect posts.
  • How the feed is served for polling is judged too: its type and encoding, conditional requests down to a revalidation answered 200 with an unchanged body instead of 304, caching, size, and an XSL style sheet Chrome no longer applies.
  • Podcast feeds can be checked for what directories require, as an opt-in: the iTunes channel and episode tags, a stable Podcasting 2.0 GUID, a podcast:locked policy, and artwork Apple accepts — square JPEG or PNG, 1400–3000 px per side.
  • Every enclosure is answered once with HEAD and judged against its declaration: reachability, byte and type agreement, and byte-range support, which Apple requires of episode hosts.
  • A declared WebSub hub can be probed with a discovery request, opt-in only.
  • A sample of the W3C feed validator corpus ships as fixtures, so every message it fires keeps firing one here.
  • A podcast directory requires RSS 2.0 with the iTunes and content namespaces declared, a unique enclosure with URL, length and type per episode, a GUID per episode that never changes, and RFC 2822 dates.

One finding per template, not per page

  • Pages are grouped by URL pattern, so a defect every post shares is reported once for the post template, with sample pages; costly checks such as accessibility run on only a few pages of each template.
  • A group whose pages disagree on a rule gets an advisory that it likely mixes two templates.
  • Values that must be unique across the site, such as titles and descriptions, are reported once per duplicate with every URL that shares it.
  • Every run ends with the number of checks passed and a grade from S to F, so sites and releases compare at a glance.

Icons fetched and measured

  • Every icon the pages, the web app manifest and browserconfig.xml name is downloaded once and measured, so an icon that is really smaller than it claims, or another format, is a finding.
  • The favicon, the Apple touch icon, the SVG icon, the Safari pinned tab and the Windows tiles are each judged on what the platform really asks for, such as an opaque 180×180 PNG for iOS.
  • A page that links no Apple touch icon is checked against the path iOS requests anyway.

Image weight measured, not estimated

  • Every image the site loads is re-encoded once, and the bytes AVIF, WebP or a tighter encode of its own format would save are reported.
  • Each heavy image is one finding with the pages that use it, across the whole site rather than a sample of pages.
  • Images that ship far more pixels than they display, or have no width and height to hold their place, are flagged per template.
  • Measurements are cached with the image, so a re-run measures only what changed.
  • Fonts, style sheets and scripts are weighed the same way: fonts that are not WOFF2, font faces that hide text while they load, and bytes minification would save.

The site measured as a whole

  • Weight, requests, timings and carbon of every page add up to site-wide figures: median, 95th percentile, extremes and totals, even when no page breaks a budget.
  • A page far slower or heavier than the rest, or served differently from nearly every other page, is pointed out, and the same crawl always gives the same answer.
  • Every fact about every page exports to a spreadsheet, with no second crawl.
  • A link that leads nowhere, to this site or to another one, is one finding listing every page that carries it.
  • Links to other sites are checked once per run and remembered for a week, so a re-run sends them nothing.
  • A site that only asks the checker to slow down is not reported as dead.
  • Feeds a page advertises in its head are crawled and checked too, even when no link points to them.
  • Internal links marked nofollow are found, links to paid or user content can be held to a rel policy the owner declares, and a profile the site claims as its own that does not link back, as Mastodon verification requires, is reported.

Mail authentication of every domain it crawls

  • A domain that takes or sends mail is found on its own, and one that does neither keeps the no-mail checks, so nobody has to say which kind it is.
  • SPF is walked through every include the way receivers walk it, so a record that silently fails on too many lookups or a missing include shows before mail bounces.
  • DMARC, DKIM and MX are checked for the faults receivers punish: several policies, report addresses that refuse the reports, short keys, keys left in testing, and mail servers behind a CNAME.
  • MTA-STS, TLS reporting and BIMI are read end-to-end, so a policy that leaves a mail server out or a logo no mail client will show is caught.
  • DANE and a live STARTTLS check of each mail server are there when you turn them on.

Each origin checked once, beyond its pages

  • A missing page is requested on purpose, so a soft 404, or an error page that leaks a stack trace or a server version, is a finding.
  • Every way in — http or https, with or without www., at the root or deep in the site — must land on one canonical origin in a permanent redirect that keeps the path, and the home page must not redirect visitors by their language.
  • Cross-domain policy files that let any other site read pages with the visitor’s session are reported.
  • Plugins add their own once-per-origin or once-per-host checks; their results are reused between runs, and their requests never leave the host they check.

Structured data and markup checked on every page

  • Structured data in JSON-LD, Microdata or RDFa is reported when it does not parse, lacks what its rich result needs, contradicts the page or the rest of the site, uses retired schema.org terms or malformed or contradictory dates, or has breadcrumbs leading to missing or moved pages.
  • The web app manifest is checked for what installing the site needs: a name, a start page, a display mode and icons in the sizes phones ask for.
  • Vague link text such as “click here” is found in the page’s own language, and a language without a reviewed list is skipped rather than judged in English.

Speed problems found without a browser

  • Every text response must be compressed with Brotli, Zstandard or gzip, and every page must be cacheable, revalidatable and eligible for the back/forward cache.
  • A server still on HTTP/1.1, one that does not advertise HTTP/3, and a certificate whose RSA key makes every handshake larger than an EC key would are reported.
  • A file a browser or CDN may keep for a long time at a URL that never changes, so it stays stale after the next publish, is reported by file type.
  • Scripts and style sheets that block the first render, a lazy loaded first image, and images with no size to hold their place are found in the HTML of every page.
  • Rendered pages get Lighthouse performance, accessibility, best-practices and SEO scores and lab LCP, CLS, TBT and FCP, on a sample of each template.
  • Third-party and tracking cookies set on the first load, before the visitor touches anything, are reported, and so is web storage written the same way.
  • Cookies that scripts write are held to the same expectations as the cookies a server sets.
  • The analytics and advertising vendors a site loads are listed in one inventory, so what the privacy policy must name is known.
  • A page with no link to its privacy policy is reported.

Sites on any network, crawled politely

  • Onion services and I2P sites are audited with one setting, through the local Tor or I2P proxy, at the pace and timeouts those networks need.
  • Every request of the plain and the browser crawl can go through an HTTP, HTTPS or SOCKS proxy, including SOCKS proxies that resolve hostnames themselves.
  • A server that answers “too many requests” or “unavailable” is retried with backoff and its Retry-After honoured, and a cap on requests per minute keeps the crawl within what a site tolerates.
  • robots.txt is obeyed unless you say otherwise.

Reports for people, pipelines and coding agents

  • Findings come as text, JSON, SARIF, Checkstyle, CSV or an HTML report, and a stored crawl is re-formatted without fetching the site again.
  • Each finding can say how to fix it for the site at hand, the exact record, header or tag with the site’s own names filled in, and code scanning shows the same guidance beside every alert.
  • The agent format turns findings into fix prompts for a coding agent, ordered by severity and by how many pages each fix clears.
  • A CI action audits a site on every push, fails the job at the severity you choose, uploads SARIF to code scanning, and caches the crawl so an unchanged site costs almost nothing to re-audit.
  • Exit codes tell findings apart from a bad configuration and from a site that could not be reached, so a pipeline knows which one failed.

Page dependencies fetched once

  • Scripts, style sheets, images and frames the pages load are fetched once per run, whatever their origin.
  • A broken or insecure dependency is one finding listing the pages that use it, not one finding per page.
  • Cross-origin scripts without integrity hashes and plain-HTTP resources on HTTPS pages are reported.
  • The web app manifest is fetched and judged like any other dependency.

robots.txt read the way crawlers read it

  • A robots.txt that shuts every crawler out of the whole site is reported, since it takes the site out of search results.
  • The AI crawlers it names are listed by purpose — training, search or user fetch — with the ones it shuts out and the names no vendor sends any more.
  • Content Signals that say something other than yes or no to search, AI input or AI training are reported.

Over 500 rules, and new ones written as data

  • A rule is a fact path plus a JSON Schema, so a new check needs no code.
  • Bundled presets cover search, security headers, TLS, DNS, cookies, performance, accessibility, privacy, sustainability, links, redirects, sitemaps, robots.txt, well-known files and files for AI agents.
  • Each URL group runs its own rule sets, and any rule’s severity can be changed or switched off from the command line, the environment or the projectfile.
  • axe-core, html-validate, htmlhint and markdownlint run inside the same crawl, each of their checks a rule you can tune or switch off like any other, and Lighthouse scores join them on rendered pages.
  • Plugins add their own facts, rules, presets, report formats and URL sources beside the bundled ones, and a plain list of URLs can be audited on its own.

Search visibility checked across the whole site

  • Titles, descriptions, headings, canonical links and Open Graph tags are checked on every page, and a title or description that pages share is one finding listing all of them.
  • The sitemap is held against the crawl: pages it lists that no page links to, pages it leaves out, and listed pages marked noindex are reported.
  • Pages more than three clicks from the start page, pages that link nowhere, and pages only one other page links to are found in the link graph of the whole site.
  • Language versions must name each other back and answer, and each page’s declared language is compared with the language its title and description are written in.
  • A staging or development copy left open to indexing is caught before search engines find it.

Security headers judged, not just detected

  • Content-Security-Policy is read directive by directive, from the header or a <meta>: inline scripts without a nonce or hash, eval, scripts from any host, and a missing object-src, base-uri, frame-ancestors or Trusted Types are each a finding of their own.
  • HSTS must last long enough and cover subdomains, and responses must not be sniffed, framed by other sites, or leak full URLs through the referrer.
  • Cross-origin isolation, Permissions-Policy and reporting endpoints are checked on every page, not only the front page.
  • An X-XSS-Protection header that still turns the retired filter on is reported, since that filter can itself be abused.
  • A header that breaks its own grammar, such as an HSTS max-age that is not a number or a Cache-Control directive no cache knows, is one finding naming the fault, instead of passing because it is present or failing every check that reads it.

Scan server

  • The same image runs as an HTTP API with a job queue and a web page where anyone types a domain and reads the report in English, Spanish or Ukrainian, with or without JavaScript.
  • Each scan reports its progress while it runs, its report downloads in every format the command line writes, and a site can show its latest grade as a badge linking to the report.
  • The instance owner sets policies per domain: ban a top-level domain, limit how often a host may be scanned, cap pages and time, and choose which rules may run. A repeat request inside a set window returns the scan already made, and each client has its own limit.
  • Policies reload from a mounted file without a restart.
  • A scan cannot be aimed at loopback, private or cloud metadata addresses.

Crawl once, lint many times

  • A crawl can be kept on disk and linted again with changed rules or groups, with no network access.
  • An interrupted crawl resumes where it stopped.
  • A repeat crawl asks the site only whether each page, script and sitemap changed, and neither downloads nor analyses again what did not.
  • Binary downloads are judged by their headers and never fetched in full, so a linked archive or video costs no bandwidth.
  • A staging copy is audited as the site it is built for, so its links and sitemap naming the production address are not reported as wrong.

The footprint of every page view

  • The carbon one view of each page emits is estimated from the bytes the page and everything it loads transfer, by the Sustainable Web Design model, and pages over the budget are reported.
  • A site’s carbon.txt must be present, valid and current, and the disclosures it names must be reachable.

TLS configuration scanned in-house

  • Every protocol and cipher suite a server accepts is listed, SSLv2, SSLv3, RC4 and export suites included, which today’s TLS libraries can no longer see.
  • Broken and weak suites, missing forward secrecy, short Diffie-Hellman primes and record compression are findings, and so are the attacks they open: POODLE, BEAST, SWEET32, FREAK, Logjam, DROWN and CRIME.
  • A certificate chain missing its intermediates is caught on TLS 1.3-only servers too.
  • A house rule such as “no CBC suites” is a few lines of configuration, not code.
  • No outside scanner is asked and nothing is exploited: the server is only asked what it will negotiate, once per origin while the result stays fresh.

Transport checked per page, not per host

  • Certificate, TLS protocol and remote address are read from the connection that served each page, so two backends behind one name are reported instead of hidden.
  • Certificates close to expiry, rejected certificates, weak certificate keys or signatures, and outdated TLS versions are findings.
  • Timings, redirect chains and cookie flags are recorded for every page, and cookie values never leave the crawler.
  • A cookie browsers would silently reject or cut short, and a preload an early hint promises that the page then drops, are reported.

What the CDN or host adds, kept apart

  • Pages a CDN or host serves on the site, such as Cloudflare’s email protection page, are not judged as the site’s own, so they cannot lower its grade.
  • Scripts the CDN or host injects are still checked, and their findings are listed under the vendor that serves them.
  • A feature switched on in the CDN dashboard that costs visitors something, such as email addresses hidden from anyone without JavaScript, is named with the setting that turns it off.

The files a site publishes beside its pages

  • A missing or expired security.txt is reported, so security researchers always have a way to reach you.
  • A site with a password field must lead /.well-known/change-password somewhere, so password managers can send users straight to the right form.
  • Every other known file (privacy signals, OpenID and OAuth metadata, app links, Fediverse node info, AI crawler terms) is checked only when present, so publishing one never goes unnoticed as broken.
  • Files for AI agents (llms.txt, agent cards, MCP and skill indices) are checked in their own opt-in preset, including links in llms.txt that lead to broken pages, Markdown that renderers and agents misread, and whether pages offer a Markdown version.
  • A missing page served as HTML counts as absent, so a site that answers every URL does not flood the report.

Inherited from B19 / Ubuntu

Persistent APT cache across builds

  • Package downloads and index caches persist across builds, so repeated builds skip redundant downloads.
  • Cache is keyed by Ubuntu series and architecture, avoiding cross-contamination.
  • Optional LAN APT cacher proxy can be enabled for faster local builds.

Service process management with log routing (b19-exec)

  • Long-running processes (daemons, servers) have stdout and stderr automatically routed through the structured logger.
  • Every signal reaches the service exactly once, so docker stop ends it gracefully and its last log lines are kept.
  • Log levels for stdout and stderr streams are independently configurable.
  • Several daemons share one container: each line is tagged with its daemon, they stop in reverse start order, and a crashed required daemon stops the container so the restart policy acts.
  • Passthrough mode hands a service’s own log to the collector byte for byte, so parsers built for that daemon still match.

Cached artifact downloads with integrity verification

  • Downloads are cached locally and in BuildKit persistent storage, so repeated fetches are served from cache.
  • SHA-512 hash verification runs at every tier; mismatches fall through to the next source rather than failing.
  • Offgrid mode blocks all downloads entirely, failing fast with a clear error on cache miss.
  • Supports a near-cache proxy for LAN-only builds that route through a caching proxy.

Timed command execution with failure reporting (b19-run)

  • Any command can be wrapped to get automatic elapsed-time measurement and success/failure reporting.
  • Success output is visible only at higher verbosity levels; failure output is always shown.
  • In debug mode, command output streams live instead of being buffered.

Run-once initialization (bootstrap.d)

  • One-time setup tasks (database migrations, admin user creation, directory init) run on first container start only.
  • Automatic idempotency: completed scripts are never re-run, even across container restarts.
  • Failed scripts are retried on next start; successful ones stay locked.
  • State can be reset by clearing a volume, triggering a full re-bootstrap.
  • Downstream images add their own init scripts by dropping them into a directory.

Modular build hooks (build.d)

  • Build logic lives in composable hook scripts instead of inline Dockerfile commands, making it easy to read, test, and reuse.
  • Cross-cutting setup (CA trust, locale, shared installs) is written once and runs on every stage automatically.
  • Downstream images inherit parent build logic through the layer overlay — no duplication needed.
  • Non-inheritable one-off setup is cleaned up after execution to avoid leaking into later stages.

Compromised certificate authorities distrusted ahead of upstream

  • Certificates listed by SHA-256 fingerprint are removed from the system trust store at build time, before the distribution ships its own fix.
  • One list serves the whole image lineage, and b19-ca-distrust bundle cuts any vendored PEM bundle from it too.
  • Ships distrusting the eMudhra intermediates whose private keys can be recovered (October 2026), together with their cross-signs and roots.
  • Downstream images add fingerprints with one variable or one file, and B19_CA_DISTRUST_ENABLED=false turns the cut off. How-to

Automatic CPU count detection

  • CPU count is detected automatically across Docker, Kubernetes, and CI environments without manual configuration.
  • Eliminates hardcoded job counts — parallel compilation, template rendering, and tests use the right parallelism everywhere.
  • The detected count is available throughout build and runtime for any tool that needs it.

Declarative dependency management (b19-deps)

  • External dependency metadata (URL, version, SHA-512 hash) stored as plain text files, completely separate from build scripts.
  • Supports architecture-specific downloads, multi-version series, and nested component paths.
  • Dependencies are auto-discovered at Makefile parse time — add files to the right directory and the build picks them up without manual declarations.
  • make fetch pre-downloads everything for offline builds; version bumps trigger automatic re-fetch and hash updates.

Pluggable startup system (entrypoint.d)

  • Composable hook chain handles signal setup, secrets loading, CPU detection, port validation, template rendering, bootstrap, and service start in order.
  • Ad-hoc commands bypass the startup chain automatically and execute directly.
  • Individual hooks or the entire entrypoint can be skipped at runtime via environment variables, no image rebuild needed.
  • Downstream images override a single hook to launch their service; everything else is inherited.

Feature toggles for all subsystems

  • Every major subsystem (entrypoint, healthchecks, bootstrap, tests, secrets, port validation, i18n, shell hooks) can be disabled at runtime via environment variables.
  • Individual entrypoint, bootstrap and health-check hooks can be skipped by name without disabling the whole subsystem.
  • No image rebuild required — toggles are runtime-only.

Built-in health monitoring (healthcheck.d)

  • Docker-native healthcheck inherited by every downstream image with no extra configuration.
  • Egress checks are opt-in: a container that never reaches the internet carries no check a third party can fail, while one whose job is the internet reports unhealthy the moment the outside is gone.
  • Works the same offline as online — egress checks stand down automatically under offgrid mode.
  • Adding a check is dropping a script in a directory, not writing Docker plumbing.
  • Heavy or rate-limited checks run hourly in the background, so a slow scan never times out the probe or burns a rate limit.

See use-healthcheck.d for the check list, slot numbering, and configuration.

Multilingual shell output (b19-i18n)

  • All user-facing log messages and script output are translatable via GNU gettext.
  • Ships with English, Spanish (es_CL), and Ukrainian (uk_UA) out of the box.
  • Downstream images inherit all parent translations automatically; only new or overridden strings need translating.
  • Translations are compiled at build time with no runtime overhead.

Image lineage tracking

  • Every image records its build metadata (namespace, project, version, base image) into a lineage file during build.
  • Downstream images chain lineage from their parent, producing a full base-to-current provenance chain.
  • The full lineage chain is logged at startup (debug verbosity) and readable from the file at any time, making it easy to trace what a running container was built from.

Structured, level-filtered logging (b19-log)

  • All container output goes through a leveled logger with four thresholds: error, warn, info, debug.
  • Messages below the configured verbosity are silently discarded, keeping production logs clean.
  • Colors auto-detect terminal support and respect NO_COLOR=1.
  • Pipable: command output can be routed through the logger to apply level filtering and tags.
  • B19_LOG_FORMAT=json turns every line into one JSON object a log pipeline reads without a parser; a service’s own lines become fields too, and the native line stays beside them.

Non-root container by default

  • The container runs as a non-root user (ubuntu, UID/GID 1000) with all runtime files owned by that user.
  • A two-stage build separates root-level system installation from user-level runtime setup.
  • User identity is configurable at build time, and an opt-in root start remaps it to the host user so bind mounts keep their ownership.

Air-gapped / offline build and runtime support

  • A single environment variable (B19_OFFGRID_MODE=Y) cuts all internet access at build time and runtime.
  • Build-time: downloads are blocked, APT updates are skipped, SSH keyscans are skipped. All artifacts must come from cache tiers.
  • Runtime: network healthchecks automatically skip with a healthy result, so containers stay green on isolated networks.
  • APT package lists can be snapshotted and injected for fully offline image builds.
  • LAN services (caching proxies, registries) remain reachable — offgrid blocks internet, not all networking.

Runtime overlay injection

  • Configuration or data files can be injected at container startup by setting B19_OVERLAY to a directory name.
  • Overlay contents are recursively copied to the container root, overwriting existing files — no image rebuild needed.
  • Skipped in immutable mode, preventing runtime modification of production-locked images.

Reproducible base image (pinned by digest)

  • The Ubuntu base image is pinned by SHA-256 digest, not by tag, ensuring deterministic builds.
  • Supports multiple Ubuntu series (resolute, noble, jammy) selectable at build time.
  • APT mirrors are configurable per architecture for LAN mirrors or air-gapped environments.

Port validation

  • Every environment variable whose name ends in PORT is validated at startup against the WHATWG blocklist of forbidden ports and privileged ports (<1024).
  • Catches misconfigurations like HTTP_PORT=22 early, before the service fails silently.
  • Can be disabled at runtime without rebuilding the image.

Unified lifecycle runner family

  • Every lifecycle concern — startup, healthchecks, tests, bootstrap, build, benchmarks, reports, and shell — follows the same discoverable hook pattern.
  • Drop a numbered script into a directory and it is auto-discovered and executed, no wiring required.
  • Scripts from different image layers merge, so upstream and downstream hooks coexist without conflict.
  • Each runner has tailored failure semantics: abort on error, continue and count failures, or always succeed as appropriate.

Docker secrets auto-loading

  • Docker secrets translate to environment variables automatically at container startup, requiring no code changes.
  • Dot-notation filenames map to uppercase env vars, keeping naming consistent and predictable.
  • Required secrets can be declared by name; the container refuses to start if any are missing.
  • Existing environment variables take precedence over secret-derived values, so overrides are straightforward.
  • Binary secrets (keys, DER blobs) stay on disk for file-based reads, avoiding Bash truncation issues.

Interactive shell hooks

  • Shell sessions automatically load Docker secrets and any custom hooks added by downstream images.
  • Hooks merge via Docker layer overlay, so inherited and project-specific shell setup coexist without conflict.

Graceful signal handling

  • PID 1 is catatonit -g, which reaps zombie processes and forwards signals to the full process group.
  • A configurable set of Unix signals (TERM, INT, HUP, USR1, USR2, etc.) is trapped and forwarded to every service process, which stop in reverse start order.
  • docker stop cleanly terminates the service without orphan processes or signal loss.

Jinja2 configuration templates (minijinja-cli)

  • Jinja2-compatible template rendering at both build time and container startup.
  • Drop a .j2 file anywhere in the app directory; it is discovered at build time and rendered at every startup with all environment variables available.
  • Runtime rendering is parallel and automatic — downstream images get it with zero configuration.
  • Skip specific templates at runtime with B19_J2_SKIP_FILES (comma-separated basenames).
  • Immutable mode (B19_IMMUTABLE=Y) locks the filesystem to build-time state, skipping all runtime rendering.

Built-in test framework (test.d)

  • Tests run inside the running container via make test or docker exec.
  • Automatically waits for healthchecks to pass before executing.
  • No test framework dependency — tests are plain shell scripts with exit codes, and a failed check names what it expected and what it found.
  • Supports Jinja2 templates in tests, useful for asserting build-time values at runtime.
  • Continues on failure and reports the total count; never hides partial results.

Nothing hangs forever

  • Every startup, test and one-shot step has a time bound, so a wedged tool fails loudly instead of blocking a deploy or a CI run.
  • Stalled downloads are aborted, while slow ones of any size still complete.
  • A flaky call can be retried with backoff in one flag, without a hand-written loop.
  • An opt-in restart turns a service stuck unhealthy into a container the restart policy recovers.

See use-timeouts for the options, defaults and overrides.

Pre-installed utility tools

  • mold as default linker (opt-out available).
  • fd for file finding, minijinja-cli for template rendering.
  • aria2c for multi-connection downloads, catatonit as PID 1 for zombie reaping.
  • Parallel compression tools: pbzip2, pigz, pixz.
  • gettext tools for i18n compilation, cURL for network operations.

XDG Base Directory paths

  • Standard XDG paths (XDG_CACHE_HOME, XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME) are set under the app home directory.
  • All paths are writable by the non-root user without privilege escalation.

Self-host the scan server

The image that runs the command line also runs the web form, the API and the scan workers. One container plus a Valkey (or Redis) is a complete instance, and you decide which sites it may scan, how often and how deeply.

What you need

  • A host with Docker and Compose. The image is amd64 only.
  • A Valkey or Redis the server can reach, kept behind a password.
  • A reverse proxy for TLS, if the instance is public.

Start it

Put the settings in server.yaml:

redis: redis://valkey:6379/0
redis-password-file: /run/secrets/o9s.vlky.password
recent: 10
policies:
  - name: everyone
    hosts: ["*"]
    rate: { jobs: 10, per: 1h }
    repeat: 30m
    caps: { max-pages: 100 }

Then run both containers:

services:
  valkey:
    image: kiota.ch/o9s/valkey:latest
    environment: { O9S_VLKY_SAVE: "" }
    secrets: [o9s.vlky.password]
  spiderlint:
    image: kiota.ch/damian-buho/spiderlint:latest
    environment: { SPIDERLINT_MODE: all }
    ports: ["127.0.0.1:8080:8080"]
    secrets: [o9s.vlky.password]
    volumes: [./server.yaml:/etc/spiderlint/server.yaml:ro]
secrets:
  o9s.vlky.password:
    file: ./valkey.password
docker compose up --detach

The form is at http://127.0.0.1:8080/, the API under /v1/ and a health check at /healthz.

Open it to the public

  • Terminate TLS in the proxy and list its network under clients.trusted-proxies, so the per-client limit sees the visitor and not the proxy.
  • Keep allow-private: false, the default: scans then refuse loopback and private addresses, and only the http fetch mode is on.
  • Ban what you do not want scanned with a policy ban, and slow a host down with rate and repeat.
  • Change SPIDERLINT_MODE to api on one container and worker on others to scale scans apart from the pages.

The settings file is read again every 5 seconds, so a valid edit applies without a restart. Every setting, route and the page customisation options are described in the scan server reference.

Scan server

The image that runs the CLI also runs an HTTP API over a job queue, and a small site over the same API. A client posts a URL and the settings it would pass on the command line, follows the scan’s progress, and downloads the report in any format; a person types a domain into a form and reads the report as a page. The instance owner decides, per domain, what may be scanned, how often and how deeply.

Modes

SPIDERLINT_MODE picks what a container starts:

ModeStarts
cliNothing; the default. docker run … spiderlint audit <url>
apiThe HTTP API only
workerScan workers only
allBoth in one process, for a small instance

API and worker share state through Redis or Valkey only, so either side scales on its own. Each scan runs in its own child process with a wall-clock limit; a stuck crawl dies with its process.

Settings file

Runtime settings live in one YAML file, /etc/spiderlint/server.yaml by default (SPIDERLINT_SERVER_CONFIG names another). It is read at start and polled every 5 s: a valid edit applies to the next request, an invalid one is logged and the previous settings stay. redis, redis-password-file, listen, workers and clock-references need a restart. Without the file, one policy admits every host with the defaults below.

redis: redis://valkey:6379/0
redis-password-file: /run/secrets/o9s.vlky.password # the password, kept out of this file
listen: { host: 0.0.0.0, port: 8080 }
retention: 7d # jobs and reports are deleted this long after they settle
recent: 10 # latest reports the form lists, one per host; 0 lists none
previews: true # a finished scan keeps a thumbnail of its seed’s first screen; false takes none
examples: # sites the instance scans by itself and lists under /examples; none without sites
  every: 7d # a site is rescanned once its last example is this old
  sites: [www.bbc.com, elpais.com, https://www.wikipedia.org/] # a bare domain is https
workers: 2 # scans one worker process runs at a time
max-queued: 100 # a new job is refused with 503 while this many wait
allow-private: false # true lets scans reach loopback and private networks, and allows the browser
clock-references: [https://www.cloudflare.com/, https://www.google.com/, https://www.wikipedia.org/] # our clock is checked against their Date at start; [] skips it
defaults: # org.spiderlint keys every scan starts from, under the request’s
  resources: { max-per-page: 50 }
page:
  directory: /etc/spiderlint/page # head.html, header.html and footer.html, each also as <slot>.<lang>.html
  assets: /etc/spiderlint/assets # served as they are under /assets/
analytics:
  matomo: { url: https://mtm.example/, site-id: 3, site: https://scan.example/, privacy: https://scan.example/privacy } # page views reported by the server
clients:
  rate: { jobs: 10, per: 1h } # scans one client address may queue; false for no limit
  trusted-proxies: [172.18.0.0/16] # peers whose X-Forwarded-For names the client
  trust-providers: [cloudflare] # CDN edges trusted the same way: cloudflare, akamai, fastly
policies: # the first policy whose hosts match the target wins; none matching refuses it
  - name: ru
    hosts: [ru, рф]
    ban: Scans of these hosts are disabled on this instance
  - name: ua
    hosts: [ua]
    rate: { jobs: 1, per: 1h }
  - name: everyone
    hosts: ["*"]
    rate: { jobs: 10, per: 1h }
    repeat: 30m
    caps:
      {
        max-pages: 100,
        max-depth: 5,
        max-links: 200,
        max-resources: 200,
        max-sitemaps: 8,
        concurrency: 4,
        rate: 120,
        timeout: 30,
        max-body-size: 5000000,
        scan-timeout: 10m,
      }
    fetch: [http]
    rules:
      allow: [recommended, seo, security-headers, tls, links, "http/*"]
      deny: ["lighthouse/*"]

A policy entry:

KeyMeaning
hostsHost suffixes: ua matches ua and every name under it; *.ua and .ua mean the same. Unicode is accepted (рф). * is any host.
bantrue, or the reason the client is shown. The request is refused with 403.
rateAt most jobs scans of one host per per window (45s, 30m, 1h, 7d). Each host has its own window.
repeatA request for the same URL with the same settings inside this window gets the job already queued, running or done, with 200. Unset: every request queues.
capsUpper bounds; a request asking more, or 0 for unlimited, gets the cap. max-pages defaults to 100, max-links to 200, max-resources (images fetched last) to 200, max-sitemaps to 8, scan-timeout to 10 minutes.
fetchFetch modes a request may use; the first is the default. http only while allow-private is false.
rulesallow: rulesets, rule IDs or globs a request may name; absent allows any. deny: never run, even inside an allowed ruleset.

The form offers three rule sets as radios, recommended first: recommended (Standard), web-quick and web-comprehensive. web-quick runs search tags, security headers, caching, TLS, redirects, robots.txt and internal links over HTTP, on at most 25 pages and without fetching resources or probing external links. web-comprehensive is recommended plus the link graph, language, structured data, manifest, markup, link text, well-known files, trackers, footprint and vendor paths. Neither needs a browser or reaches what the server never serves. A choice is an ordinary request naming that rule set, so rules.allow and rules.deny decide it per host: an option no policy admits is not shown, and one the host’s own policy refuses answers the form with “A requested rule is not available”. List web-* in allow to offer them where allow is set. A preset lowers max-pages and never raises a cap past the policy’s. The job page and the report header name the rule set.

Under them, an AI policy box declares a policy, and one box per Content Signal (search, ai-input, ai-train) grants it. A declared policy is sent as the request’s content-signals list, the shape of org.projectfile.ai.content-signals: a crawler the site blocks while its signal is granted, or lets in while it is not, is reported. With no policy declared, the scan takes the site’s own Content-Signal lines.

A request that names no rules runs recommended, so an allow list without it refuses such a request. Settings a request may never set: plugins, sources, proxy, resolver, resolve, robots, cache, profile, format, fail-on, role, rulesets, sites, targets, allow-private, browser-install and plugin keys. The owner may still set them under defaults, except browser-install: scans never download a browser. A worker downloads Chromium into its cache once at startup instead (SPIDERLINT_BROWSER_INSTALL=false turns that off); mount a volume on /app/.cache/ms-playwright to keep it across restarts. Without it, a scan needing a browser fails naming the install.

Clients

clients.rate is a token bucket per client address over job submissions, from the API and the form alike: jobs at once, refilled evenly over per. It defaults to 10 an hour. The address is the peer’s, or, while the peer is in trusted-proxies, the X-Forwarded-For entry it added, read right to left. Behind a CDN, trust-providers adds its edge ranges to that walk; they are fetched from the provider when the API starts and every day, and a provider whose fetch fails is skipped with a warning, so its edges count as clients until the next fetch. Addresses live in the API process’s memory only, never in Redis, so each API replica keeps its own buckets.

Every request is logged with client, the same address, so the log shows who asked for what; keep the log’s retention to what that needs.

API

RouteAnswer
POST /v1/jobs202 and the job, Location naming it
GET /v1/jobs/<id>The job
GET /v1/jobs/<id>/eventsServer-sent events: progress on each change, then done, failed or expired
GET /v1/jobs/<id>/report/<format>The report as json, sarif, csv, checkstyle, human or html; 409 until it is done
GET /healthzstatus and the queue’s counts

The request body carries the target and, optionally, org.spiderlint keys:

{
  "url": "https://example.ua/",
  "settings": {
    "rules": ["seo"],
    "max-pages": 50,
    "groups": { "blog": { "match": ["/blog/**"] } }
  }
}

"content-signals": ["search", "ai-input"] holds the site to that AI policy, read as org.projectfile.ai.content-signals is: a known signal left out is withheld. It is not a setting, so settings never carries it.

"hidden": true keeps the scan out of the host’s badge and out of the latest reports. The job reports hidden, its page asks search engines to skip it, and it has a repeat window of its own, so a public request for the same site never receives it. Anyone holding the report’s address can still open it.

A job, with plan once its runner has planned it: the rulesets, each group’s rules, and the phases each rule reads facts from (crawl, resources, probes, site, lint). The job page lists every planned rule, labelled with the last of its phases.

A job:

{
  "id": "example.ua-20260927T090000Z-3f9c1a7e2b4d",
  "url": "https://example.ua/",
  "policy": "ua",
  "status": "running",
  "progress": { "done": 12, "total": 40, "phase": "crawl", "eta": { "low": 1, "high": 3, "unit": "minute" } },
  "plan": {
    "rulesets": ["recommended"],
    "groups": { "default": ["html/lang/missing", "links/external/unreachable"] },
    "rules": { "html/lang/missing": ["crawl"], "links/external/unreachable": ["crawl", "probes"] }
  },
  "created": "2026-09-27T09:00:00.000Z",
  "started": "2026-09-27T09:00:01.000Z",
  "links": {
    "self": "/v1/jobs/example.ua-20260927T090000Z-3f9c1a7e2b4d",
    "page": "/jobs/example.ua-20260927T090000Z-3f9c1a7e2b4d",
    "events": "/v1/jobs/example.ua-20260927T090000Z-3f9c1a7e2b4d/events"
  }
}

status is queued, running, done or failed. eta is a range in seconds, absent until a few pages are timed. A done job adds summary, as the json report carries it with the rating, and links.reports. A failed job adds error. The ID is the host, the UTC time the job was queued and 48 random bits, so a report’s address says what and when; the random part keeps it unguessable.

A refusal is { "error": { "code": "…", "message": "…" } }. Clients translate the code; the message is for logs:

StatusCode
400invalid-body, invalid-url, invalid-settings, forbidden-setting, unknown-rule
403banned, no-policy, forbidden-rule, forbidden-fetch
404not-found, unknown-format
409not-ready
429rate-limited (the host’s window), client-rate-limited, with Retry-After
503queue-full, with Retry-After

unknown-rule names a ruleset or rule ID that no configured plugin defines; it is checked before any window is charged.

Pages

RoutePage
GET /A form taking a domain (https:// is assumed) or a URL, with a “Hide from results” box, above the latest reports
POST /Queues the scan and redirects to its page with 303, or shows the form with the refusal
GET /jobs/<id>Progress while queued or running, then the report, its downloads and the badge
GET /badge/<host>.svgThe grade of the host’s latest finished scan, linking to it; not scanned otherwise
GET /examples[/<n>]The examples as cards, twelve a page in the order examples.sites lists them; 404 without examples
GET /previews/<id>.webpThe thumbnail of a finished scan, 404 when it has none

Pages are rendered on the server and work without JavaScript: a waiting page refreshes itself every 5 s, and with scripts it follows the job’s events instead. The language comes from Accept-Language (en, es, uk, English otherwise), with lang and dir set; finding messages and rule IDs stay as the report carries them. A form sent from another site (Sec-Fetch-Site: cross-site) is refused. Every page carries a content security policy allowing only its own style sheet and script by hash.

A finished host is the badge’s for retention, so its latest report is public to anyone who knows the hostname. A hidden scan never becomes the host’s latest.

The form lists the latest reports under recent: one per host, so a rescan replaces the host’s entry, newest first, each with its grade and its finish time in UTC. An entry lives as long as its report and a hidden scan is never listed. recent: 0 turns the list off; an unreachable Redis shows the form without it. Each entry is a card: the thumbnail, the page title, the domain, the grade and the finish time.

After the report, the scan runner opens the seed in Chromium and keeps its first screen (1280×800, as a 480 px WebP) and its title, unless the scan is hidden or previews is false; a failure or the scan’s timeout leaves the card blank and never fails the scan. Chromium resolves no name itself: every request it makes is answered by Node’s fetch under the scan’s address guard, so a preview reaches no private address while allow-private is false, the same as the crawl. The preview lives as long as its report and is the report page’s og:image.

examples names sites the instance scans by itself. Once a minute, while no scan waits in the queue and a worker stays free, one API replica queues the example due longest: a site never scanned, else one whose last example is every old. A host is tried once per every, finished or not. Examples leave one of workers to readers and queue behind their scans, so with workers: 1 an example can still hold the only worker until it ends. Each example runs under the policy its host matches, with no client bucket or host window charged. Its report and preview never expire: the next finished example of the host replaces them, and a failed one leaves the previous in place. A site removed from the list loses its example within a minute. The header links to /examples while any site is listed.

Customising pages

An instance owner adds to the form and job pages from the settings file, with no change to the image. Both keys under page are read at start and again whenever the settings change; a fragment edited on disk is picked up within 5 s, and an invalid edit is logged and the last good fragments stay. The badge and the API are never touched.

  • page.directory holds up to three HTML fragments: head.html goes into the <head>, header.html above the page and footer.html below it. A fragment named <slot>.<lang>.html (footer.uk.html) wins for readers of that language, the language Accept-Language picks; the plain file is the fallback. {lang} and {dir} inside a fragment become the language code and ltr or rtl, and nothing else is substituted.
  • page.assets is a directory served under /assets/ with the type its extension names. There is no listing, no dotfile and nothing outside the directory, so an owner can host a script or an image on the server’s own origin.

The content security policy stays automatic. When a fragment loads, every inline <script> and <style> in it is hashed, per language since {lang} changes the text, and joins that response’s policy. An external <script src> or <link rel="stylesheet"> must carry integrity and be https: or a path on the server, or the settings are refused naming the file; its origin joins the policy. While page.assets is set, 'self' joins script-src and style-src too, so a fragment can import a module it hosts. Inline event handlers and style="" attributes stay blocked, and the pages work without JavaScript.

analytics.matomo reports each form and job page view to a Matomo from the server, through its HTTP tracking API: no script reaches the browser, the policy does not change and visits without JavaScript count. Only the page name, its route, the language and the user agent are sent, never the client address. The badge, /assets/ and /v1/ are not reported, nor a visitor who sends DNT: 1 or Sec-GPC: 1. A job page is tracked as /jobs/:id titled “Scan report”, with the scanned host in the title only under include-hosts: true. Every page links privacy while it is on. Each report waits at most 3 s and never delays the page; after a failure reporting pauses, a minute longer for each failure in a row, up to ten.

Worked example, a banner module hosted on the server: copy its per-locale files into page.assets, then one head.html loads the one for the reader’s language.

<script type="module">import "/assets/banner/{lang}.js";</script>

Worked example, Matomo: no fragment, only the block under analytics shown in the settings file above. A browser tracker would instead be a head.html with its <script src="https://matomo.example/matomo.js" integrity="…">, which also needs the connect-src and img-src a tracker uses and so is not supported.

Each load logs which fragments, assets and Matomo are active and how many hashes were added to the policy.

Address guard

With allow-private: false every connection a scan makes resolves through a guarded lookup and refuses loopback, private, link-local, CGNAT and unique-local addresses, and an address literal in one of those ranges is refused before a request is sent, on every redirect hop too. The browser resolves names itself, so it is off. Keep the scan network routed to nothing it protects anyway, and Redis behind a password.

Deployment

services:
  valkey:
    image: kiota.ch/o9s/valkey:latest
    environment: { O9S_VLKY_SAVE: "" }
    secrets: [o9s.vlky.password]
  spiderlint-api:
    image: kiota.ch/damian-buho/spiderlint:latest
    environment: { SPIDERLINT_MODE: api }
    secrets: [o9s.vlky.password]
    volumes: [./server.yaml:/etc/spiderlint/server.yaml:ro]
  spiderlint-worker:
    image: kiota.ch/damian-buho/spiderlint:latest
    environment: { SPIDERLINT_MODE: worker }
    secrets: [o9s.vlky.password]
    volumes: [./server.yaml:/etc/spiderlint/server.yaml:ro]

The health check probes /healthz in api and all modes. A stopped worker kills its running scans; the queue hands them to another worker once their lock expires.

Telemetry

Traces, metrics and logs go to an OpenTelemetry collector over OTLP/HTTP once any of these variables names an endpoint. Unset, the SDK and its exporters are never loaded, and stderr output is the same either way. The exporters resolve the collector through the system, so it may sit on a private address while allow-private is false; only what a scan fetches meets the address guard.

VariableEffect
OTEL_EXPORTER_OTLP_ENDPOINTBase URL of the collector, http://collector:4318; switches telemetry on
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT, OTEL_EXPORTER_OTLP_METRICS_ENDPOINT, OTEL_EXPORTER_OTLP_LOGS_ENDPOINTOne signal’s full URL; any one also switches telemetry on
OTEL_SERVICE_NAMEservice.name of every signal, spiderlint when unset
OTEL_EXPORTER_OTLP_PROTOCOLhttp/json for traces and metrics; the log transport also takes http/protobuf or grpc
OTEL_METRIC_EXPORT_INTERVALMilliseconds between metric exports, 15000 by default
OTEL_SDK_DISABLEDtrue keeps everything off whatever the endpoints say

What each signal carries:

  • Traces: one span per API request (GET /v1/jobs/:id), continuing a traceparent the caller sends; scan job in the worker, continuing the request that queued it through the job’s data; scan in the runner child, continuing the job through its stdin; under it one page span per crawled page and one extract <id> span per extractor run. The CLI traces a run the same way, as spiderlint <command>.
  • Metrics: spiderlint.http.requests (route, method, status), spiderlint.refusals (by code, rate windows and client buckets included), spiderlint.queue.depth (by state), spiderlint.scan.duration (seconds, by outcome), spiderlint.scan.pages and spiderlint.extractor.duration (milliseconds, by extractor).
  • Logs: every pino record, with the trace_id and span_id of the span it was written in, through pino-opentelemetry-transport.

Español · Українська

Usage

spiderlint

$ spiderlint --help
spiderlint
Site-wide linter for SEO tags, security headers, TLS and links
https://dbuho.me/project/spiderlint/

Usage: spiderlint <command> [domain…] [options]
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.

Check a site:
  audit [domain…]                 crawl a site, then lint it
  crawl [domain…]                 fetch pages into the store, lint nothing
  lint [domain…]                  lint the stored pages, with no network
  show-report [domain…]           print the stored report again, in any format

Inspect:
  show-facts <url>                fetch one page and print its facts
  export-facts [domain…]          print every stored page’s facts, no network
  list-groups [domain…]           count the pages in each URL group

Rules:
  list-rules [ruleset|id…]        list rules at the severity this config gives
  list-presets                    list the shipped rulesets and their groups
  explain-rule <rule>             show a rule’s facts, expectation and fix
  rules                           print the shipped rule catalog, or write one
                                  page per rule

Cache:
  show-cache [domain…]            show the entries, bytes and age of each bucket
  purge-cache [bucket] [domain…]  delete a site’s cached entries
  warm-cache [domain…]            fetch robots.txt and sitemaps without crawling

Commands:
  help [command]                  show a command’s options and examples

Options:
  --config <path>                 settings file
                                  (default: projectfile.yaml)
                                  (env: SPIDERLINT_CONFIG)
  --site <names>                  only these org.spiderlint.sites, repeatable
                                  (default: all)
  --[no-]color                    force or disable color
                                  (default: auto, env: NO_COLOR, FORCE_COLOR)
  --[no-]progress                 status line on an interactive stderr
                                  (default: auto)
  --log-level <level>             trace, debug, info, warn, error or silent
                                  (default: warn, env: SPIDERLINT_LOG_LEVEL)
  -V, --version                   show the version
  -h, --help                      show this screen, or a command’s

Run spiderlint <command> --help for a command’s options and examples.

Exit codes:
  0  clean
  1  findings at or above --fail-on
  2  usage or config error
  3  nothing fetched, or an --offline cache miss
  4  the run failed

Audit a site

audit crawls the site into the local store, then lints it; show-report prints the stored result again in another format, with no network.

spiderlint audit example.org
spiderlint show-report example.org --format sarif > spiderlint.sarif

Explain a rule

explain-rule prints what a rule reads, what it expects and how to fix a finding, with no network.

$ spiderlint explain-rule cookies/host-prefix/invalid
cookies/host-prefix/invalid
severity warning (preset warning)
score    6.0
scope    page
kind     declarative
rulesets cookies
reads    http.cookies
expect   {"type":"array","items":{"anyOf":[{"not":{"properties":{"name":{"pattern":"^(?i:__Host-)"}}}},{"properties":{"secure":{"const":true},"path":{"const":"/"}},"required":["path"],"not":{"required":["domain"]}}]}}
message  a __Host- cookie lacks Secure or Path=/, or sets Domain, so browsers reject it
fix      Add Secure and Path=/, and omit Domain, from every __Host- cookie.
docs     https://developer.mozilla.org/docs/Web/HTTP/Headers/Set-Cookie#cookie_prefixes

spiderlint audit

$ spiderlint audit --help
Usage: spiderlint audit [options] [domain…]
Crawl a site, then lint it.

Keeps the pages in the store, so lint and show-report reuse them offline.
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.
Rule IDs and rulesets are comma-separated; an ID may be a glob such as
lighthouse/*.

Crawl:
  --fetch <mode>            auto, http, browser or adaptive
                            (default: auto, env: SPIDERLINT_FETCH)
  --browser <name>          chromium, firefox or webkit
                            (default: chromium, env: SPIDERLINT_BROWSER)
  --scope <scope>           follow links within the origin, host or domain
                            (default: origin, env: SPIDERLINT_SCOPE)
  --concurrency <n>         pages in flight, 0: one per CPU, halved in a browser
                            (default: 0, env: SPIDERLINT_CONCURRENCY)
  --rate <n>                requests per minute, 0 for no limit
                            (default: 0, env: SPIDERLINT_RATE)
  --timeout <seconds>       seconds one page may take
                            (default: 60, env: SPIDERLINT_TIMEOUT)
  --profile <name>          tor or i2p: local proxy, concurrency 4, timeout 240
                            (env: SPIDERLINT_PROFILE)
  --proxy <url>             http, https or socks5h proxy for every request
                            (env: SPIDERLINT_PROXY)
  --via <host>              instance a web scan names in its user agent
                            (env: SPIDERLINT_VIA)
  --max-pages <n>           page limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_PAGES)
  --max-depth <n>           link depth limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_DEPTH)
  --max-body-size <bytes>   body size cap
                            (default: 10000000, env: SPIDERLINT_MAX_BODY_SIZE)
  --include-urls <glob>     crawl only matching paths and queries, repeatable
                            (env: SPIDERLINT_INCLUDE_URLS)
  --exclude-urls <glob>     skip matching paths and queries, repeatable
                            (env: SPIDERLINT_EXCLUDE_URLS)
  --source <id:arg>         add a plugin source’s URLs; list:FILE crawls a URL
                            list only, repeatable
                            (env: SPIDERLINT_SOURCES)
  --no-robots               ignore robots.txt (env: SPIDERLINT_ROBOTS=false)
  --no-sitemap              skip sitemap discovery
                            (env: SPIDERLINT_SITEMAP=false)
  --no-keepalive            one connection per request
                            (env: SPIDERLINT_KEEPALIVE=false)
  --no-resources            skip scripts, styles, images and fonts
                            (env: SPIDERLINT_RESOURCES=false)
  --canonical-origin <url>  origin the pages are built for; its URLs count as
                            the crawled one’s
                            (env: SPIDERLINT_CANONICAL_ORIGIN)
  --role <role>             production, staging or development
                            (default: production, env: SPIDERLINT_ROLE)
  --resolver <list>         DNS servers to ask, address[:port],…
                            (default: system, env: SPIDERLINT_RESOLVER)
  --resolve <pin>           pin host[:port]:address instead of DNS, repeatable
                            (env: SPIDERLINT_RESOLVE)
  --no-allow-private        refuse loopback, private and link-local addresses
                            (env: SPIDERLINT_ALLOW_PRIVATE=false)
  --no-browser-install      fail on a missing browser, print its install command
                            (env: SPIDERLINT_BROWSER_INSTALL=false)

Rules:
  --rules <rulesets>        rulesets or rule IDs to run in every group
                            (default: recommended, env: SPIDERLINT_RULES)
  --exclude-rules <ids>     skip these rules (env: SPIDERLINT_EXCLUDE_RULES)
  --error <ids>             report these rules as errors
                            (env: SPIDERLINT_OVERRIDE_ERROR)
  --warning <ids>           report these rules as warnings
                            (env: SPIDERLINT_OVERRIDE_WARNING)
  --info <ids>              report these rules as info
                            (env: SPIDERLINT_OVERRIDE_INFO)
  --hint <ids>              report these rules as hints: no grade, no failure
                            (env: SPIDERLINT_OVERRIDE_HINT)

Report:
  --format <format>         human, json, sarif, checkstyle, csv, html, agent, …
                            (default: human, env: SPIDERLINT_FORMAT)
  --fail-on <level>         exit 1 at error, warning, info, 0.1–9.9 or never
                            (default: error, env: SPIDERLINT_FAIL_ON)
  --unfold                  one finding per page, every URL and location listed
                            (env: SPIDERLINT_FOLD=false)
  --show-hints              list hints in human output, not only their count
  --explain                 print each finding’s fix and docs in human output
  --stats                   count, min, median, p95, max, total per numeric fact
  --sort <order>            severity, then impact; or impact alone
                            (default: severity)
  --output <dir>            with --format agent, one prompt file per rule in dir

Store:
  --store <dir>             store directory
                            (default: /app/.cache/spiderlint/<host>)
  --resume                  continue an interrupted crawl
  --no-cache                neither read nor write the cache
                            (env: SPIDERLINT_CACHE=off)
  --refresh                 refetch everything, rewrite the cache
                            (env: SPIDERLINT_CACHE=refresh)
  --offline                 cache only, a miss exits 3
                            (env: SPIDERLINT_CACHE=offline)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Audit a site with the recommended rules:
    spiderlint audit example.com
  Write a SARIF report for code scanning:
    spiderlint audit example.com --format sarif > report.sarif
  Run every rule except Lighthouse’s:
    spiderlint audit example.com --rules all --exclude-rules 'lighthouse/*'
  Check a single rule:
    spiderlint audit example.com --rules http/alt-svc-h3/missing
  Audit only the URLs listed in a file:
    spiderlint audit --source list:urls.txt

spiderlint crawl

$ spiderlint crawl --help
Usage: spiderlint crawl [options] [domain…]
Fetch pages into the store, lint nothing.

A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.

Crawl:
  --fetch <mode>            auto, http, browser or adaptive
                            (default: auto, env: SPIDERLINT_FETCH)
  --browser <name>          chromium, firefox or webkit
                            (default: chromium, env: SPIDERLINT_BROWSER)
  --scope <scope>           follow links within the origin, host or domain
                            (default: origin, env: SPIDERLINT_SCOPE)
  --concurrency <n>         pages in flight, 0: one per CPU, halved in a browser
                            (default: 0, env: SPIDERLINT_CONCURRENCY)
  --rate <n>                requests per minute, 0 for no limit
                            (default: 0, env: SPIDERLINT_RATE)
  --timeout <seconds>       seconds one page may take
                            (default: 60, env: SPIDERLINT_TIMEOUT)
  --profile <name>          tor or i2p: local proxy, concurrency 4, timeout 240
                            (env: SPIDERLINT_PROFILE)
  --proxy <url>             http, https or socks5h proxy for every request
                            (env: SPIDERLINT_PROXY)
  --via <host>              instance a web scan names in its user agent
                            (env: SPIDERLINT_VIA)
  --max-pages <n>           page limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_PAGES)
  --max-depth <n>           link depth limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_DEPTH)
  --max-body-size <bytes>   body size cap
                            (default: 10000000, env: SPIDERLINT_MAX_BODY_SIZE)
  --include-urls <glob>     crawl only matching paths and queries, repeatable
                            (env: SPIDERLINT_INCLUDE_URLS)
  --exclude-urls <glob>     skip matching paths and queries, repeatable
                            (env: SPIDERLINT_EXCLUDE_URLS)
  --source <id:arg>         add a plugin source’s URLs; list:FILE crawls a URL
                            list only, repeatable
                            (env: SPIDERLINT_SOURCES)
  --no-robots               ignore robots.txt (env: SPIDERLINT_ROBOTS=false)
  --no-sitemap              skip sitemap discovery
                            (env: SPIDERLINT_SITEMAP=false)
  --no-keepalive            one connection per request
                            (env: SPIDERLINT_KEEPALIVE=false)
  --no-resources            skip scripts, styles, images and fonts
                            (env: SPIDERLINT_RESOURCES=false)
  --canonical-origin <url>  origin the pages are built for; its URLs count as
                            the crawled one’s
                            (env: SPIDERLINT_CANONICAL_ORIGIN)
  --role <role>             production, staging or development
                            (default: production, env: SPIDERLINT_ROLE)
  --resolver <list>         DNS servers to ask, address[:port],…
                            (default: system, env: SPIDERLINT_RESOLVER)
  --resolve <pin>           pin host[:port]:address instead of DNS, repeatable
                            (env: SPIDERLINT_RESOLVE)
  --no-allow-private        refuse loopback, private and link-local addresses
                            (env: SPIDERLINT_ALLOW_PRIVATE=false)
  --no-browser-install      fail on a missing browser, print its install command
                            (env: SPIDERLINT_BROWSER_INSTALL=false)

Store:
  --store <dir>             store directory
                            (default: /app/.cache/spiderlint/<host>)
  --resume                  continue an interrupted crawl
  --no-cache                neither read nor write the cache
                            (env: SPIDERLINT_CACHE=off)
  --refresh                 refetch everything, rewrite the cache
                            (env: SPIDERLINT_CACHE=refresh)
  --offline                 cache only, a miss exits 3
                            (env: SPIDERLINT_CACHE=offline)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Crawl now, lint later:
    spiderlint crawl example.com
  Continue a crawl that was interrupted:
    spiderlint crawl example.com --resume

spiderlint explain-rule

$ spiderlint explain-rule --help
Usage: spiderlint explain-rule [options] <rule>
Show a rule’s facts, expectation and fix.

Output:
  --format <format>  human or json (default: human, env: SPIDERLINT_FORMAT)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Explain a rule before turning it on:
    spiderlint explain-rule html/theme-color-dark/missing

spiderlint export-facts

$ spiderlint export-facts --help
Usage: spiderlint export-facts [options] [domain…]
Print every stored page’s facts, no network.

Facts are what spiderlint records about a page, such as headers, HTML, TLS,
timings and sizes; rules judge them.
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.

Output:
  --format <format>  human, json, yaml, csv (default: human)
  --facts <glob>     fact paths to show, repeatable

Store:
  --store <dir>      store directory (default: /app/.cache/spiderlint/<host>)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Export page weight and timings as CSV:
    spiderlint export-facts example.com --format csv --facts 'co2.*' --facts 'http.timing.*'

spiderlint lint

$ spiderlint lint --help
Usage: spiderlint lint [options] [domain…]
Lint the stored pages, with no network.

A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.
Rule IDs and rulesets are comma-separated; an ID may be a glob such as
lighthouse/*.

Rules:
  --rules <rulesets>     rulesets or rule IDs to run in every group
                         (default: recommended, env: SPIDERLINT_RULES)
  --exclude-rules <ids>  skip these rules (env: SPIDERLINT_EXCLUDE_RULES)
  --error <ids>          report these rules as errors
                         (env: SPIDERLINT_OVERRIDE_ERROR)
  --warning <ids>        report these rules as warnings
                         (env: SPIDERLINT_OVERRIDE_WARNING)
  --info <ids>           report these rules as info
                         (env: SPIDERLINT_OVERRIDE_INFO)
  --hint <ids>           report these rules as hints: no grade, no failure
                         (env: SPIDERLINT_OVERRIDE_HINT)

Report:
  --format <format>      human, json, sarif, checkstyle, csv, html, agent, …
                         (default: human, env: SPIDERLINT_FORMAT)
  --fail-on <level>      exit 1 at error, warning, info, 0.1–9.9 or never
                         (default: error, env: SPIDERLINT_FAIL_ON)
  --unfold               one finding per page, every URL and location listed
                         (env: SPIDERLINT_FOLD=false)
  --show-hints           list hints in human output, not only their count
  --explain              print each finding’s fix and docs in human output
  --stats                count, min, median, p95, max, total per numeric fact
  --sort <order>         severity, then impact; or impact alone
                         (default: severity)
  --output <dir>         with --format agent, one prompt file per rule in dir

Store:
  --store <dir>          store directory
                         (default: /app/.cache/spiderlint/<host>)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Lint the last crawl, failing on warnings too:
    spiderlint lint example.com --fail-on warning
  Try every rule on the same pages:
    spiderlint lint example.com --rules all

spiderlint list-groups

$ spiderlint list-groups --help
Usage: spiderlint list-groups [options] [domain…]
Count the pages in each URL group.

Crawls the site and names the pages no group in org.spiderlint.groups matched.
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.

Crawl:
  --fetch <mode>            auto, http, browser or adaptive
                            (default: auto, env: SPIDERLINT_FETCH)
  --browser <name>          chromium, firefox or webkit
                            (default: chromium, env: SPIDERLINT_BROWSER)
  --scope <scope>           follow links within the origin, host or domain
                            (default: origin, env: SPIDERLINT_SCOPE)
  --concurrency <n>         pages in flight, 0: one per CPU, halved in a browser
                            (default: 0, env: SPIDERLINT_CONCURRENCY)
  --rate <n>                requests per minute, 0 for no limit
                            (default: 0, env: SPIDERLINT_RATE)
  --timeout <seconds>       seconds one page may take
                            (default: 60, env: SPIDERLINT_TIMEOUT)
  --profile <name>          tor or i2p: local proxy, concurrency 4, timeout 240
                            (env: SPIDERLINT_PROFILE)
  --proxy <url>             http, https or socks5h proxy for every request
                            (env: SPIDERLINT_PROXY)
  --via <host>              instance a web scan names in its user agent
                            (env: SPIDERLINT_VIA)
  --max-pages <n>           page limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_PAGES)
  --max-depth <n>           link depth limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_DEPTH)
  --max-body-size <bytes>   body size cap
                            (default: 10000000, env: SPIDERLINT_MAX_BODY_SIZE)
  --include-urls <glob>     crawl only matching paths and queries, repeatable
                            (env: SPIDERLINT_INCLUDE_URLS)
  --exclude-urls <glob>     skip matching paths and queries, repeatable
                            (env: SPIDERLINT_EXCLUDE_URLS)
  --source <id:arg>         add a plugin source’s URLs; list:FILE crawls a URL
                            list only, repeatable
                            (env: SPIDERLINT_SOURCES)
  --no-robots               ignore robots.txt (env: SPIDERLINT_ROBOTS=false)
  --no-sitemap              skip sitemap discovery
                            (env: SPIDERLINT_SITEMAP=false)
  --no-keepalive            one connection per request
                            (env: SPIDERLINT_KEEPALIVE=false)
  --no-resources            skip scripts, styles, images and fonts
                            (env: SPIDERLINT_RESOURCES=false)
  --canonical-origin <url>  origin the pages are built for; its URLs count as
                            the crawled one’s
                            (env: SPIDERLINT_CANONICAL_ORIGIN)
  --role <role>             production, staging or development
                            (default: production, env: SPIDERLINT_ROLE)
  --resolver <list>         DNS servers to ask, address[:port],…
                            (default: system, env: SPIDERLINT_RESOLVER)
  --resolve <pin>           pin host[:port]:address instead of DNS, repeatable
                            (env: SPIDERLINT_RESOLVE)
  --no-allow-private        refuse loopback, private and link-local addresses
                            (env: SPIDERLINT_ALLOW_PRIVATE=false)
  --no-browser-install      fail on a missing browser, print its install command
                            (env: SPIDERLINT_BROWSER_INSTALL=false)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Check the groups match the site’s templates:
    spiderlint list-groups example.com --max-pages 200

spiderlint list-presets

$ spiderlint list-presets --help
Usage: spiderlint list-presets [options]
List the shipped rulesets and their groups.

Output:
  --format <format>  human or json (default: human, env: SPIDERLINT_FORMAT)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  See which presets exist:
    spiderlint list-presets

spiderlint list-rules

$ spiderlint list-rules --help
Usage: spiderlint list-rules [options] [ruleset|id…]
List rules at the severity this config gives.

Rule IDs and rulesets are comma-separated; an ID may be a glob such as
lighthouse/*.

Rules:
  --rules <rulesets>     rulesets or rule IDs to run in every group
                         (default: recommended, env: SPIDERLINT_RULES)
  --exclude-rules <ids>  skip these rules (env: SPIDERLINT_EXCLUDE_RULES)
  --error <ids>          report these rules as errors
                         (env: SPIDERLINT_OVERRIDE_ERROR)
  --warning <ids>        report these rules as warnings
                         (env: SPIDERLINT_OVERRIDE_WARNING)
  --info <ids>           report these rules as info
                         (env: SPIDERLINT_OVERRIDE_INFO)
  --hint <ids>           report these rules as hints: no grade, no failure
                         (env: SPIDERLINT_OVERRIDE_HINT)

Output:
  --format <format>      human or json (default: human, env: SPIDERLINT_FORMAT)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  List the security header rules:
    spiderlint list-rules security-headers
  List every rule as JSON:
    spiderlint list-rules --format json

spiderlint purge-cache

$ spiderlint purge-cache --help
Usage: spiderlint purge-cache [options] [bucket] [domain…]
Delete a site’s cached entries.

A bucket is one of pages, probes, profiles, lists, resources, robots, sitemaps,
origins, dns, extractors; with none, every bucket is purged.
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.

Purge:
  --older-than <age>  only entries older than 45s, 30m, 24h or 7d

Store:
  --store <dir>       store directory (default: /app/.cache/spiderlint/<host>)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Drop cached pages older than a week:
    spiderlint purge-cache pages example.com --older-than 7d

spiderlint rules

$ spiderlint rules --help
Usage: spiderlint rules [options]
Print the shipped rule catalog, or write one page per rule.

The catalog is YAML at org.projectfile.pages.rules.items; markdown writes one
page per rule, one per ruleset and index.md into --output.

Output:
  --format <format>  yaml or markdown (default: yaml)
  --lang <tag>       en, es, uk (default: from LC_ALL, LC_MESSAGES or LANG)
  --output <dir>     with --format markdown, the directory to write pages in

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Print the rule catalog in Spanish:
    spiderlint rules --lang es
  Write the rule pages of a documentation book:
    spiderlint rules --format markdown --output book/rules

spiderlint show-cache

$ spiderlint show-cache --help
Usage: spiderlint show-cache [options] [domain…]
Show the entries, bytes and age of each bucket.

A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.

Store:
  --store <dir>  store directory (default: /app/.cache/spiderlint/<host>)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  See what is cached for a site:
    spiderlint show-cache example.com

spiderlint show-facts

$ spiderlint show-facts --help
Usage: spiderlint show-facts [options] <url>
Fetch one page and print its facts.

Facts are what spiderlint records about a page, such as headers, HTML, TLS,
timings and sizes; rules judge them. The site’s own facts are under site.
A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.

Crawl:
  --fetch <mode>            auto, http, browser or adaptive
                            (default: auto, env: SPIDERLINT_FETCH)
  --browser <name>          chromium, firefox or webkit
                            (default: chromium, env: SPIDERLINT_BROWSER)
  --scope <scope>           follow links within the origin, host or domain
                            (default: origin, env: SPIDERLINT_SCOPE)
  --concurrency <n>         pages in flight, 0: one per CPU, halved in a browser
                            (default: 0, env: SPIDERLINT_CONCURRENCY)
  --rate <n>                requests per minute, 0 for no limit
                            (default: 0, env: SPIDERLINT_RATE)
  --timeout <seconds>       seconds one page may take
                            (default: 60, env: SPIDERLINT_TIMEOUT)
  --profile <name>          tor or i2p: local proxy, concurrency 4, timeout 240
                            (env: SPIDERLINT_PROFILE)
  --proxy <url>             http, https or socks5h proxy for every request
                            (env: SPIDERLINT_PROXY)
  --via <host>              instance a web scan names in its user agent
                            (env: SPIDERLINT_VIA)
  --max-pages <n>           page limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_PAGES)
  --max-depth <n>           link depth limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_DEPTH)
  --max-body-size <bytes>   body size cap
                            (default: 10000000, env: SPIDERLINT_MAX_BODY_SIZE)
  --include-urls <glob>     crawl only matching paths and queries, repeatable
                            (env: SPIDERLINT_INCLUDE_URLS)
  --exclude-urls <glob>     skip matching paths and queries, repeatable
                            (env: SPIDERLINT_EXCLUDE_URLS)
  --source <id:arg>         add a plugin source’s URLs; list:FILE crawls a URL
                            list only, repeatable
                            (env: SPIDERLINT_SOURCES)
  --no-robots               ignore robots.txt (env: SPIDERLINT_ROBOTS=false)
  --no-sitemap              skip sitemap discovery
                            (env: SPIDERLINT_SITEMAP=false)
  --no-keepalive            one connection per request
                            (env: SPIDERLINT_KEEPALIVE=false)
  --no-resources            skip scripts, styles, images and fonts
                            (env: SPIDERLINT_RESOURCES=false)
  --canonical-origin <url>  origin the pages are built for; its URLs count as
                            the crawled one’s
                            (env: SPIDERLINT_CANONICAL_ORIGIN)
  --role <role>             production, staging or development
                            (default: production, env: SPIDERLINT_ROLE)
  --resolver <list>         DNS servers to ask, address[:port],…
                            (default: system, env: SPIDERLINT_RESOLVER)
  --resolve <pin>           pin host[:port]:address instead of DNS, repeatable
                            (env: SPIDERLINT_RESOLVE)
  --no-allow-private        refuse loopback, private and link-local addresses
                            (env: SPIDERLINT_ALLOW_PRIVATE=false)
  --no-browser-install      fail on a missing browser, print its install command
                            (env: SPIDERLINT_BROWSER_INSTALL=false)

Output:
  --format <format>         human, json, yaml, csv (default: human)
  --facts <glob>            fact paths to show, repeatable

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  See every fact about the home page:
    spiderlint show-facts example.com
  Print one page’s facts as JSON:
    spiderlint show-facts example.com/about/ --format json

spiderlint show-report

$ spiderlint show-report --help
Usage: spiderlint show-report [options] [domain…]
Print the stored report again, in any format.

A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.

Report:
  --format <format>  human, json, sarif, checkstyle, csv, html, agent, …
                     (default: human, env: SPIDERLINT_FORMAT)
  --fail-on <level>  exit 1 at error, warning, info, 0.1–9.9 or never
                     (default: error, env: SPIDERLINT_FAIL_ON)
  --unfold           one finding per page, every URL and location listed
                     (env: SPIDERLINT_FOLD=false)
  --show-hints       list hints in human output, not only their count
  --explain          print each finding’s fix and docs in human output
  --stats            count, min, median, p95, max, total per numeric fact
  --sort <order>     severity, then impact; or impact alone (default: severity)
  --output <dir>     with --format agent, one prompt file per rule in dir

Store:
  --store <dir>      store directory (default: /app/.cache/spiderlint/<host>)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Turn the last report into a web page:
    spiderlint show-report example.com --format html > report.html

spiderlint warm-cache

$ spiderlint warm-cache --help
Usage: spiderlint warm-cache [options] [domain…]
Fetch robots.txt and sitemaps without crawling.

A domain is example.com or a URL to start from; without a scheme, https:// is
assumed.
With no domain, the targets come from org.spiderlint in the config, one run per
site.

Crawl:
  --fetch <mode>            auto, http, browser or adaptive
                            (default: auto, env: SPIDERLINT_FETCH)
  --browser <name>          chromium, firefox or webkit
                            (default: chromium, env: SPIDERLINT_BROWSER)
  --scope <scope>           follow links within the origin, host or domain
                            (default: origin, env: SPIDERLINT_SCOPE)
  --concurrency <n>         pages in flight, 0: one per CPU, halved in a browser
                            (default: 0, env: SPIDERLINT_CONCURRENCY)
  --rate <n>                requests per minute, 0 for no limit
                            (default: 0, env: SPIDERLINT_RATE)
  --timeout <seconds>       seconds one page may take
                            (default: 60, env: SPIDERLINT_TIMEOUT)
  --profile <name>          tor or i2p: local proxy, concurrency 4, timeout 240
                            (env: SPIDERLINT_PROFILE)
  --proxy <url>             http, https or socks5h proxy for every request
                            (env: SPIDERLINT_PROXY)
  --via <host>              instance a web scan names in its user agent
                            (env: SPIDERLINT_VIA)
  --max-pages <n>           page limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_PAGES)
  --max-depth <n>           link depth limit, 0 for none
                            (default: 0, env: SPIDERLINT_MAX_DEPTH)
  --max-body-size <bytes>   body size cap
                            (default: 10000000, env: SPIDERLINT_MAX_BODY_SIZE)
  --include-urls <glob>     crawl only matching paths and queries, repeatable
                            (env: SPIDERLINT_INCLUDE_URLS)
  --exclude-urls <glob>     skip matching paths and queries, repeatable
                            (env: SPIDERLINT_EXCLUDE_URLS)
  --source <id:arg>         add a plugin source’s URLs; list:FILE crawls a URL
                            list only, repeatable
                            (env: SPIDERLINT_SOURCES)
  --no-robots               ignore robots.txt (env: SPIDERLINT_ROBOTS=false)
  --no-sitemap              skip sitemap discovery
                            (env: SPIDERLINT_SITEMAP=false)
  --no-keepalive            one connection per request
                            (env: SPIDERLINT_KEEPALIVE=false)
  --no-resources            skip scripts, styles, images and fonts
                            (env: SPIDERLINT_RESOURCES=false)
  --canonical-origin <url>  origin the pages are built for; its URLs count as
                            the crawled one’s
                            (env: SPIDERLINT_CANONICAL_ORIGIN)
  --role <role>             production, staging or development
                            (default: production, env: SPIDERLINT_ROLE)
  --resolver <list>         DNS servers to ask, address[:port],…
                            (default: system, env: SPIDERLINT_RESOLVER)
  --resolve <pin>           pin host[:port]:address instead of DNS, repeatable
                            (env: SPIDERLINT_RESOLVE)
  --no-allow-private        refuse loopback, private and link-local addresses
                            (env: SPIDERLINT_ALLOW_PRIVATE=false)
  --no-browser-install      fail on a missing browser, print its install command
                            (env: SPIDERLINT_BROWSER_INSTALL=false)

Store:
  --store <dir>             store directory
                            (default: /app/.cache/spiderlint/<host>)

Options for every command, see spiderlint --help:
  --config, --site, --[no-]color, --[no-]progress, --log-level

Examples:
  Prefetch robots.txt and sitemaps before an --offline run:
    spiderlint warm-cache example.com

Rules

Rules: 735

Severity

Each finding has a severity: error, warning, info or hint. --fail-on sets the lowest severity, or score, that fails the run.

Score

Each finding scores 0.0 to 9.9, and the score sets its severity: error 6.6–9.9, warning 3.3–6.5, info 1.0–3.2, hint 0.0–0.9. Some rules score by what they measured, so their page shows a range.

The report grades a run S to F by the share of checks that passed, a failed check costing more as its score rises: A ≥ 90 %, B ≥ 70 %, C ≥ 60 %, D ≥ 40 %, E ≥ 20 %. S means no check failed; an error caps the grade at B.

Scope

A page rule judges one page at a time. A group rule judges every page of a URL group together, such as every page of one template. A site rule judges the site once, such as its DNS or TLS.

Rulesets

A ruleset names the rules a URL group runs; the command line calls the shipped ones presets (spiderlint list-presets). A group with no rulesets of its own runs recommended.

Turning rules on and off

In the projectfile, rules adds rulesets to a group, exclude-rules drops rules, and override moves rules to another severity:

org:
  spiderlint:
    groups:
      default:
        rules: [recommended, tls-probe]
    exclude-rules: [dns/ns/single]
    override:
      error: [http/hsts/missing]

Families

Rulesets

  • agents: Files agents read: llms.txt, per-page Markdown sources, A2A agent card, MCP server card, Agent Skills, AI catalog, OKF, schemamap
  • all: Every rule that ships or a loaded plugin adds
  • axe: Accessibility checked by axe-core in the rendered page: WCAG A and AA, and best practices
  • axe:best-practice: axe-core best practices beyond WCAG
  • axe:wcag: WCAG 2.2 A and AA success criteria axe-core can test
  • browser: Checks that need a rendered page — console errors and unused preloads
  • carbon-txt: carbon.txt: present, valid, current, and its disclosures reachable
  • cookies: Secure, HttpOnly and SameSite on every cookie a page or resource sets, valid __Host- and __Secure- prefixes, and a lifetime browsers keep
  • cookies:browser: The cookie expectations over what scripts write through document.cookie
  • crawlers: Once per origin: fetches / as search engines and AI crawlers and holds their answers to the content signals
  • css: Style sheets and inline CSS as browsers parse them: syntax errors, unknown properties, values outside the grammar, and features the declared browser targets lack
  • dns: DNS and registration of every crawled host: HTTPS records, CAA, DNSSEC, name servers, zone timers, dangling CNAMEs, RDAP expiry and lock
  • dns:core: HTTPS record, CAA and its iodef contact, DNSSEC state and dangling CNAMEs, a handful of queries per host
  • dns:mail: Mail records matched to what each name does: a null MX, a deny-all SPF and a DMARC reject policy where it takes and sends no mail, one closed SPF record and an enforced DMARC policy where it does
  • dns:recommended: dns:core, the registration’s expiry and transfer lock, and name servers open to recursion
  • feeds: RSS, Atom and JSON Feed as readers need them: valid to their specification, content rendered, served for polling, and in step with the pages they describe
  • graph: Internal linking across the whole crawl, click depth, dead ends and weakly linked pages
  • html-validate: Markup validity, accessibility and document structure, checked by html-validate
  • html-validate:a11y: Accessibility defects html-validate can see in the markup
  • html-validate:document: Defects only a whole document has: doctype, labels, heading levels, SRI
  • html-validate:standard: Markup that breaks the HTML standard, with no style rules
  • htmlhint: Markup defects htmlhint reports by default: unpaired tags, duplicate IDs and attributes, a missing doctype or title
  • htmlhint:extra: Defects htmlhint ships off: missing alt, labels, lang, meta tags, obsolete tags, unsafe attribute characters
  • i18n: hreflang alternates that name each other back and answer 2xx, and lang against Content-Language and the language of the title and description
  • icons: Favicons and platform icons fetched and measured: the favicon, SVG, Apple touch, Safari pinned tab and Windows tile icons, and every declared size
  • images: Image weight and markup: bytes a modern format or a re-encode saves, heavy and oversized images, layout shift
  • images:assets: Fonts and text assets: WOFF2, font-display, and bytes minification saves
  • images:live: Images as the browser lays them out, on sampled pages: lazy loading against the fold, pixels shipped against pixels shown
  • insights: Pages that stand out from the rest of the site, all info
  • keyboard: Keyboard use on sampled pages: Tab reaches every control without a trap, focus shows, also under forced colours, and is not covered, a skip link comes first
  • lighthouse: Lighthouse on sampled pages: performance, accessibility, best-practices and SEO scores, and lab LCP, CLS, TBT and FCP
  • link-text: Links whose text says where they lead, judged in the page’s own language: English, Spanish and Ukrainian
  • links: Links that answer an error, internal links that redirect or carry nofollow, rel=me profiles that do not link back
  • live: The rendered page on sampled pages: motion under reduced-motion, contrast in a claimed dark scheme and under increased contrast, icons and opt-outs under forced colours, click handlers on plain elements, form fields small enough to zoom
  • mail: Mail authentication of names that take or send mail: SPF grammar and lookups, DMARC, DKIM keys, MX, MTA-STS, TLS-RPT and BIMI; DANE and STARTTLS once turned on
  • mail:recommended: SPF, DMARC and MX correctness of names that take or send mail
  • manifest: Web app manifest linked from every page, served as a manifest, and carrying what installation needs: name, id, start URL inside its scope, display mode, sized and maskable icons
  • markdownlint: Markdown a renderer or agent misreads: reversed or empty links, missing alt text, undefined references, broken tables and headings
  • markdownlint:extra: Markdown house style: line length, list, heading, emphasis and table style, spacing
  • markup: Markup the crawl can judge alone: language switcher links, video captions, input types matching their autocomplete
  • network: ASN, RPKI route validity and reverse DNS of every crawled host, its mail exchangers and name servers
  • origin: Once per origin: missing pages, error pages, entry variants, language redirects, compression, favicon, revalidation, cross-domain policies
  • parity: What a page loses without JavaScript, from its raw HTML and its rendered DOM; browser mode only
  • performance: Compression, caching, validators, protocol version and render-blocking HTML, no browser needed
  • podcasts: Podcast feeds as directories require them: iTunes channel and episode tags, a stable Podcasting 2.0 GUID, reachable enclosures and directory-ready artwork
  • privacy: Tracking vendors, and third-party or tracking cookies and web storage set before any interaction
  • recommended: The default ruleset of every group — all presets except browser
  • redirects: Redirect chain length and permanent redirects
  • rel-me: Each rel=me profile a page names, loaded in a browser so a link its scripts add counts, and whether it names the page back
  • resources: Scripts, styles, images and fonts — status, mixed content, integrity, caching, compression, overlays
  • robots: robots.txt shutting every crawler out, the AI crawlers it names, its Content Signals, crawler access and noai pages against them
  • security-headers: HSTS, CSP, nosniff, Referrer-Policy, framing and cross-origin isolation
  • seo: Titles, descriptions, headings, canonical, Open Graph and alt text
  • server: The recommended rules about the server, DNS and domain, which fetch only the seed pages
  • sitemap: Sitemap readability, its agreement with the links and hreflang, and its media answering
  • sshfp: SSHFP records of every crawled host matched to the host keys its SSH server presents, and whether DNSSEC lets a client trust them
  • structured-data: JSON-LD, Microdata and RDFa that parse, carry what their rich result requires, agree with the page and each other, use current schema.org terms and valid dates, and whose breadcrumbs lead to live pages
  • suggestions: Optional headers and head links a site may adopt, all hints, outside recommended
  • sustainability: What a site discloses about its footprint in carbon.txt, and what a view of each page emits
  • tls: Certificate validity, protocol version and expiry
  • tls-probe: Protocols, cipher suites, groups, negotiation weaknesses, chain completeness, OCSP stapling and early data of every https origin
  • trackers: Inventory of the analytics and ad-tech vendors the site loads, from a hand-kept host list
  • vendor: Features a CDN or host switched on for the site, read from the paths it adds, all info
  • web-comprehensive: The recommended rules plus link graph, language, structured data, manifest, markup, well-known files, trackers and footprint, all over HTTP — for the scan server’s form
  • web-quick: A fast look at the basics over HTTP — search tags, security headers, caching, TLS, redirects and robots.txt — for the scan server’s form
  • websub: WebSub as subscribers need it: every feed naming its self URL beside its hub, each hub probed once; probing opts in with org.spiderlint.feeds.websub
  • well-known: Files under /.well-known/: security.txt, change-password, and every other known file that is present
  • well-known:security: security.txt and the change-password redirect

axe

Rules: 90

accesskey attribute value should be unique

axe/accesskeys · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Active <area> elements must have alternative text

axe/area-alt · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Elements must only use supported ARIA attributes

axe/aria-allowed-attr · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA role should be appropriate for the element

axe/aria-allowed-role · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

aria-braille attributes must have a non-braille equivalent

axe/aria-braille-equivalent · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA commands must have an accessible name

axe/aria-command-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA attributes must be used as specified for the element’s role

axe/aria-conditional-attr · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Deprecated ARIA roles must not be used

axe/aria-deprecated-role · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA dialog and alertdialog nodes should have an accessible name

axe/aria-dialog-name · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

aria-hidden=“true” must not be present on the document body

axe/aria-hidden-body · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA hidden element must not be focusable or contain focusable elements

axe/aria-hidden-focus · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA input fields must have an accessible name

axe/aria-input-field-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA meter nodes must have an accessible name

axe/aria-meter-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA progressbar nodes must have an accessible name

axe/aria-progressbar-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Elements must only use permitted ARIA attributes

axe/aria-prohibited-attr · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Required ARIA attributes must be provided

axe/aria-required-attr · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Certain ARIA roles must contain particular children

axe/aria-required-children · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Certain ARIA roles must be contained by particular parents

axe/aria-required-parent · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA roles used must conform to valid values

axe/aria-roles · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA tab nodes must have an accessible name

axe/aria-tab-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

“role=text” should have no focusable descendants

axe/aria-text · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA toggle fields must have an accessible name

axe/aria-toggle-field-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA tooltip nodes must have an accessible name

axe/aria-tooltip-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA treeitem nodes should have an accessible name

axe/aria-treeitem-name · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA attributes must conform to valid names

axe/aria-valid-attr · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

ARIA attributes must conform to valid values

axe/aria-valid-attr-value · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

autocomplete attribute must be used correctly

axe/autocomplete-valid · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Inline text spacing must be adjustable with custom stylesheets

axe/avoid-inline-spacing · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

axe/blink · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Buttons must have discernible text

axe/button-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Page must have means to bypass repeated blocks

axe/bypass · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Elements must meet minimum color contrast ratio thresholds

axe/color-contrast · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<dl> elements must only directly contain properly-ordered <dt> and <dd> groups, <script>, <template> or <div> elements

axe/definition-list · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<dt> and <dd> elements must be contained by a <dl>

axe/dlitem · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Documents must have <title> element to aid in navigation

axe/document-title · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

IDs used in ARIA and labels must be unique

axe/duplicate-id-aria · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Headings should not be empty

axe/empty-heading · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Table header text should not be empty

axe/empty-table-header · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Form field must not have multiple label elements

axe/form-field-multiple-labels · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Frames with focusable content must not have tabindex=-1

axe/frame-focusable-content · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Frames should be tested with axe-core

axe/frame-tested · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Frames must have an accessible name

axe/frame-title · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Frames must have a unique title attribute

axe/frame-title-unique · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Heading levels should only increase by one

axe/heading-order · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

<html> element must have a lang attribute

axe/html-has-lang · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<html> element must have a valid value for the lang attribute

axe/html-lang-valid · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

HTML elements with lang and xml:lang must have the same base language

axe/html-xml-lang-mismatch · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Images must have alternative text

axe/image-alt · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Alternative text of images should not be repeated as text

axe/image-redundant-alt · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Input buttons must have discernible text

axe/input-button-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Image buttons must have alternative text

axe/input-image-alt · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Form elements must have labels

axe/label · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Elements must have their visible text as part of their accessible name

axe/label-content-name-mismatch · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Form elements should have a visible label

axe/label-title-only · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Banner landmark should not be contained in another landmark

axe/landmark-banner-is-top-level · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Contentinfo landmark should not be contained in another landmark

axe/landmark-contentinfo-is-top-level · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Main landmark should not be contained in another landmark

axe/landmark-main-is-top-level · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Document should not have more than one banner landmark

axe/landmark-no-duplicate-banner · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Document should not have more than one contentinfo landmark

axe/landmark-no-duplicate-contentinfo · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Document should not have more than one main landmark

axe/landmark-no-duplicate-main · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Document should have one main landmark

axe/landmark-one-main · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Landmarks should have a unique role or role/label/title (i.e. accessible name) combination

axe/landmark-unique · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

axe/link-in-text-block · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

axe/link-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<ul> and <ol> must only directly contain <li>, <script> or <template> elements

axe/list · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<li> elements must be contained in a <ul> or <ol>

axe/listitem · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<marquee> elements are deprecated and must not be used

axe/marquee · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Delayed refresh under 20 hours must not be used

axe/meta-refresh · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Zooming and scaling must not be disabled

axe/meta-viewport · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Users should be able to zoom and scale the text up to 500%

axe/meta-viewport-large · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Interactive controls must not be nested

axe/nested-interactive · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<video> or <audio> elements must not play automatically

axe/no-autoplay-audio · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<object> elements must have alternative text

axe/object-alt · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Page should contain a level-one heading

axe/page-has-heading-one · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Elements marked as presentational should be consistently ignored

axe/presentation-role-conflict · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

All page content should be contained by landmarks

axe/region · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

[role=“img”] and [role=“image”] elements must have alternative text

axe/role-img-alt · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

scope attribute should be used correctly

axe/scope-attr-valid · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Scrollable region must have keyboard access

axe/scrollable-region-focusable · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Select element must have an accessible name

axe/select-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Server-side image maps must not be used

axe/server-side-image-map · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

axe/skip-link · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Summary elements must have discernible text

axe/summary-name · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<svg> elements with an img or image role must have alternative text

axe/svg-img-alt · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Elements should not have tabindex greater than zero

axe/tabindex · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Tables should not have the same summary and caption

axe/table-duplicate-name · warning · score 5.0 · page

Off by default; a group that runs axe, axe:best-practice turns it on.

References

For rule authors

Reads

  • axe.violations

Table cell headers attributes must refer to other <th> elements in the same table

axe/td-headers-attr · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

Table headers in a data table must refer to data cells

axe/th-has-data-cells · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

lang attribute must have a valid value

axe/valid-lang · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

<video> elements must have captions

axe/video-caption · error · score 8.0 · page

Off by default; a group that runs axe, axe:wcag turns it on.

References

For rule authors

Reads

  • axe.violations

browser

Rules: 2

browser/preload

A preloaded resource went unused

browser/preload/unused · info · score 1.8 · page

The browser fetched a resource early because of a preload link, then the page never used it. That wastes bandwidth and competes with resources the page does need. Only pages that answer 2xx are checked, in browser mode.

Reported as

a preloaded resource went unused

Fix

Remove the preload link, or use the resource it points at.

Off by default; a group that runs browser turns it on.

References

For rule authors

Reads

  • browser.console.warnings

Expects

{
  "not": {
    "contains": {
      "type": "string",
      "pattern": "preloaded using link preload but not used"
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

browser/script

The browser console logged errors

browser/script/broken · warning · score 5.8 · page

A JavaScript error in the console usually means a feature of the page did not run. Visitors can lose menus, forms or content, and search engines that render the page may see less. Only pages that answer 2xx are checked, in browser mode.

Reported as

the browser console logged errors

Fix

Fix the JavaScript error logged to the console.

Off by default; a group that runs browser turns it on.

References

For rule authors

Reads

  • browser.console.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

caching

Rules: 1

caching/cache-control

Long-cached files have URLs that never change

caching/cache-control/excessive · warning · score 5.0 · site

A file cached for weeks or marked immutable at a URL with no hash or version stays stale in browsers and CDNs after the next publish, so visitors keep seeing the old copy. By default the limit is 30 days.

Fix

Put a content hash or version in the file name, as cv.3f9a1c.pdf, or send Cache-Control: no-cache.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.cache-control
  • resources

cookies

Rules: 22

cookies/host-prefix

Cookies set by the page carry an invalid __Host- prefix

cookies/host-prefix/invalid · warning · score 6.0 · page

Browsers reject a __Host- cookie that lacks Secure or Path=/ or that sets Domain, so the cookie is never stored and the feature behind it silently fails.

Reported as

a __Host- cookie lacks Secure or Path=/, or sets Domain, so browsers reject it

Fix

Add Secure and Path=/, and omit Domain, from every __Host- cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "not": {
          "properties": {
            "name": {
              "pattern": "^(?i:__Host-)"
            }
          }
        }
      },
      {
        "properties": {
          "secure": {
            "const": true
          },
          "path": {
            "const": "/"
          }
        },
        "required": [
          "path"
        ],
        "not": {
          "required": [
            "domain"
          ]
        }
      }
    ]
  }
}

cookies/http-only

Cookies set by the page lack the HttpOnly flag

cookies/http-only/missing · info · score 2.8 · page

Without HttpOnly any script on the page, including an injected or third-party one, can read the cookie and steal a session. It does not apply to cookies scripts write.

Reported as

a cookie is set without the HttpOnly flag

Fix

Add HttpOnly to cookies scripts do not need to read.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "properties": {
      "http-only": {
        "const": true
      }
    }
  }
}

cookies/lifetime

Cookies set by the page outlive 400 days

cookies/lifetime/excessive · info · score 1.8 · page

Browsers cap a cookie’s life at 400 days, so a longer Max-Age is not honoured and gives a false idea of how long visitors stay recognised.

Reported as

a cookie outlives 400 days, which browsers cap

Fix

Set Max-Age to 34560000 seconds (400 days) or less.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "properties": {
      "max-age": {
        "maximum": 34560000
      }
    }
  }
}

cookies/pre-consent-storage/present · info · score 2.2 · page

Anything beyond what the page strictly needs, stored in localStorage or sessionStorage before the visitor agrees, can identify them without consent. Storage is read from a first load in a fresh browser.

Reported as

scripts write localStorage or sessionStorage on first load, before any interaction (the value found)

Fix

Write only what the page strictly needs before the visitor agrees, such as a theme or a cart, and nothing that identifies them.

Off by default; a group that runs privacy turns it on.

References

For rule authors

Reads

  • consent.storage

Expects

{
  "type": "array",
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

A third-party or tracking cookie is set before any interaction

cookies/pre-consent/present · info · score 2.6 · page

Visitors are tracked before they can agree or refuse, which the ePrivacy rules require consent for. Cookies are read from a first load in a fresh browser.

Reported as

a third-party or tracking cookie is set on first load, before any interaction (the value found)

Fix

Set analytics and advertising cookies only after the visitor agrees, or drop them.

Off by default; a group that runs privacy turns it on.

References

For rule authors

Reads

  • consent.cookies

Expects

{
  "type": "array",
  "items": {
    "not": {
      "anyOf": [
        {
          "properties": {
            "party": {
              "const": "third"
            }
          },
          "required": [
            "party"
          ]
        },
        {
          "properties": {
            "name": {
              "pattern": "^(?:s_cc|s_sq|s_vi|s_fid|AMCV_.*|AMCVS_.*|amp_.*|amplitude_id.*|_uetsid|_uetvid|_gcl_au|_gcl_aw|_gcl_dc|_gcl_gb|_ga|_ga_.*|_gid|_gat|_gat_.*|__utma|__utmb|__utmc|__utmt|__utmz|_hp2_.*|_hjSessionUser_.*|_hjSession_.*|_hjid|_hjFirstSeen|_hjAbsoluteSessionInProgress|hubspotutk|__hstc|__hssc|__hssrc|li_fat_id|_li_dcdm_c|_pk_id\\..*|_pk_ses\\..*|_pk_ref\\..*|_fbp|_fbc|_clck|_clsk|mp_.*|_pin_unauth|_pinterest_ct_ua|_rdt_uuid|ajs_anonymous_id|ajs_user_id|_scid|_sctr|_ttp|_tt_enable_cookie|_ym_uid|_ym_d|_ym_isad|_ym_visorc)$"
            }
          },
          "required": [
            "name"
          ]
        }
      ]
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

cookies/resource-host-prefix

Cookies set by a resource carry an invalid __Host- prefix

cookies/resource-host-prefix/invalid · warning · score 6.0 · site

Browsers reject a __Host- cookie that lacks Secure or Path=/ or that sets Domain, so the cookie is never stored and the feature behind it silently fails.

Fix

Add Secure and Path=/, and omit Domain, from every __Host- cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/resource-http-only

Cookies set by a resource lack the HttpOnly flag

cookies/resource-http-only/missing · info · score 2.8 · site

Without HttpOnly any script on the page, including an injected or third-party one, can read the cookie and steal a session. It does not apply to cookies scripts write.

Fix

Add HttpOnly to cookies scripts do not need to read.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/resource-lifetime

Cookies set by a resource outlive 400 days

cookies/resource-lifetime/excessive · info · score 1.8 · site

Browsers cap a cookie’s life at 400 days, so a longer Max-Age is not honoured and gives a false idea of how long visitors stay recognised.

Fix

Set Max-Age to 34560000 seconds (400 days) or less.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/resource-same-site-none

Cookies set by a resource with SameSite=None lack the Secure flag

cookies/resource-same-site-none/insecure · warning · score 6.3 · site

Browsers reject a SameSite=None cookie without Secure, so a cross-site embed that relies on it silently loses its state.

Fix

Add Secure to every SameSite=None cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/resource-same-site

Cookies set by a resource have no SameSite attribute

cookies/resource-same-site/missing · info · score 2.4 · site

Without SameSite browsers apply their own default, so the cookie may be sent on cross-site requests and expose visitors to cross-site request forgery.

Fix

Set SameSite=Lax or SameSite=Strict on every cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/resource-secure-prefix

Cookies set by a resource carry an invalid __Secure- prefix

cookies/resource-secure-prefix/invalid · warning · score 5.8 · site

Browsers reject a __Secure- cookie that lacks Secure, so the cookie is never stored and the feature behind it silently fails.

Fix

Add Secure to every __Secure- cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/resource-secure

Cookies set by a resource lack the Secure flag

cookies/resource-secure/missing · warning · score 6.5 · site

Without Secure a cookie also travels over plain HTTP, where anyone on the network can read or steal it, a session cookie included. Judged only on HTTPS pages and resources.

Fix

Add Secure to every cookie set over https:.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

cookies/same-site-none

Cookies set by the page with SameSite=None lack the Secure flag

cookies/same-site-none/insecure · warning · score 6.3 · page

Browsers reject a SameSite=None cookie without Secure, so a cross-site embed that relies on it silently loses its state.

Reported as

a SameSite=None cookie lacks Secure, so browsers reject it

Fix

Add Secure to every SameSite=None cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "not": {
          "properties": {
            "same-site": {
              "pattern": "^(?i:none)$"
            }
          },
          "required": [
            "same-site"
          ]
        }
      },
      {
        "properties": {
          "secure": {
            "const": true
          }
        }
      }
    ]
  }
}

cookies/same-site

Cookies set by the page have no SameSite attribute

cookies/same-site/missing · info · score 2.4 · page

Without SameSite browsers apply their own default, so the cookie may be sent on cross-site requests and expose visitors to cross-site request forgery.

Reported as

a cookie is set without a SameSite attribute

Fix

Set SameSite=Lax or SameSite=Strict on every cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "required": [
      "same-site"
    ]
  }
}

cookies/script-host-prefix

Cookies written by scripts carry an invalid __Host- prefix

cookies/script-host-prefix/invalid · warning · score 6.0 · page

Browsers reject a __Host- cookie that lacks Secure or Path=/ or that sets Domain, so the cookie is never stored and the feature behind it silently fails.

Reported as

a __Host- cookie lacks Secure or Path=/, or sets Domain, so browsers reject it

Fix

Add Secure and Path=/, and omit Domain, from every __Host- cookie.

Off by default; a group that runs cookies:browser turns it on.

References

For rule authors

Reads

  • browser.cookies

Expects

{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "not": {
          "properties": {
            "name": {
              "pattern": "^(?i:__Host-)"
            }
          }
        }
      },
      {
        "properties": {
          "secure": {
            "const": true
          },
          "path": {
            "const": "/"
          }
        },
        "required": [
          "path"
        ],
        "not": {
          "required": [
            "domain"
          ]
        }
      }
    ]
  }
}

cookies/script-lifetime

Cookies written by scripts outlive 400 days

cookies/script-lifetime/excessive · info · score 1.8 · page

Browsers cap a cookie’s life at 400 days, so a longer Max-Age is not honoured and gives a false idea of how long visitors stay recognised.

Reported as

a cookie outlives 400 days, which browsers cap

Fix

Set Max-Age to 34560000 seconds (400 days) or less.

Off by default; a group that runs cookies:browser turns it on.

References

For rule authors

Reads

  • browser.cookies

Expects

{
  "type": "array",
  "items": {
    "properties": {
      "max-age": {
        "maximum": 34560000
      }
    }
  }
}

cookies/script-same-site-none

Cookies written by scripts with SameSite=None lack the Secure flag

cookies/script-same-site-none/insecure · warning · score 6.3 · page

Browsers reject a SameSite=None cookie without Secure, so a cross-site embed that relies on it silently loses its state.

Reported as

a SameSite=None cookie lacks Secure, so browsers reject it

Fix

Add Secure to every SameSite=None cookie.

Off by default; a group that runs cookies:browser turns it on.

References

For rule authors

Reads

  • browser.cookies

Expects

{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "not": {
          "properties": {
            "same-site": {
              "pattern": "^(?i:none)$"
            }
          },
          "required": [
            "same-site"
          ]
        }
      },
      {
        "properties": {
          "secure": {
            "const": true
          }
        }
      }
    ]
  }
}

cookies/script-same-site

Cookies written by scripts have no SameSite attribute

cookies/script-same-site/missing · info · score 2.4 · page

Without SameSite browsers apply their own default, so the cookie may be sent on cross-site requests and expose visitors to cross-site request forgery.

Reported as

a cookie is set without a SameSite attribute

Fix

Set SameSite=Lax or SameSite=Strict on every cookie.

Off by default; a group that runs cookies:browser turns it on.

References

For rule authors

Reads

  • browser.cookies

Expects

{
  "type": "array",
  "items": {
    "required": [
      "same-site"
    ]
  }
}

cookies/script-secure-prefix

Cookies written by scripts carry an invalid __Secure- prefix

cookies/script-secure-prefix/invalid · warning · score 5.8 · page

Browsers reject a __Secure- cookie that lacks Secure, so the cookie is never stored and the feature behind it silently fails.

Reported as

a __Secure- cookie lacks Secure, so browsers reject it

Fix

Add Secure to every __Secure- cookie.

Off by default; a group that runs cookies:browser turns it on.

References

For rule authors

Reads

  • browser.cookies

Expects

{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "not": {
          "properties": {
            "name": {
              "pattern": "^(?i:__Secure-)"
            }
          }
        }
      },
      {
        "properties": {
          "secure": {
            "const": true
          }
        }
      }
    ]
  }
}

cookies/script-secure

Cookies written by scripts lack the Secure flag

cookies/script-secure/missing · warning · score 6.5 · page

Without Secure a cookie also travels over plain HTTP, where anyone on the network can read or steal it, a session cookie included. Judged only on HTTPS pages and resources.

Reported as

a cookie is set without the Secure flag

Fix

Add Secure to every cookie set over https:.

Off by default; a group that runs cookies:browser turns it on.

References

For rule authors

Reads

  • browser.cookies

Expects

{
  "type": "array",
  "items": {
    "properties": {
      "secure": {
        "const": true
      }
    }
  }
}

When

{
  "url.protocol": "https:"
}

cookies/secure-prefix

Cookies set by the page carry an invalid __Secure- prefix

cookies/secure-prefix/invalid · warning · score 5.8 · page

Browsers reject a __Secure- cookie that lacks Secure, so the cookie is never stored and the feature behind it silently fails.

Reported as

a __Secure- cookie lacks Secure, so browsers reject it

Fix

Add Secure to every __Secure- cookie.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "anyOf": [
      {
        "not": {
          "properties": {
            "name": {
              "pattern": "^(?i:__Secure-)"
            }
          }
        }
      },
      {
        "properties": {
          "secure": {
            "const": true
          }
        }
      }
    ]
  }
}

cookies/secure

Cookies set by the page lack the Secure flag

cookies/secure/missing · warning · score 6.5 · page

Without Secure a cookie also travels over plain HTTP, where anyone on the network can read or steal it, a session cookie included. Judged only on HTTPS pages and resources.

Reported as

a cookie is set without the Secure flag

Fix

Add Secure to every cookie set over https:.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.cookies

Expects

{
  "type": "array",
  "items": {
    "properties": {
      "secure": {
        "const": true
      }
    }
  }
}

When

{
  "url.protocol": "https:"
}

crawlers

Rules: 1

crawlers/crawler

The site refuses crawlers its content signals welcome

crawlers/crawler/blocked · warning · score 5.1 · site

Search engines and AI crawlers the site’s own signals allow get an error instead of the page, so it drops out of results or answers. A refusal seen only through a CDN is a hint, since verifying edges refuse look-alikes too.

Fix

Let the crawler through at the origin and the edge: allow verified bots in the firewall and drop any rule matching its User-Agent.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.crawlers.poses
  • site.content-signals

css

Rules: 8

css/feature

A style sheet uses features the browser targets lack

css/feature/unsupported · info · score 2.2 · site

Visitors on a browser from the declared targets get a broken or missing style where a feature is unsupported, unless a fallback declaration precedes it. Only judged when browser targets are set.

Fix

Give the feature a fallback declaration before it, or guard it with @supports (display: grid) { … }.

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • resources.css

css/inline-feature

Inline CSS uses features the browser targets lack

css/inline-feature/unsupported · info · score 1.8 · page

Visitors on a browser from the declared targets get a broken or missing style where a feature is unsupported, unless a fallback declaration precedes it. Only judged when browser targets are set.

Fix

Give the feature a fallback declaration before it, or guard it with @supports (display: grid) { … }.

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • css.features

css/inline-property

Inline CSS names unknown properties

css/inline-property/unknown · warning · score 4.2 · page

Browsers silently drop a declaration whose property they do not know, usually a typo, so the intended styling never applies.

Fix

Correct the property name, as in color: red for colr: red, or remove the declaration.

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • css.messages

css/inline-style

Inline CSS has syntax errors

css/inline-style/invalid · warning · score 5.2 · page

Browsers drop the rule or block around a syntax error, so part of the page loses its styling for every visitor.

Fix

Close every block and string, and write selectors browsers accept, as in a::before { content: “” }.

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • css.messages

css/inline-value

Inline CSS carries invalid property values

css/inline-value/invalid · warning · score 4.0 · page

Browsers drop a declaration whose value breaks the property’s grammar, so the intended styling never applies.

Fix

Give the property a value its grammar accepts, as in margin: calc(-1 * var(–gap)) for margin: -var(–gap).

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • css.messages

css/property

A style sheet names unknown properties

css/property/unknown · warning · score 4.6 · site

Browsers silently drop a declaration whose property they do not know, usually a typo, so the intended styling never applies.

Fix

Correct the property name, as in color: red for colr: red, or remove the declaration.

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • resources.css

css/stylesheet

A style sheet has syntax errors

css/stylesheet/invalid · warning · score 5.6 · site

Browsers drop the rule or block around a syntax error, so part of the page loses its styling for every visitor.

Fix

Close every block and string, and write selectors browsers accept, as in a::before { content: “” }.

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • resources.css

css/value

A style sheet carries invalid property values

css/value/invalid · warning · score 4.4 · site

Browsers drop a declaration whose value breaks the property’s grammar, so the intended styling never applies.

Fix

Give the property a value its grammar accepts, as in margin: calc(-1 * var(–gap)) for margin: -var(–gap).

Off by default; a group that runs css turns it on.

References

For rule authors

Reads

  • resources.css

dns

Rules: 38

dns/aaaa

The host has no IPv6 address

dns/aaaa/missing · info · score 1.4 · site

Visitors on IPv6-only networks cannot reach the host, and everyone else misses the IPv6 path where it is faster.

Reported as

no AAAA record, so the host is unreachable over IPv6

Fix

Publish an AAAA record with the host’s IPv6 address.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dns.aaaa

Expects

{
  "minItems": 1
}

dns/agents

The zone has no DNS-AID entry point for agents

dns/agents/missing · hint · score 0.8 · site

Without a record at _index._agents, AI agents cannot discover the zone’s agent services through DNS.

Reported as

no DNS-AID entry point at _index._agents, so an agent cannot find the zone’s agent services through DNS

Fix

Add an HTTPS record that tells agents which host serves the site.

  • Name: _index._agents.<domain>
  • Priority: 1
  • Target: <host>.
  • Value: alpn="h3,h2" port=443
  • Zone file: _index._agents.<domain>. 3600 IN HTTPS 1 <host>. alpn="h3,h2" port=443

For each agent service, add one more such record with the service’s own host as Target, at _mcp._agents.<domain> for an MCP server or _a2a._agents.<domain> for an A2A agent. The record format is in RFC 9460 and DNS-AID.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dns.agents

Expects

{
  "type": "array",
  "minItems": 1
}

dns/apex-cname

The zone apex is a CNAME

dns/apex-cname/present · warning · score 4.8 · site

A CNAME cannot sit beside the SOA and NS records every apex has, so resolvers may fail on the zone itself or on its mail and name server records.

Reported as

the zone apex is a CNAME to the value found, which cannot sit beside the apex’s SOA and NS records

Fix

Delete the CNAME record of <domain>, then add A and AAAA records with the addresses it led to, or the ALIAS or flattened CNAME record your DNS provider offers in its place.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dns.apex-cname

Expects

{
  "const": false
}

When

{
  "site.hosts.*.dns.apex-cname": {
    "type": [
      "string",
      "boolean"
    ]
  }
}

dns/caa-flags

CAA marks an unknown tag as critical

dns/caa-flags/invalid · error · score 7.2 · site

A certificate authority that does not know a critical tag must refuse to issue, so certificate issuance and renewal for the name can fail outright. Checked only where CAA records exist.

Reported as

CAA marks a tag outside RFC 8659 critical, so a CA that does not know it refuses to issue at all (got the value found)

Fix

Set the CAA flags to 0 on the unknown tag, or remove the record.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dns.caa.records

Expects

{
  "not": {
    "contains": {
      "properties": {
        "flags": {
          "minimum": 128
        },
        "tag": {
          "not": {
            "enum": [
              "issue",
              "issuewild",
              "iodef"
            ]
          }
        }
      }
    }
  }
}

When

{
  "site.hosts.*.dns.caa": {
    "type": "object"
  }
}

dns/caa-iodef

CAA names no contact for issuance reports

dns/caa-iodef/missing · info · score 2.8 · site

Without an iodef tag, a certificate authority that refuses or doubts a request for the name has nowhere to report it. Checked only where CAA records exist.

Reported as

CAA names no iodef address for refused issuance reports

Fix 1

Add a CAA iodef tag pointing at a contact URI or email for issuance incident reports.

Fix 2

Report Relay https://dbuho.me/project/report-relay/ collects these reports and sends them to your Grafana: open source, self-hosted, free.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dns.caa.records

Expects

{
  "contains": {
    "properties": {
      "tag": {
        "const": "iodef"
      }
    }
  }
}

When

{
  "site.hosts.*.dns.caa": {
    "type": "object"
  }
}

dns/caa-issuer

CAA does not allow the CA that issued the served certificate

dns/caa-issuer/mismatch · error · score 8.6 · site

Certificate authorities must refuse what CAA does not allow, so the next renewal from this CA fails and visitors then see an expired certificate. Checked only where CAA records exist and the issuer is known.

Reported as

CAA does not allow the CA that issued the served certificate (got the value found)

Fix

Add an issue or issuewild tag to CAA for the CA that holds the certificate.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dns.caa.issuer

Expects

{
  "properties": {
    "allowed": {
      "const": true
    }
  }
}

When

{
  "site.hosts.*.dns.caa.issuer": {
    "type": "object"
  }
}

dns/caa

The host has no CAA record

dns/caa/missing · warning · score 4.0 · site

Without a CAA issue or issuewild record on the host or any parent name, any certificate authority may issue a certificate for it, so a mistaken or fraudulent issuance is easier to obtain.

Reported as

no CAA issue or issuewild record on the host or any parent, so any CA may issue for it

Fix

Add a CAA record for each certificate authority you use; it covers every name under <domain>.

  • Name: <domain>
  • Flags: 0
  • Tag: issue
  • CA domain: letsencrypt.org
  • Zone file: <domain>. CAA 0 issue "letsencrypt.org"

Put your own authority’s domain in place of letsencrypt.org.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dns.caa

Expects

{
  "type": "object",
  "properties": {
    "records": {
      "contains": {
        "properties": {
          "tag": {
            "enum": [
              "issue",
              "issuewild"
            ]
          }
        }
      }
    }
  }
}

dns/cname-chain

The name resolves through a long chain of CNAME aliases

dns/cname-chain/excessive · info · score 1.6 · site

Every CNAME hop costs the resolver another lookup, which delays the first visit, and some resolvers give up on long chains. Flagged above two hops.

Reported as

the name resolves through the value found of CNAME hops

Fix

Cut the CNAME chain at one hop by pointing the alias directly at the target’s A or AAAA.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dns.cname

Expects

{
  "maxItems": 2
}

dns/cname

A CNAME points to a name that does not exist

dns/cname/insecure · error · score 9.2 · site

Anyone who registers or claims the missing target can serve content under the site’s name, enabling phishing, cookie theft or defacement. Checked on crawled and linked names.

Reported as

the name is a CNAME to a name that does not exist, open to takeover (got the value found)

Fix

Delete the dangling CNAME, or claim the delegated name before a third party can.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dns.dangling

Expects

{
  "const": false
}

dns/dmarc-policy

The DMARC policy neither quarantines nor rejects

dns/dmarc-policy/weak · warning · score 6.2 · site

A policy of none asks receivers to deliver forged mail anyway, so phishing sent in the name’s identity still reaches inboxes. Checked only on names that take or send mail and publish DMARC.

Reported as

the DMARC policy neither quarantines nor rejects, so receivers deliver mail forged from a name that takes or sends mail (got the value found)

Fix

Change the TXT record for DMARC to quarantine mail that fails its checks.

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=quarantine; rua=mailto:dmarc@<domain>

After a few weeks, read the reports sent to dmarc@<domain>. When every server they list is yours, change p=quarantine to p=reject.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc

Expects

{
  "type": "object",
  "required": [
    "policy"
  ],
  "properties": {
    "policy": {
      "enum": [
        "quarantine",
        "reject"
      ]
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  }
}

dns/dmarc-reject

A name that sends no mail has no DMARC reject policy

dns/dmarc-reject/missing · warning · score 6.4 · site

Without a DMARC policy of reject, receivers accept mail forged from the name, so phishers can borrow its reputation. Checked only on names that appear to take and send no mail.

Reported as

no DMARC policy of reject applies to the name, so receivers accept mail forged from it (got the value found)

Fix

Add a TXT record that tells receivers to refuse mail forged from <domain> or any name under it.

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=reject; sp=reject; adkim=s; aspf=s

Off by default; a group that runs dns:mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc

Expects

{
  "type": "object",
  "required": [
    "policy"
  ],
  "properties": {
    "policy": {
      "const": "reject"
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "none"
}

dns/dmarc

A mail name has no DMARC record

dns/dmarc/missing · warning · score 6.2 · site

Without DMARC, receivers deliver mail forged from the name, so recipients can be phished under its identity. Checked only on names that take or send mail.

Reported as

no DMARC record applies to a name that takes or sends mail, so receivers deliver mail forged from it

Fix

Add a TXT record for DMARC.

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=quarantine; rua=mailto:dmarc@<domain>

After a few weeks, read the reports sent to dmarc@<domain>. When every server they list is yours, change p=quarantine to p=reject.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc

Expects

{
  "type": "object"
}

When

{
  "site.hosts.*.mail.mode": "mail"
}

dns/dnssec-algorithm

The zone uses a DNSSEC algorithm that is no longer allowed

dns/dnssec-algorithm/deprecated · warning · score 4.2 · site

RFC 8624 forbids the signing algorithm or DS digest, so resolvers may treat the zone as unsigned and its protection against forged answers weakens. Checked only on signed zones.

Reported as

the zone signs or digests with an algorithm RFC 8624 forbids

Fix

Re-sign the zone and republish its DS with a non-deprecated algorithm.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dnssec

Expects

{
  "properties": {
    "ds": {
      "items": {
        "properties": {
          "algorithm": {
            "not": {
              "enum": [
                1,
                3,
                5,
                6,
                7,
                12
              ]
            }
          },
          "digest-type": {
            "not": {
              "enum": [
                1,
                3
              ]
            }
          }
        }
      }
    },
    "dnskey": {
      "items": {
        "properties": {
          "algorithm": {
            "not": {
              "enum": [
                1,
                3,
                5,
                6,
                7,
                12
              ]
            }
          }
        }
      }
    }
  }
}

When

{
  "site.hosts.*.dnssec.signed": true
}

dns/dnssec

The zone’s DNSSEC signatures fail validation

dns/dnssec/broken · error · score 8.8 · site

Validating resolvers answer SERVFAIL, so everyone behind them cannot reach the site or its mail. Checked only when the resolver validates DNSSEC.

Reported as

the zone is signed but fails validation, so every validating resolver answers SERVFAIL

Fix

Fix the broken DS or DNSKEY at the parent or the zone so the chain of trust validates.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dnssec.bogus

Expects

{
  "const": false
}

When

{
  "site.hosts.*.dnssec.bogus": {
    "type": "boolean"
  }
}

The zone is not signed with DNSSEC

dns/dnssec/missing · warning · score 5.6 · site

Without signatures, resolvers cannot detect forged DNS answers, so an attacker on the path can send visitors and mail to a different server.

Reported as

the zone is not signed with DNSSEC

Fix

Enable DNSSEC signing on the zone and publish a DS record at the parent.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dnssec.signed

Expects

{
  "const": true
}

dns/https-alpn

The HTTPS record and Alt-Svc disagree about HTTP/3

dns/https-alpn/mismatch · warning · score 3.5 · site

When the DNS record and the header differ on whether HTTP/3 is available, browsers get conflicting advice and may try a protocol the server does not serve or skip one it does.

Reported as

the HTTPS record and Alt-Svc disagree about h3 (got the value found)

Fix

Keep the HTTPS record’s h3 flag and the Alt-Svc h3 advertisement in agreement.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dns.h3

Expects

{
  "anyOf": [
    {
      "properties": {
        "record": {
          "const": true
        },
        "alt-svc": {
          "const": true
        }
      }
    },
    {
      "properties": {
        "record": {
          "const": false
        },
        "alt-svc": {
          "const": false
        }
      }
    }
  ]
}

dns/https-hints

The HTTPS record’s address hints do not match A and AAAA

dns/https-hints/mismatch · warning · score 3.6 · site

Browsers that trust ipv4hint or ipv6hint connect to addresses the host no longer has, or never try those it does, so connections fail or slow down. Checked only where the record points at the host itself.

Reported as

ipv4hint or ipv6hint does not match the A and AAAA records

Fix

Update the IPv4 and IPv6 hints in the HTTPS record to match the current A and AAAA sets.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dns.https

Expects

{
  "items": {
    "properties": {
      "hints-match": {
        "const": true
      }
    }
  }
}

dns/https-record

The host has no HTTPS DNS record

dns/https-record/missing · warning · score 3.8 · site

Without it, a browser’s first visit learns about HTTP/3 and Encrypted Client Hello only from the Alt-Svc header, one connection later, so first loads are slower and less private.

Reported as

no HTTPS record, so a first visit learns h3 and ECH only from Alt-Svc, one connection late

Fix

Add an HTTPS record, so browsers learn on their first visit which protocols the site speaks.

  • Name: <host>
  • Priority: 1
  • Target: .
  • Value: alpn="h3,h2"
  • Zone file: <host>. 3600 IN HTTPS 1 . alpn="h3,h2"

A Target of . means the name itself. Leave h3 out of the value if the site does not serve HTTP/3.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.dns.https

Expects

{
  "minItems": 1
}

dns/ns-answers

The name servers answer the host differently

dns/ns-answers/mismatch · warning · score 5.8 · site

Visitors reach different addresses depending on which server their resolver asks, so some may land on a stale or wrong server.

Reported as

the name servers answer the host differently, so what a visitor reaches depends on which one their resolver asks: the value found

Fix

Sync the zone on every name server and bump its SOA serial.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.differing

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.nameservers.differing": {
    "type": "array"
  }
}

dns/ns-delegation

Listed name servers do not answer for the zone

dns/ns-delegation/broken · warning · score 5.5 · site

A resolver that picks one of these leftovers of an old provider or an unloaded zone waits out a timeout or gets a refusal, so lookups slow down or fail.

Reported as

these name servers are listed for the zone but do not answer for it, a leftover of a decommissioned provider or a zone never loaded: the value found; a resolver that picks one waits out a timeout or gets a refusal

Fix

Delete the NS records of <domain> that name these servers, at the DNS provider and at the registrar, or load the zone on them.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.lame

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.nameservers.lame": {
    "type": "array"
  }
}

The parent zone and the zone list different name servers

dns/ns-delegation/mismatch · warning · score 5.2 · site

Resolvers reach a server the zone disowns or skip one it lists, so lookups can fail or return stale data.

Reported as

the parent zone and the zone’s own NS records name different servers, so resolvers reach a server the zone disowns or skip one it lists: the value found

Fix

Make the NS records of <domain> in your DNS panel list the same name servers as those set at the registrar.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.delegation.differs

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.nameservers.delegation.differs": {
    "type": "array"
  }
}

dns/ns-network

All name servers sit in one network

dns/ns-network/single · info · score 2.2 · site

If that one /24 or /48 network fails, every name server goes down together, and the site and its mail with them.

Reported as

every name server address sits in one /24 or /48

Fix

Place name servers on addresses in different /24 or /48 networks.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.networks

Expects

{
  "minimum": 2
}

dns/ns-resolver

The resolver’s answer differs from the name servers’ answer

dns/ns-resolver/mismatch · info · score 2.4 · site

A cached old answer or a split view means some visitors still reach an old address after a change.

Reported as

the configured resolver answers the host differently from its name servers, a cached old answer or a split view

Fix

Wait out the old record’s TTL, or check which view the resolver serves.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.resolver-agrees

Expects

{
  "const": true
}

When

{
  "site.hosts.*.nameservers.resolver-agrees": {
    "type": "boolean"
  }
}

dns/ns-serial

The name servers serve different versions of the zone

dns/ns-serial/mismatch · warning · score 5.3 · site

The servers report different SOA serials, so a change to the zone reaches some visitors late, depending on which server their resolver asks.

Reported as

the name servers serve different SOA serials, so a zone change reaches some of them late (got the value found)

Fix

Sync the zone to every name server and bump the SOA serial.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers

Expects

{
  "properties": {
    "serials": {
      "maxItems": 1
    }
  }
}

When

{
  "site.hosts.*.nameservers.serials": {
    "type": "array"
  }
}

dns/ns

The zone has a single name server

dns/ns/single · warning · score 5.4 · site

When that server is down, nobody can resolve the site or its mail. Flagged when fewer than two name servers are listed.

Reported as

the zone has the value found name servers, fewer than 2

Fix

Add a second name server at a different network from the first.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.servers

Expects

{
  "minItems": 2
}

dns/nsec3-iterations

NSEC3 uses extra hashing iterations or a salt

dns/nsec3-iterations/excessive · warning · score 3.3 · site

Per RFC 9276, extra iterations and a salt add resolver work without real protection, and some resolvers treat such answers as insecure. Checked only on zones that use NSEC3.

Reported as

NSEC3 uses extra iterations or a salt (got the value found)

Fix

Disable NSEC3 iterations and salt, or migrate to NSEC by removing the NSEC3PARAM records.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dnssec.nsec3

Expects

{
  "properties": {
    "iterations": {
      "const": 0
    },
    "salt-length": {
      "const": 0
    }
  }
}

When

{
  "site.hosts.*.dnssec.nsec3": {
    "type": "object"
  }
}

dns/null-mx

A null MX sits on a name that takes or sends mail

dns/null-mx/invalid · warning · score 5.0 · site

A null MX tells senders the name accepts no mail, so they may drop mail addressed to it, and receivers may refuse mail it sends. Checked only on names that appear to take or send mail.

Reported as

a null MX on a name that takes or sends mail, so senders may drop mail to it and receivers may refuse mail from it (got the value found)

Fix

Delete the MX record that says the name takes no mail, and keep the MX records of its real mail servers.

  • Name: <host>
  • Mail server: .
  • Zone file: <host>. MX 0 .

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.mx

Expects

{
  "items": {
    "properties": {
      "exchange": {
        "not": {
          "const": "."
        }
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail"
}

A name that takes no mail has no null MX record

dns/null-mx/missing · warning · score 5.6 · site

Without a null MX, senders fall back to the name’s A or AAAA address and keep retrying mail it never accepts, for days. Checked only on names that appear to take and send no mail.

Reported as

no null MX, so senders fall back to the name’s A or AAAA address and retry mail it never takes for days (got the value found)

Fix

Add an MX record that says the name takes no mail.

  • Name: <host>
  • Mail server: .
  • Priority: 0
  • Zone file: <host>. MX 0 .

Then delete every other MX record of the name.

Off by default; a group that runs dns:mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mx

Expects

{
  "minItems": 1,
  "maxItems": 1,
  "items": {
    "properties": {
      "preference": {
        "const": 0
      },
      "exchange": {
        "const": "."
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "none"
}

dns/recursion

An authoritative name server answers recursive queries

dns/recursion/insecure · warning · score 6.0 · site

Open to anyone, it can be abused for traffic amplification attacks and cache poisoning.

Reported as

an authoritative name server answers recursive queries for any name, which lends it to amplification attacks and cache poisoning

Fix

Turn recursion off on the authoritative name servers of <domain>, or allow it to your own networks only.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.nameservers.servers

Expects

{
  "items": {
    "properties": {
      "recursive": {
        "not": {
          "const": true
        }
      }
    }
  }
}

dns/resolver-answers

The compared resolvers give different addresses for the host

dns/resolver-answers/mismatch · info · score 2.0 · site

Geo-DNS does this on purpose; a stale or split view does not, and it sends some visitors to an old or wrong server. Checked only when several resolvers are compared.

Reported as

the compared resolvers give the value found different answers for the host; geo-DNS does this on purpose, a stale or split view does not

Fix

If the answers should match, wait out the old TTL or fix the view that differs.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.resolvers.answer-sets

Expects

{
  "maximum": 1
}

When

{
  "site.hosts.*.resolvers.answer-sets": {
    "type": "integer"
  }
}

dns/resolver-rcode

The compared resolvers disagree on whether the host resolves

dns/resolver-rcode/broken · warning · score 4.6 · site

Some resolvers answer while others fail, so part of the visitors cannot reach the site; a SERVFAIL on validating resolvers alone points at a broken DNSSEC chain. Checked only when several resolvers are compared.

Reported as

the compared resolvers disagree on whether the host resolves (got the value found); a SERVFAIL on a validating resolver alone points at DNSSEC

Fix

Query each resolver named in the finding and fix what the failing one reports, a broken DNSSEC chain first.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.resolvers.rcodes

Expects

{
  "maxItems": 1
}

dns/resolver-validation

Resolvers disagree on whether the signed zone validates

dns/resolver-validation/broken · info · score 1.8 · site

Some compared resolvers validate the signed zone and some do not, which points at a DS or key problem that fails lookups for visitors behind validating resolvers. Checked only on signed zones.

Reported as

some compared resolvers validate the signed zone and some do not (got the value found)

Fix

Check the DS at the parent and the DNSKEY set against each resolver’s trust anchors.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.resolvers.validated
  • site.hosts.*.dnssec.signed

Expects

{
  "maxItems": 1
}

When

{
  "site.hosts.*.dnssec.signed": true
}

dns/rrsig

The zone’s DNSSEC signatures are close to expiring

dns/rrsig/expiring · warning · score 4.4 · site

With under a quarter of the validity left, re-signing has probably stalled; once the signatures expire, validating resolvers fail every lookup and the site and its mail vanish for their users.

Reported as

less than a quarter of the host’s signature validity is left, so re-signing has stalled (got the value found)

Fix

Re-sign the zone and fix the process that stopped refreshing RRSIGs.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.dnssec.rrsig

Expects

{
  "properties": {
    "left": {
      "minimum": 0.25
    }
  }
}

When

{
  "site.hosts.*.dnssec.rrsig": {
    "type": "object"
  }
}

dns/soa-timers

The SOA timers are outside the recommended ranges

dns/soa-timers/range · info · score 1.2 · site

Refresh, retry, expire or minimum values far from RFC 1912’s ranges slow the spread of changes or make secondary servers drop the zone too early. Skipped where the DNS provider manages the SOA.

Reported as

the SOA <field> is the value found, outside what RFC 1912 §2.2 recommends: refresh 1200–43200 s, retry below refresh, expire 1209600–2419200 s, minimum 300–86400 s, a listed name server as primary

Fix

Set the SOA of <domain> to refresh 7200, retry 3600, expire 1209600 and minimum 3600, with one of its name servers as the primary.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.soa

Expects

{
  "properties": {
    "refresh": {
      "minimum": 1200,
      "maximum": 43200
    },
    "expire": {
      "minimum": 1209600,
      "maximum": 2419200
    },
    "minimum": {
      "minimum": 300,
      "maximum": 86400
    },
    "retry-below-refresh": {
      "const": true
    },
    "mname-listed": {
      "const": true
    }
  }
}

When

{
  "site.hosts.*.nameservers.soa": {
    "type": "object"
  },
  "site.hosts.*.nameservers.provider.soa-editable": {
    "not": {
      "const": false
    }
  }
}

dns/spf-all

The SPF record does not end in -all or ~all

dns/spf-all/weak · warning · score 5.7 · site

Without a closing -all, ~all or redirect, receivers let any server send as the name, so forged mail passes the SPF check. Checked only on names that take or send mail.

Reported as

SPF does not end in -all or ~all, so receivers let any server send as this name (got the value found)

Fix

End the SPF record in -all, so receivers refuse mail from servers it does not list, for example:

  • Name: <host>
  • Content: v=spf1 mx -all

While you are still finding every server that sends your mail, end it in ~all, which marks mail from other servers as suspect instead.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.spf

Expects

{
  "items": {
    "pattern": "\\s([-~][aA][lL][lL]|[rR][eE][dD][iI][rR][eE][cC][tT]=\\S+)(\\s|$)"
  }
}

When

{
  "site.hosts.*.mail.mode": "mail"
}

dns/spf-null

A name that sends no mail has no deny-all SPF record

dns/spf-null/missing · warning · score 6.1 · site

Without a lone SPF record of v=spf1 -all, receivers cannot refuse mail forged from this name, so anyone can impersonate it to phish recipients. Checked only on names that appear to take and send no mail.

Reported as

SPF is not a lone v=spf1 -all, so receivers cannot refuse mail forged from this name (got the value found)

Fix

Add a TXT record that says no server sends mail as this name.

  • Name: <host>
  • Content: v=spf1 -all

Then delete every other TXT record of the name that starts with v=spf1. A subdomain does not inherit this record, so each name that sends no mail needs its own.

Off by default; a group that runs dns:mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.spf

Expects

{
  "minItems": 1,
  "maxItems": 1,
  "items": {
    "pattern": "^[vV]=[sS][pP][fF]1\\s+-[aA][lL][lL]\\s*$"
  }
}

When

{
  "site.hosts.*.mail.mode": "none"
}

dns/spf

A mail name has no SPF record or more than one

dns/spf/duplicate · warning · score 5.8 · site

With no SPF record, nobody can check which servers may send as the name; with two, every check fails and receivers may reject genuine mail. Checked only on names that take or send mail.

Reported as

a name that takes or sends mail needs exactly one v=spf1 record, since none lets anyone send as it and two fail every check (got the value found)

Fix

Keep one SPF record for the name, listing every server that sends its mail, for example:

  • Name: <host>
  • Content: v=spf1 mx -all

Move the servers the other TXT records starting with v=spf1 list into it, then delete those records.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.spf

Expects

{
  "minItems": 1,
  "maxItems": 1
}

When

{
  "site.hosts.*.mail.mode": "mail"
}

dns/ttl

A record’s TTL is very short or very long

dns/ttl/range · hint · score 0.6 · site

A TTL under 300 seconds multiplies DNS load and lookup delay; over a day, a fix or a migration takes that long to reach visitors. NS records may go up to two days.

Reported as

a record TTL sits outside 300 seconds to one day, two for NS; fine just before a migration, costly otherwise (got the value found)

Fix

Set the TTL of the A, AAAA and MX records of <host> between 300 and 86400 seconds, and of its NS records up to 172800.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.nameservers.ttl

Expects

{
  "properties": {
    "a": {
      "minimum": 300,
      "maximum": 86400
    },
    "aaaa": {
      "minimum": 300,
      "maximum": 86400
    },
    "mx": {
      "minimum": 300,
      "maximum": 86400
    },
    "ns": {
      "minimum": 300,
      "maximum": 172800
    }
  }
}

When

{
  "site.hosts.*.nameservers.ttl": {
    "type": "object"
  }
}

domain

Rules: 3

domain/ns-registry

The registry and the zone list different name servers

domain/ns-registry/mismatch · warning · score 5.0 · site

Resolvers may be sent to servers the zone’s owner does not control or does not know, so answers can be wrong or missing.

Reported as

the name servers the registry lists differ from the zone’s own NS records: the value found

Fix

Make the name servers set at the registrar list the same servers as the NS records of <domain> in your DNS panel.

Off by default; a group that runs dns turns it on.

References

For rule authors

Reads

  • site.hosts.*.rdap.ns-differs

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.rdap.ns-differs": {
    "type": "array"
  }
}

domain/registration

The domain registration expires within 30 days

domain/registration/expiring · error · score 3.5–9.6 · site

When it lapses, the site and its mail stop resolving and someone else can register the name. Checked only for registered domains that the RDAP lookup finds.

Reported as

the domain registration expires in the value found days, and the site and its mail stop resolving when it lapses

Fix

Renew <domain> at its registrar and turn on automatic renewal.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.rdap.days-left

Expects

{
  "type": "integer",
  "minimum": 30
}

domain/transfer-lock

The domain has no transfer lock

domain/transfer-lock/missing · warning · score 6.2 · site

Whoever takes over the registrar account can move the domain to another registrar, and the site and mail go with it.

Reported as

the registration carries no transfer lock, so whoever takes over the registrar account can move the domain away (status the value found)

Fix

Turn on the transfer lock (clientTransferProhibited) for <domain> at its registrar.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.rdap.status

Expects

{
  "type": "array",
  "contains": {
    "enum": [
      "client transfer prohibited",
      "server transfer prohibited"
    ]
  }
}

feeds

Rules: 45

The feed’s archive links lead nowhere

feeds/archive-link/unreachable · warning · score 3.5 · site

Archive links (prev-archive, next-archive, current) that answer an error or are no feed stop readers from fetching older items, and a complete feed should not name archive pages at all.

Fix

Point prev-archive, next-archive and current at feed documents that answer 200, and drop them from a complete feed.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.archives
  • feed.problems.archive
  • http.status

feeds/cache-control

The feed’s caching works against its readers

feeds/cache-control/mismatch · warning · score 5.1 · page

Cache-Control: no-store, or a max-age far from the feed’s own ttl, makes readers either refetch constantly or miss updates for hours.

Fix

Let readers cache the feed for as long as ttl says, Cache-Control: max-age=3600 for a one-hour ttl, and never no-store.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.ttl
  • http.headers.cache-control

feeds/charset

The feed’s encoding is declared or decoded inconsistently

feeds/charset/mismatch · warning · score 5.5 · page

When the header and the XML declaration disagree, or the text shows garbled characters, accented and non-Latin letters in titles and content turn into nonsense for subscribers.

Fix

Serve the feed as UTF-8 and declare the same encoding in Content-Type and the XML declaration.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.charset

feeds/content-escaping

Item content is escaped twice

feeds/content-escaping/invalid · warning · score 4.4 · page

Readers show the tags and entities as visible text, such as <p>, instead of formatted content.

Fix

Escape item HTML once: either wrap it in CDATA or escape it, not both.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.double-escaped

feeds/content-html

Item content contains markup that readers remove

feeds/content-html/insecure · warning · score 6.3 · page

Readers strip scripts, frames, forms, event handlers and positioned styles for safety, so the item may appear broken or incomplete.

Fix

Leave scripts, frames, forms, event handlers and positioned styles out of item content; readers remove them.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.unsafe-html

feeds/content-markup

Item content is unrendered Markdown or MDX

feeds/content-markup/invalid · error · score 8.0 · page

Readers display the text as it is, so subscribers see raw syntax such as ## and [text](url) instead of formatted posts.

Fix

Render each item’s Markdown or MDX to HTML before it goes into the feed, as the page itself does.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.raw-markup

feeds/content-type

Item content holds HTML but is declared as plain text

feeds/content-type/mismatch · warning · score 5.6 · page

Readers show the tags as text instead of rendering them, so subscribers read markup rather than the post.

Fix

Mark content that holds tags as HTML: Atom type="html", JSON Feed content_html instead of content_text; or remove the tags.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.content-type

feeds/content-url

Item content links and images use relative URLs

feeds/content-url/invalid · warning · score 4.5 · page

A reader does not know the page address, so relative links and images inside an item’s HTML break for subscribers.

Fix

Make every href and src inside item content absolute, or set xml:base on the Atom content.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.relative-url

feeds/date

The feed has dates readers cannot parse

feeds/date/invalid · error · score 7.2 · page

RSS wants RFC 822 dates, Atom and JSON Feed RFC 3339 ones. Readers drop or misplace items whose date they cannot parse, so posts appear in the wrong order or not at all.

Fix

Write RSS dates as RFC 822 with a four-digit year and a zone, Wed, 02 Oct 2026 14:00:00 +0000, and Atom and JSON Feed dates as RFC 3339, 2026-10-02T14:00:00Z.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.date-format

A feed link announces the wrong type or points to no feed

feeds/discovery-link/mismatch · warning · score 3.4 · site

Browsers and readers use the type in the head link to choose a parser. A wrong type, or a target that is no feed, makes subscribing fail.

Fix

Give each rel=alternate the type the feed is served as, and point it at the feed itself.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • html.head.links
  • feed

Some pages of a group advertise a feed and others do not

feeds/discovery-link/missing · warning · score 4.1 · group

Visitors on a page without the feed link cannot subscribe from there. Only HTML pages that answer 2xx are compared.

Fix

Link the feed with <link rel=alternate type=application/atom+xml> from every page of the template, not from some.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • html.head.links

feeds/document

The feed is not well-formed XML or JSON

feeds/document/invalid · error · score 9.0 · page

Feed readers cannot parse a document that is not well-formed, so subscribers receive no new items from it. The usual cause is a template that does not escape its values.

Fix

Serve the feed from an XML or JSON serialiser instead of a text template, so every value is escaped.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.error

The feed is too large or served uncompressed

feeds/document/large · warning · score 5.0 · page

Every poll by every subscriber downloads the whole body. A feed over the max-bytes limit (1 MiB by default), or over 10 KiB without compression, wastes bandwidth and may time out in readers.

Fix

Keep the newest items only, and serve the feed compressed with br or gzip.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.format
  • http.size
  • http.headers.content-encoding

The feed has not been updated for a long time

feeds/document/stale · info · score 2.2 · page

Subscribers and directories take a feed as abandoned once its newest item is older than the stale-days limit (365 days by default). It also fires when the build date is older than the newest item.

Fix

Publish the feed with every new post, and set lastBuildDate or updated when it is rebuilt.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries
  • feed.updated

feeds/element

The feed lacks elements its format requires

feeds/element/missing · error · score 8.6 · page

A feed missing a required element (a channel title, link or description in RSS; an id, title, updated or author in Atom; a title or id in JSON Feed) may be rejected by validators or shown blank by readers.

Fix

Add the element the location names: RSS needs a channel title, link and description and a title or description per item; Atom an id, title and updated on the feed and every entry, and an author; JSON Feed a title and an id per item.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.required

The RSS feed uses elements outside the specification

feeds/element/unknown · warning · score 3.9 · page

Elements that RSS 2.0 does not define and that sit in no namespace are ignored by readers and make strict validators reject the feed.

Fix

Move an extension element into its own namespace, <dc:creator>, or remove it.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.unknown-element

feeds/email

Feed email fields are not in the address (Name) form

feeds/email/invalid · warning · score 4.2 · page

RSS wants managingEditor, webMaster and author as an address followed by a name in brackets. Other forms fail validators and may be shown or linked wrongly by readers.

Fix

Write managingEditor, webMaster and author as editor@example.org (Ana Silva).

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.email

feeds/enclosure

Podcast enclosures disagree with what their host serves

feeds/enclosure/invalid · warning · score 6.2 · page

Only podcast feeds. Apps and directories check each audio file with a HEAD request: a file that fails, has another size or type than declared, or lacks byte-range support makes episodes fail to download, show a wrong length or not seek.

Fix

Serve every enclosure with its declared Content-Type and Content-Length over a host answering HEAD and byte ranges.

Off by default; a group that runs podcasts turns it on.

References

For rule authors

Reads

  • feed.enclosures
  • resources

feeds/full-text

The feed carries summaries while the pages hold the full posts

feeds/full-text/missing · info · score 2.6 · site

Every linked page is far longer than its item, so subscribers must leave their reader to read a post. Only pages of at least 150 words are compared.

Fix

Put the full post text into each item’s content:encoded, content or content_html, not a summary.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries
  • html.text

feeds/item-date

Feed items are dated in the future

feeds/item-date/future · warning · score 3.6 · page

Readers that sort by date show items dated after the response above everything else, and a scheduled post leaks before its time.

Fix

Date each item when it was published; hold a scheduled post out of the feed until then.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries

Feed item dates differ from their pages’ dates

feeds/item-date/mismatch · warning · score 5.4 · site

When the feed and the page disagree by more than a day, readers sort the post by the wrong date and search engines see conflicting publication dates.

Fix

Take the item date from the same field the page’s article:published_time or datePublished comes from.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries
  • html.published

feeds/item-id

The feed’s items share an ID

feeds/item-id/duplicate · error · score 7.6 · page

Readers treat items with the same ID as one post, so one of them is merged into the other or never shown to subscribers.

Fix

Give every item its own guid or id, so readers neither merge two posts nor drop one.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.duplicate-id

Item IDs contain tracking parameters

feeds/item-id/invalid · warning · score 4.8 · page

An ID that carries utm_* or similar campaign parameters changes whenever the campaign does, so readers show the same post again as new.

Fix

Keep utm_* and other campaign parameters out of guid and id; put them on the item link only, so the identifier never changes.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.id-tracking

The feed’s items have no stable ID

feeds/item-id/missing · warning · score 4.6 · page

Readers tell new items from known ones by their ID. Items without one are shown to subscribers again as new whenever the feed is fetched.

Fix

Give every item a guid (RSS), id (Atom or JSON Feed) that never changes once published.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.unidentified

Feed items link away from the page’s canonical URL

feeds/item-link/mismatch · warning · score 5.9 · site

An item link that differs from the page’s canonical URL splits shares, analytics and search signals across two addresses.

Fix

Link each item to its page’s canonical URL.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries
  • html.canonical

Feed items link to pages that fail or redirect

feeds/item-link/unreachable · warning · score 6.1 · site

Subscribers who click an item land on an error page or pass through a redirect. Only items whose page the crawl fetched are checked.

Fix

Point each item link at the final URL of a page that answers 200.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries
  • http.status
  • site.redirects

feeds/item-title

Item titles contain markup or placeholders

feeds/item-title/invalid · warning · score 4.3 · page

Item titles are plain text, so tags, entities or template values show up literally in subscribers’ lists and notifications.

Fix

Write item titles as plain text, with no tags, entities or template values.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.title-markup

Feed item titles differ from their pages’ titles

feeds/item-title/mismatch · info · score 2.8 · site

Subscribers see one title in the reader and another on the page, which makes the post harder to recognise.

Fix

Use the page’s own title as the item title.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.entries
  • html.title
  • html.property

feeds/itunes-image

The podcast artwork is missing or unfit for directories

feeds/itunes-image/invalid · warning · score 5.0 · site

Only podcast feeds. Directories refuse artwork that is not a square JPEG or PNG between 1400 and 3000 px on each side, so the show appears without a cover or is rejected.

Reported as

podcast artwork is missing or unfit: the value found

Fix

Serve the channel itunes:image as a square JPEG or PNG between 1400 and 3000 px on each side.

Off by default; a group that runs podcasts turns it on.

References

For rule authors

Reads

  • site.origins.*.feed-images.itunes-image

Expects

{
  "maxItems": 0
}

feeds/itunes-tags

The podcast feed lacks tags directories require

feeds/itunes-tags/missing · warning · score 5.8 · page

Only podcast feeds. Apple Podcasts and similar directories reject or list incomplete shows when itunes:image, category, explicit, author or language is missing, or an itunes:duration is malformed.

Fix

Add itunes:image, itunes:category, itunes:explicit, itunes:author and language to the channel, and write each itunes:duration as seconds or HH:MM:SS.

Off by default; a group that runs podcasts turns it on.

References

For rule authors

Reads

  • feed.problems.itunes-required

feeds/json-version

The JSON Feed uses an outdated version

feeds/json-version/outdated · warning · score 3.7 · page

JSON Feed 1.1 replaced the single author with a list of authors. Readers that follow 1.1 ignore the old form, so authors go missing.

Fix

Declare "version": "https://jsonfeed.org/version/1.1" and list authors instead of author.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.json-version

feeds/language

The feed’s language is not a valid BCP 47 tag

feeds/language/invalid · warning · score 3.8 · page

Readers and podcast directories use the language to filter and group feeds; a value such as “english” is ignored or misread.

Fix

Declare the language as a BCP 47 tag, en or pt-BR.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.language

The feed’s language differs from the pages that advertise it

feeds/language/mismatch · warning · score 5.3 · site

A feed linked from a page in another language is offered to the wrong audience, and readers and directories file it under the wrong language.

Fix

Link each locale’s own feed from its pages, and declare that locale as the feed’s language.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.language
  • html.lang
  • html.head.links

feeds/media-type

The feed is served with a type readers do not treat as a feed

feeds/media-type/invalid · warning · score 4.9 · page

A type such as text/html, text/plain or application/octet-stream, or none at all, can make browsers show or download the file and lets some readers and discovery tools skip it.

Fix

Serve RSS as application/rss+xml, Atom as application/atom+xml and JSON Feed as application/feed+json.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.media-type

A guid that is not a URL is marked as a permalink

feeds/permalink/invalid · warning · score 5.8 · page

An RSS guid counts as a permalink unless it says otherwise, so readers try to open a guid that is no URL and subscribers land on a broken link.

Fix

Add isPermaLink="false" to a guid that is not the item’s URL.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.permalink

feeds/podcast-guid

The podcast feed has no valid podcast:guid

feeds/podcast-guid/missing · warning · score 5.4 · page

Only podcast feeds. The Podcasting 2.0 GUID identifies the show across hosts; without it, or with a wrong value, moving the feed makes apps treat it as a new show.

Fix

Add <podcast:guid> with the UUIDv5 of the feed URL the location names, and keep it when the feed moves.

Off by default; a group that runs podcasts turns it on.

References

For rule authors

Reads

  • feed.problems.podcast-guid

feeds/podcast-locked

The podcast feed has no valid podcast:locked

feeds/podcast-locked/missing · info · score 2.4 · page

Only podcast feeds. Without podcast:locked set to yes, any platform may import the feed under its own account and publish a copy of the show without the owner’s consent. A value other than yes or no is reported too.

Fix

Add <podcast:locked>yes</podcast:locked> to keep the feed where it is, or no to let platforms import it.

Off by default; a group that runs podcasts turns it on.

References

For rule authors

Reads

  • feed.locked

The feed names no self URL, or names another one

feeds/self-link/missing · warning · score 6.0 · page

Readers and aggregators use the self link to recognise a feed reached through several addresses or one that has moved. Without it, or when it points elsewhere, subscribers can end up with duplicates.

Fix

Add <atom:link rel="self"> (RSS), <link rel="self"> (Atom) or feed_url (JSON Feed) naming the feed’s own URL.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.self

feeds/stylesheet

The feed’s stylesheet will not be applied by browsers

feeds/stylesheet/invalid · warning · score 4.7 · site

A stylesheet on another origin, one that answers an error, or one not served as an XSL type is ignored, so people who open the feed see raw XML.

Fix

Serve the XSL stylesheet from the feed’s own origin as text/xsl.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.stylesheet
  • http.status
  • http.content-type

feeds/template-placeholder

The feed contains template placeholders or empty values

feeds/template-placeholder/present · error · score 8.4 · page

Leftover template tags or the word undefined reach subscribers as post text, which makes the feed look broken.

Fix

Fill every template value before the feed is written, and leave out a field that has no value.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.template-leak

feeds/url

The feed uses relative URLs

feeds/url/invalid · warning · score 5.7 · page

A relative URL in an RSS or JSON Feed channel, item or enclosure has no base in a reader, so its links and downloads break for subscribers.

Fix

Write every channel, item and enclosure URL absolute, https://example.org/posts/1.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.problems.absolute-url

feeds/validator

The feed cannot be fetched conditionally

feeds/validator/missing · warning · score 5.2 · page

Without ETag or Last-Modified, or without 304 answers, every reader downloads the whole feed on every poll, which costs the server bandwidth and slows updates for subscribers.

Fix

Send ETag or Last-Modified with the feed and answer conditional requests with 304.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.format
  • http.headers.etag
  • http.headers.last-modified
  • http.unmodified

feeds/websub-hub

A WebSub hub named by the feed does not answer

feeds/websub-hub/unreachable · warning · score 5.2 · site

Subscribers relying on the hub receive no pushed updates while it is down. Hubs are probed only when org.spiderlint.feeds.websub is enabled.

Reported as

declared WebSub hub does not answer: the value found

Fix

Point each rel=hub link at a hub that answers 200, or remove it.

Off by default; a group that runs websub turns it on.

References

For rule authors

Reads

  • site.origins.*.feed-hubs.problems

Expects

{
  "maxItems": 0
}

feeds/websub-self

The feed names a WebSub hub but not its own URL

feeds/websub-self/missing · warning · score 4.0 · page

A WebSub subscriber needs the feed’s self URL to register with the hub. Without it the hub link is of no use, and subscribers fall back to polling.

Fix

Declare rel="self" beside rel="hub", in the feed or its Link header.

Off by default; a group that runs feeds, websub turns it on.

References

For rule authors

Reads

  • feed.hubs
  • feed.self

feeds/xslt

The feed is styled with an XSLT stylesheet

feeds/xslt/deprecated · info · score 1.8 · page

Chrome 158 stops applying XSLT, so people who open the feed in that browser see raw XML instead of the styled page.

Fix

Link a human-readable page from the feed instead of relying on an XSL stylesheet.

Off by default; a group that runs feeds turns it on.

References

For rule authors

Reads

  • feed.stylesheet

green

Rules: 1

green/page-co2

One page view emits more CO2e than the 0.209 g budget

green/page-co2/excessive · info · score 1.4–3.2 · page

At this size the page’s transfer carries a higher carbon cost for every visitor, and it loads more slowly on poor connections. The estimate follows the Sustainable Web Design model; only pages that answer 2xx are checked.

Reported as

one view emits too much CO2e by the Sustainable Web Design model, above the 0.209 g budget (rating C)

Fix

Cut the page’s transfer size: compress and resize images, drop unused scripts and fonts.

Off by default; a group that runs sustainability turns it on.

References

For rule authors

Reads

  • co2.grams

Expects

{
  "maximum": 0.209
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html-validate

Rules: 83

html-validate/area-alt

html-validate/area-alt · error · score 7.5 · page

Off by default; a group that runs html-validate, html-validate:a11y, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

aria-hidden must not be used on the <body> element as it makes the page inaccessible to assistive technology such as screenreaders

html-validate/aria-hidden-body · error · score 7.8 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/aria-label-misuse

html-validate/aria-label-misuse · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Attribute name must be in lowercase.

html-validate/attr-case · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Attribute value must not be separated by whitespace.

html-validate/attr-delimiter · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/attr-quotes

html-validate/attr-quotes · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

No space between attributes. At least one whitespace character (commonly space) must be used to separate attributes.

html-validate/attr-spacing · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/attribute-allowed-values

html-validate/attribute-allowed-values · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Require a specific style when writing boolean attributes.

html-validate/attribute-boolean-style · error · score 6.7 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Require a specific style for attributes with empty values.

html-validate/attribute-empty-style · error · score 6.7 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/attribute-misuse

html-validate/attribute-misuse · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/autocomplete-password

html-validate/autocomplete-password · error · score 6.8 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

HTML disallows end tags to have attributes.

html-validate/close-attr · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

HTML requires elements to be closed in the same order as they were opened.

html-validate/close-order · error · score 9.0 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/deprecated

html-validate/deprecated · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

HTML5 documents should use the “html” doctype (short form, not legacy string):

html-validate/doctype-html · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/doctype-style

html-validate/doctype-style · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Element tagname must be in lowercase.

html-validate/element-case · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/element-name

html-validate/element-name · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/element-permitted-content

html-validate/element-permitted-content · error · score 8.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Some elements may only be used a fixed amount of times in given context.

html-validate/element-permitted-occurrences · error · score 8.4 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Some elements has a specific order the children must use.

html-validate/element-permitted-order · error · score 8.5 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/element-permitted-parent

html-validate/element-permitted-parent · error · score 8.9 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/element-required-ancestor

html-validate/element-required-ancestor · error · score 8.8 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/element-required-attributes

html-validate/element-required-attributes · error · score 8.2 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/element-required-content

html-validate/element-required-content · error · score 8.3 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Assistive technology such as screen readers require textual content in headings. Whitespace only is considered empty.

html-validate/empty-heading · error · score 7.2 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

The <title> element cannot be empty, it must have textual content.

html-validate/empty-title · error · score 7.0 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/form-dup-name

html-validate/form-dup-name · error · score 7.0 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Headings must start at <h1> and can only increase one level at a time.

html-validate/heading-level · error · score 7.1 · page

Off by default; a group that runs html-validate, html-validate:document turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

aria-hidden cannot be used on focusable elements.

html-validate/hidden-focusable · error · score 7.7 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/input-attributes

html-validate/input-attributes · error · score 6.8 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Each form element must have an a label or accessible name.

html-validate/input-missing-label · error · score 7.3 · page

Off by default; a group that runs html-validate, html-validate:document turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Search engines truncates titles with long text, possibly down-ranking the page in the process.

html-validate/long-title · error · score 7.0 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

<map> must have a unique name, it cannot be the same name as another <map> element

html-validate/map-dup-name · error · score 7.0 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

When the id attribute is present on a <map> element it must be equal to the name attribute.

html-validate/map-id-name · error · score 7.0 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Meta refresh directive must use the 0;url=... format. Non-zero values for time interval is disallowed as people with assistive technology might be unable to read and understand the page content before automatically reloading. For the same reason skipping the url is disallowed as it would put the browser in an infinite loop reloading the same page over and over again.

html-validate/meta-refresh · error · score 7.1 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Requires that the document contains a doctype.

html-validate/missing-doctype · error · score 9.1 · page

Off by default; a group that runs html-validate, html-validate:document turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

A <label> element can only be associated with one control at a time.

html-validate/multiple-labeled-controls · error · score 7.4 · page

Off by default; a group that runs html-validate, html-validate:a11y, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/no-abstract-role

html-validate/no-abstract-role · error · score 7.1 · page

Off by default; a group that runs html-validate, html-validate:a11y, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/no-autoplay

html-validate/no-autoplay · error · score 7.6 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Microsoft Internet Explorer previously supported using special HTML comments (conditional comments) for targeting specific versions of IE but since IE 10 it is deprecated and not supported in standards mode.

html-validate/no-conditional-comment · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

HTML5 deprecated many old attributes.

html-validate/no-deprecated-attr · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

HTML disallows two or more attributes with the same (case-insensitive) name.

html-validate/no-dup-attr · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Prevents unnecessary duplication of class names.

html-validate/no-dup-class · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

The ID of an element must be unique.

html-validate/no-dup-id · error · score 7.9 · page

Off by default; a group that runs html-validate, html-validate:a11y, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

<button> is missing recommended type attribute

html-validate/no-implicit-button-type · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Some elements in HTML has optional end tags. When an optional tag is omitted a browser must handle it as if the end tag was present.

html-validate/no-implicit-close · error · score 8.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

<input> is missing recommended type attribute

html-validate/no-implicit-input-type · error · score 6.9 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Inline style is not allowed.

html-validate/no-inline-style · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/no-missing-references

html-validate/no-missing-references · error · score 9.2 · page

Off by default; a group that runs html-validate, html-validate:document turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Only a single visible <main> element can be present at in a document at a time.

html-validate/no-multiple-main · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Some characters such as < and & hold special meaning in HTML and must be escaped using a character reference (HTML entity).

html-validate/no-raw-characters · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

aria-label is redundant when an associated <label> element containing the same text exists.

html-validate/no-redundant-aria-label · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

When the <label> element wraps the labelable control the for attribute is redundant and better left out.

html-validate/no-redundant-for · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/no-redundant-role

html-validate/no-redundant-role · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Self-closing elements are disallowed. Use regular end tag <undefined></undefined> instead of self-closing <undefined/>.

html-validate/no-self-closing · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Lines with trailing whitespace cause unnessecary diff when using version control and usually serve no special purpose in HTML.

html-validate/no-trailing-whitespace · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/no-unused-disable

html-validate/no-unused-disable · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

This file is saved with the UTF-8 byte order mark (BOM) present. It is neither required or recommended to use.

html-validate/no-utf8-bom · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/prefer-button

html-validate/prefer-button · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/prefer-native-element

html-validate/prefer-native-element · error · score 7.0 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

While <tbody> is optional is relays semantic information about its contents. Where applicable it should also be combined with <thead> and <tfoot>.

html-validate/prefer-tbody · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/presentation-role-style

html-validate/presentation-role-style · error · score 8.0 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Subresource Integrity (SRI) integrity attribute is required to prevent tampering or manipulation from Content Delivery Networks (CDN), rouge proxies, malicious entities, etc.

html-validate/require-sri · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:document turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

The end tag for <script> is a hard requirement and must never be omitted even when using the src attribute.

html-validate/script-element · error · score 6.7 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

While valid the HTML5 standard encourages authors to omit the type element for JavaScript resources.

html-validate/script-type · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/tel-non-breaking

html-validate/tel-non-breaking · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/text-content

html-validate/text-content · error · score 7.1 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

When the same type of landmark is present more than once in the same document each must be uniquely identifiable with a non-empty and unique name.

html-validate/unique-landmark · error · score 7.0 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/unrecognized-char-ref

html-validate/unrecognized-char-ref · error · score 6.6 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/valid-autocomplete

html-validate/valid-autocomplete · error · score 7.2 · page

Off by default; a group that runs html-validate, html-validate:a11y, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

The <label> for attribute must reference a labelable form control.

html-validate/valid-for · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/valid-id

html-validate/valid-id · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

HTML void elements cannot have any content and must not have content or end tag.

html-validate/void-content · error · score 8.1 · page

Off by default; a group that runs html-validate, html-validate:standard turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/void-style

html-validate/void-style · error · score 6.6 · page

Off by default; a group that runs html-validate turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html-validate/wcag

WCAG 2.1 requires each <a href> anchor link to have a text describing the purpose of the link using either plain text or an <img> with the alt attribute set.

html-validate/wcag/h30 · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

WCAG 2.1 requires each <form> element to have at least one submit button.

html-validate/wcag/h32 · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

WCAG 2.1 requires all images used as submit buttons to have a non-empty textual description using the alt attribute.

html-validate/wcag/h36 · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

Both HTML5 and WCAG 2.0 requires images to have a alternative text for each image.

html-validate/wcag/h37 · error · score 6.9 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

H63: Using the scope attribute to associate header cells and data cells in data tables

html-validate/wcag/h63 · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

A decorative image cannot have a title attribute. Either remove title or add a descriptive alt text.

html-validate/wcag/h67 · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

H71: Providing a description for groups of form controls using fieldset and legend elements

html-validate/wcag/h71 · error · score 6.8 · page

Off by default; a group that runs html-validate, html-validate:a11y turns it on.

References

For rule authors

Reads

  • htmlvalidate.messages

html

Rules: 65

html/alternate-format

The home page links no machine-readable alternate version

html/alternate-format/missing · hint · score 0.5 · page

Without one, tools and AI agents have only the HTML to read, and no feed, JSON or Markdown version to consume. Only the home page is checked, and this is an optional extra.

Reported as

the home page links no machine-readable alternate (feed, JSON, Markdown)

Fix

Add <link rel=alternate type=text/markdown href=/index.md> or a feed to the head.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • html.head.links

Expects

{
  "contains": {
    "required": [
      "rel",
      "type"
    ],
    "properties": {
      "rel": {
        "pattern": "(?i:(^|\\s)alternate(\\s|$))"
      },
      "type": {
        "not": {
          "pattern": "^(?i:text/html)"
        }
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "url.pathname": "/"
}

html/author

An article names no author for its link preview

html/author/missing · warning · score 3.7 · page

Link previews, such as Mastodon’s, show the author from these tags, so the article appears with no credited writer. Only pages marked as articles are checked.

Reported as

an article names no author for its link preview

Fix

Add <meta name=author>, article:author, or a JSON-LD author to the article head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.author

Expects

{
  "type": "string",
  "minLength": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:type": "article"
}

html/canonical

The canonical link is not an absolute URL

html/canonical/invalid · warning · score 5.4 · page

A relative canonical may be resolved wrongly or ignored by search engines, so they index a duplicate instead. Only pages that have a canonical link are checked.

Reported as

canonical link should be an absolute URL

Fix

Make the canonical link an absolute URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.canonical

Expects

{
  "type": "string",
  "pattern": "^https?://"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.canonical": {
    "type": "string"
  }
}

The canonical link names a different URL

html/canonical/mismatch · warning · score 6.4 · page

Search engines are told another URL is the main version, so this page may drop out of results in its favour. The page’s twin on the canonical origin counts as itself, and pages without a canonical link are skipped.

Fix

Point <link rel=canonical> at this page’s own URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.canonical

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The page has no canonical link

html/canonical/missing · warning · score 5.4 · page

Without it, search engines must guess which of several URLs for the same content to index, which splits ranking between them. Only HTML pages that answer 2xx are checked.

Reported as

no canonical link

Fix

Add <link rel=canonical> with the page’s absolute URL to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.canonical

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/charset

The character encoding is not UTF-8 near the top of the page

html/charset/invalid · warning · score 5.2 · page

Browsers read only the first 1024 bytes for the declaration, so a later or non-UTF-8 one may be missed and the text garbled. Only pages that declare a charset are checked.

Reported as

<meta charset> should declare UTF-8 within the first 1024 bytes

Fix

Add <meta charset=utf-8> as the first element of <head>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.charset

Expects

{
  "type": "object",
  "required": [
    "declared",
    "offset"
  ],
  "properties": {
    "declared": {
      "pattern": "^(?i:utf-?8)$"
    },
    "offset": {
      "maximum": 1024
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.charset": {
    "type": "object"
  }
}

The page declares no character encoding

html/charset/missing · warning · score 5.2 · page

Browsers must guess the encoding, so accented letters, symbols and emoji can appear as garbage for some visitors. Only HTML pages that answer 2xx are checked.

Reported as

no <meta charset>

Fix

Add <meta charset=utf-8> as the first element of <head>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.charset

Expects

{
  "type": "object"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/color-scheme

The color-scheme value is not valid

html/color-scheme/invalid · info · score 1.4 · page

Browsers ignore a value they cannot read, so the page gets no dark-mode support from it. Only pages that set color-scheme are checked.

Reported as

meta color-scheme should be normal, or scheme names such as light dark

Fix

Set meta color-scheme to normal, or to scheme names such as “light dark”.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.color-scheme

Expects

{
  "type": "string",
  "pattern": "^\\s*(?:(?i:normal)|(?:(?i:only)\\s+)?(?!(?i:normal|only)\\b)[A-Za-z_-][\\w-]*(?:\\s+(?!(?i:normal|only)\\b)[A-Za-z_-][\\w-]*)*(?:\\s+(?i:only))?)\\s*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.meta.color-scheme": {
    "type": "string"
  }
}

The page does not declare its color scheme

html/color-scheme/missing · info · score 1.4 · page

Browsers cannot tell that the page supports dark mode, so they may paint a white flash or default controls in the wrong theme. Only HTML pages that answer 2xx are checked.

Reported as

no meta color-scheme

Fix

Add <meta name=color-scheme content=“light dark”>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.color-scheme

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/declaration

A script changes what the served HTML declares

html/declaration/mismatch · info · score 1.5 · page

Crawlers and tools that run no script read the served title, canonical or robots tags, while browsers read the changed ones, so each sees a different page. Compared only on pages also rendered in a browser.

Fix

Serve each declaration with its final value, so readers that run no script see what the page means.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • html.rewritten

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/description

Pages of the site share one meta description

html/description/duplicate · warning · score 5.6 · site

Identical descriptions give search engines no way to tell the pages apart, and visitors see the same snippet for different results. The check compares all crawled pages.

Reported as

pages share one meta description

Fix

Give each page a distinct meta description.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.description

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The meta description is shorter than 50 or longer than 160 characters

html/description/length · warning · score 5.5 · page

Search engines cut off a long description and a very short one gives them little to show, so the snippet reads poorly. Only pages that have a meta description are checked.

Reported as

meta description should be 50–160 characters

Fix

Shorten or lengthen the meta description to 50–160 characters.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.description

Expects

{
  "type": "string",
  "minLength": 50,
  "maxLength": 160
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.meta.description": {
    "type": "string"
  }
}

The page has no meta description

html/description/missing · warning · score 6.0 · page

Search engines build the snippet from whatever text they find, which often reads poorly and lowers clicks from results. Only HTML pages that answer 2xx are checked.

Reported as

no meta description

Fix

Add <meta name=description> with a summary to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.description

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The meta description repeats itself around a separator

html/description/redundant · warning · score 4.7 · page

A repeated phrase wastes the limited space of the snippet in search results and looks careless. Only pages that have a meta description are checked.

Reported as

meta description repeats itself around a separator

Fix

Remove the repeated suffix from the meta description.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.description

Expects

{
  "type": "string",
  "pattern": "^(?!.*(.{2,120}?)\\s*[-|:–—·»]\\s*\\1$).*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.meta.description": {
    "type": "string"
  }
}

html/dir

A right-to-left page does not set its text direction

html/dir/missing · warning · score 3.8 · page

Without dir=rtl, punctuation and mixed text land in the wrong place and the layout may flip incorrectly for readers of Arabic, Hebrew, Persian and similar languages. Only pages whose language is written right to left are checked.

Reported as

a right-to-left language should set <html dir=rtl>

Fix

Add dir=rtl to the <html> element.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.dir

Expects

{
  "const": "rtl"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.lang": {
    "type": "string",
    "pattern": "^(?i:ar|arc|ckb|dv|fa|he|ps|sd|ug|ur|yi)(-|$)"
  }
}

html/favicon

The page has no favicon link in its head

html/favicon/missing · info · score 2.2 · page

Browsers request /favicon.ico blindly and may show a blank icon in tabs, bookmarks and search results, which makes the site harder to recognise. Only HTML pages that answer 2xx are checked.

Reported as

no <link rel=icon> in the head

Fix

Add <link rel=icon href=/favicon.ico> to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.head.links

Expects

{
  "contains": {
    "required": [
      "rel"
    ],
    "properties": {
      "rel": {
        "pattern": "(?i:(^|\\s)icon(\\s|$))"
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/fediverse-creator

fediverse:creator is not in the @user@instance form

html/fediverse-creator/invalid · hint · score 0.3 · page

Mastodon cannot resolve a value in another form, so the article shows no credited author. Only articles that set fediverse:creator are checked.

Reported as

fediverse:creator should name an account as @user@instance

Fix

Set fediverse:creator to an account, as @user@instance.example.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • html.meta.fediverse:creator

Expects

{
  "type": "string",
  "pattern": "^@?[^@\\s]+@[^@\\s]+\\.[^@\\s]+$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "html.property.og:type": "article",
  "html.meta.fediverse:creator": {
    "type": "string"
  }
}

An article names no fediverse:creator account

html/fediverse-creator/missing · hint · score 0.3 · page

Mastodon shows a link preview’s author from this tag, so without it the article appears with no credited author there. Only pages marked as articles are checked, and this is an optional extra.

Reported as

an article names no fediverse:creator account for Mastodon previews

Fix

Add <meta name=fediverse:creator content=“@user@instance.example”> to the article head.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • html.meta.fediverse:creator

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "html.property.og:type": "article"
}

The home page links no RSS, Atom or JSON feed

html/feed-link/missing · hint · score 0.5 · page

Without a feed link, readers and feed apps cannot find the site’s updates, so subscribing means checking it by hand. Only the home page is checked, and this is an optional extra.

Reported as

the home page links no RSS, Atom or JSON feed

Fix

Add <link rel=alternate type=application/atom+xml href=/feed.xml> to the head.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • html.head.links

Expects

{
  "contains": {
    "required": [
      "rel",
      "type"
    ],
    "properties": {
      "rel": {
        "pattern": "(?i:(^|\\s)alternate(\\s|$))"
      },
      "type": {
        "pattern": "^(?i:application/(rss\\+xml|atom\\+xml|feed\\+json))"
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "url.pathname": "/"
}

html/first-image

The first image is lazy-loaded

html/first-image/slow · info · score 2.9 · page

The first image is usually in view at once, and lazy loading delays it, which slows the largest paint and makes the page feel slower to visitors.

Reported as

the first <img> is usually above the fold, and loading=lazy delays it

Fix

Remove loading=lazy from the first <img>, or set it to eager.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.images.0

Expects

{
  "not": {
    "type": "object",
    "required": [
      "loading"
    ],
    "properties": {
      "loading": {
        "pattern": "^(?i:lazy)$"
      }
    }
  }
}

html/h1

The page has more than one main heading

html/h1/duplicate · error · score 7.4 · page

Several h1 headings blur what the page is about for screen reader users and search engines. Only HTML pages that answer 2xx are checked.

Reported as

more than one <h1>

Fix

Use exactly one <h1> per page.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.h1

Expects

{
  "type": "array",
  "maxItems": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The page has no main heading

html/h1/missing · error · score 7.4 · page

Screen reader users and search engines lose the clearest signal of what the page is about. Only HTML pages that answer 2xx are checked.

Reported as

no <h1>

Fix

Use exactly one <h1> per page.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.h1

Expects

{
  "type": "array",
  "minItems": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/hreflang-x-default

The hreflang alternates have no x-default

html/hreflang-x-default/missing · info · score 2.6 · page

Visitors whose language the site does not offer have no designated fallback page, so search engines pick one for them. Only pages that declare hreflang alternates are checked.

Reported as

hreflang alternates should include x-default

Fix

Add <link rel=alternate hreflang=x-default> to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.hreflang

Expects

{
  "contains": {
    "required": [
      "lang"
    ],
    "properties": {
      "lang": {
        "const": "x-default"
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.hreflang": {
    "minItems": 1
  }
}

html/img-alt

An image has no alt attribute

html/img-alt/missing · warning · score 5.0 · page

Screen reader users get no description of the image, and search engines cannot use it to understand the page or list it in image search. Only HTML pages that answer 2xx are checked.

Reported as

an <img> has no alt attribute

Fix

Add an alt attribute to every <img>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.images

Expects

{
  "type": "array",
  "items": {
    "required": [
      "alt"
    ]
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/img-dimensions

An image has no width and height

html/img-dimensions/missing · warning · score 6.0 · page

Without dimensions, the browser cannot reserve space before the image loads, so the text jumps when it arrives. That layout shift annoys visitors and hurts Core Web Vitals. Images inside noscript are skipped.

Reported as

an <img> without width and height shifts the layout as it loads

Fix

Add width and height attributes to the <img>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.images

Expects

{
  "items": {
    "if": {
      "not": {
        "required": [
          "noscript"
        ]
      }
    },
    "then": {
      "required": [
        "width",
        "height"
      ]
    }
  }
}

html/jsonld

A JSON-LD block does not parse

html/jsonld/invalid · warning · score 4.5 · page

Search engines skip structured data they cannot read, so the rich results it was meant to enable, such as ratings or event listings, never appear. Only HTML pages that answer 2xx are checked.

Reported as

a JSON-LD block does not parse

Fix

Fix the JSON-LD block so it is valid JSON.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.jsonld

Expects

{
  "items": {
    "not": {
      "type": "object",
      "required": [
        "@error"
      ]
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/lang

The page’s language code is not a valid language tag

html/lang/invalid · error · score 8.2 · page

Screen readers and browsers cannot match an invalid code to a language, so they treat the page as if it had none. Only pages that set a language are checked.

Reported as

<html lang> should be a BCP 47 language tag

Fix

Set <html lang> to a BCP 47 language tag.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.lang

Expects

{
  "type": "string",
  "pattern": "^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.lang": {
    "type": "string"
  }
}

The page does not declare its language

html/lang/missing · error · score 8.2 · page

Screen readers pick the wrong pronunciation, browsers may offer needless translation, and search engines must guess which audience the page is for. Only HTML pages that answer 2xx are checked.

Reported as

no <html lang>

Fix

Set <html lang> to the page’s language, as <html lang=en>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.lang

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/nlweb

The home page links no NLWeb endpoint

html/nlweb/missing · hint · score 0.3 · page

Without the link, AI agents cannot discover that the site answers natural-language questions. Only the home page is checked, and this is an optional extra.

Reported as

the home page links no NLWeb endpoint with rel=nlweb

Fix

Add <link rel=nlweb href=/ask> pointing at the site’s NLWeb endpoint.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • html.rels.nlweb

Expects

{
  "type": "array",
  "minItems": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "url.pathname": "/"
}

html/noai

A page says noai while the content signals allow AI training

html/noai/present · warning · score 3.4 · page

The site declares in its content signals that AI training is allowed, yet a page tells crawlers noai or noimageai. The mixed message leaves AI crawlers and the site owner’s intent in conflict. Only sites that declare ai-train as yes are checked.

Reported as

a page says noai or noimageai while the content signals allow AI training

Fix

Remove noai and noimageai from <meta name=robots> and X-Robots-Tag, or declare ai-train as no.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • robots.noai

Expects

{
  "const": false
}

When

{
  "site.content-signals.ai-train": "yes"
}

html/noindex-staging

A page of a staging or development site can be indexed

html/noindex-staging/missing · warning · score 6.2 · page

Search engines may index the unfinished copy and show it to searchers instead of, or beside, the real site. Only sites declared as development or staging are checked.

Reported as

a page of a staging or development site is indexable

Fix

Send X-Robots-Tag: noindex from every non-production host.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • robots.noindex

Expects

{
  "const": true
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "site.role": {
    "enum": [
      "development",
      "staging"
    ]
  },
  "url.twin": {
    "not": {
      "type": "string"
    }
  }
}

html/noindex-twin

A page served from a non-canonical origin can be indexed

html/noindex-twin/missing · info · score 3.0 · page

If a staging or alternate host serves a copy of the site without noindex, search engines may index the duplicate and compete with the real site. Only pages that mirror a page on the canonical origin are checked.

Reported as

a page served off the canonical origin is indexable; mark the staging twin noindex

Fix

Send X-Robots-Tag: noindex from every origin other than the canonical one.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • robots.noindex

Expects

{
  "const": true
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "url.twin": {
    "type": "string"
  }
}

html/noindex

A page listed in the sitemap says noindex

html/noindex/mismatch · error · score 8.0 · page

The sitemap asks search engines to index the page while the page asks them not to, so the page may vanish from results by mistake. Only production sites are checked, and not copies of a page on another origin.

Reported as

a page the sitemap lists says noindex, in <meta name=robots> or X-Robots-Tag

Fix

Remove noindex from <meta name=robots> or X-Robots-Tag, or unlist the page from the sitemap.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • robots.noindex

Expects

{
  "const": false
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "sitemap.listed": true,
  "url.twin": {
    "not": {
      "type": "string"
    }
  },
  "site.role": "production"
}

html/og-description

Pages of the site share one og:description

html/og-description/duplicate · warning · score 4.1 · site

Shared links to different pages show the same summary, so people cannot tell them apart. The check compares all crawled pages.

Reported as

pages share one og:description

Fix

Give each page a distinct og:description.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:description

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The og:description is shorter than 50 or longer than 200 characters

html/og-description/length · warning · score 3.9 · page

A long description is cut off in link previews and a very short one gives no reason to click. Only pages that set og:description are checked.

Reported as

og:description should be 50–200 characters

Fix

Set og:description to 50–200 characters.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:description

Expects

{
  "type": "string",
  "minLength": 50,
  "maxLength": 200
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:description": {
    "type": "string"
  }
}

The page has no og:description

html/og-description/missing · warning · score 3.9 · page

Shared links show no summary, or a guessed one, so fewer people click them. Only HTML pages that answer 2xx are checked.

Reported as

no og:description

Fix

Add <meta property=og:description> with a summary of the page.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:description

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/og-image

The og:image is not an absolute http(s) URL

html/og-image/invalid · warning · score 4.6 · page

Social networks and chat apps cannot fetch a relative or malformed image address, so the shared link shows no picture. Only pages that set og:image are checked.

Reported as

og:image should be an absolute http(s) URL

Fix

Make og:image an absolute URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:image

Expects

{
  "type": "string",
  "format": "uri",
  "pattern": "^(?i:https?)://"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:image": {
    "type": "string"
  }
}

The page has no og:image

html/og-image/missing · warning · score 4.6 · page

Shared links appear without a preview picture, which draws far less attention in feeds and chats. Only HTML pages that answer 2xx are checked.

Reported as

no og:image

Fix

Add <meta property=og:image> with the absolute URL of a preview image.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:image

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/og-title

Pages of the site share one og:title

html/og-title/duplicate · warning · score 4.2 · site

Shared links to different pages look identical in feeds and chats, so people cannot tell which one they are about to open. The check compares all crawled pages.

Reported as

pages share one og:title

Fix

Give each page a distinct og:title.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:title

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The og:title is shorter than 10 or longer than 90 characters

html/og-title/length · warning · score 4.0 · page

A very long title is cut off in link previews and a very short one says little, so fewer people click a shared link. Only pages that set og:title are checked.

Reported as

og:title should be 10–90 characters

Fix

Set og:title to 10–90 characters.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:title

Expects

{
  "type": "string",
  "minLength": 10,
  "maxLength": 90
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:title": {
    "type": "string"
  }
}

The page has no og:title

html/og-title/missing · warning · score 4.0 · page

Shared links on social networks and chat apps fall back to a guessed title, which can look wrong. Only HTML pages that answer 2xx are checked.

Reported as

no og:title

Fix

Add <meta property=og:title> with the page title.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:title

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/og-type

The og:type is not a known Open Graph type

html/og-type/invalid · info · score 1.1 · page

Link previews do not recognise the value and fall back to a generic type. Only pages that set og:type are checked.

Reported as

og:type should be an Open Graph type or namespace:type

Fix

Set og:type to website, or article on a post.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:type

Expects

{
  "type": "string",
  "pattern": "^(?:website|article|book|profile|music\\.(?:song|album|playlist|radio_station)|video\\.(?:movie|episode|tv_show|other)|[a-z][\\w-]*:[\\w.-]+)$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:type": {
    "type": "string"
  }
}

The page has no og:type

html/og-type/missing · info · score 1.1 · page

Link previews cannot tell whether the page is an article, a profile or a plain website, so they may render it generically. Only HTML pages that answer 2xx are checked.

Reported as

no og:type

Fix

Set og:type to website, or article on a post.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:type

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/og-url

The og:url is not an absolute http(s) URL

html/og-url/invalid · info · score 2.5 · page

Social networks may ignore a relative or malformed address, so they do not credit shares to the page. Only pages that set og:url are checked.

Reported as

og:url should be an absolute http(s) URL

Fix

Make og:url an absolute URL of this page.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:url

Expects

{
  "type": "string",
  "format": "uri",
  "pattern": "^(?i:https?)://"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:url": {
    "type": "string"
  }
}

The og:url tag names a different URL

html/og-url/mismatch · info · score 2.4 · page

Social networks and chat apps credit shares to the og:url, so a shared link can show another address than the one visitors posted and split its counts. Pages without og:url are skipped.

Fix

Point <meta property=og:url> at this page’s own URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:url

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The page has no og:url

html/og-url/missing · info · score 2.5 · page

Social networks cannot tell which URL to credit for a shared page, so likes and shares may be split across variants of the address. Only HTML pages that answer 2xx are checked.

Reported as

no og:url

Fix

Add <meta property=og:url> with this page’s absolute URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.property.og:url

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/preconnect-crossorigin

A preconnect to a font origin lacks crossorigin

html/preconnect-crossorigin/missing · info · score 1.6 · page

Fonts are fetched in anonymous CORS mode, so a preconnect without crossorigin warms a connection the font request cannot reuse, and the browser opens a second one, delaying text.

Fix

Add the crossorigin attribute to the preconnect link towards the origin fonts load from.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.head.links
  • http.parsed.link
  • resources

html/preconnect

A render-blocking origin has no preconnect hint

html/preconnect/missing · info · score 2.2 · page

Scripts or style sheets from another origin hold back rendering, and the browser sets up the connection only once it finds them, which delays the first paint. Counts head scripts without async, defer or type=module, and style sheets for screens.

Fix

Add <link rel=“preconnect” href=“https://origin.example”> for each cross origin a render-blocking script or style sheet comes from.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.head.links
  • http.parsed.link
  • html.scripts

A preconnect hint points at an origin the page never uses

html/preconnect/unused · info · score 1.4 · page

The browser opens a connection that nothing uses, spending bandwidth and battery and competing with connections that matter. Judged only on pages rendered in a browser, since a static read misses what scripts and CSS load.

Fix

Remove the preconnect or dns-prefetch link to an origin the page no longer loads from.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.head.links
  • http.parsed.link
  • resources

html/privacy-policy

The page links no privacy policy with rel=privacy-policy

html/privacy-policy/missing · info · score 1.6 · page

Browsers, crawlers and assistants cannot find the privacy policy automatically, so visitors have a harder time learning what happens to their data. Only HTML pages that answer 2xx are checked.

Reported as

no link with rel=privacy-policy

Fix

Add <link rel=privacy-policy href=/privacy> to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.rels.privacy-policy

Expects

{
  "type": "array",
  "minItems": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/published-date

An article gives no publication date for its link preview

html/published-date/missing · warning · score 3.6 · page

Link previews cannot show when the article appeared, and readers cannot judge how fresh it is. Only pages marked as articles are checked.

Reported as

an article gives no publication date for its link preview

Fix

Add <meta property=article:published_time> or a JSON-LD datePublished in ISO 8601.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.published

Expects

{
  "type": "string",
  "minLength": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.property.og:type": "article"
}

html/script

A script in the head blocks rendering

html/script/blocking · info · score 3.0 · page

A classic script in the head without async or defer makes the browser stop and download it before showing anything, so visitors stare at a blank page longer. External scripts are checked, module scripts are fine.

Reported as

a script in <head> without async, defer or type=module blocks rendering

Fix

Add async, defer, or type=module to the script, or move it to the end of <body>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.scripts

Expects

{
  "items": {
    "if": {
      "required": [
        "src"
      ],
      "properties": {
        "head": {
          "const": true
        },
        "async": {
          "const": false
        },
        "defer": {
          "const": false
        }
      }
    },
    "then": {
      "required": [
        "type"
      ],
      "properties": {
        "type": {
          "const": "module"
        }
      }
    }
  }
}

html/speculation-rules

The page has no Speculation Rules to prefetch likely next pages

html/speculation-rules/missing · hint · score 0.7 · page

Without them, a click on a likely next page waits for a fresh load that the browser could have started earlier. This is an optional speed-up for HTML pages that answer 2xx.

Reported as

no Speculation Rules script or header prefetches likely next pages

Fix

Add <script type=speculationrules> with a prefetch rule for same-origin links.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • html.scripts

Expects

{
  "contains": {
    "required": [
      "type"
    ],
    "properties": {
      "type": {
        "pattern": "^(?i:speculationrules)$"
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "http.headers.speculation-rules": {
    "not": {
      "type": "string"
    }
  }
}

html/stylesheet

More than one stylesheet in the head blocks rendering

html/stylesheet/blocking · info · score 2.3 · page

Each stylesheet in the head must download before the page shows, so several of them delay the first paint, most of all on slow connections. Only plain stylesheets for all media or screen are counted.

Reported as

more than one stylesheet in <head> blocks rendering

Fix

Inline the critical CSS and load the rest with media=print onload, or merge the stylesheets into one.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.head.links

Expects

{
  "minContains": 0,
  "maxContains": 1,
  "contains": {
    "required": [
      "rel"
    ],
    "properties": {
      "rel": {
        "pattern": "^\\s*(?i:stylesheet)\\s*$"
      },
      "media": {
        "pattern": "^\\s*(?i:all|screen)?\\s*$"
      }
    }
  }
}

html/tdm-reservation

The tdm-reservation meta tag is not 0 or 1

html/tdm-reservation/invalid · warning · score 3.5 · page

Text-and-data-mining crawlers cannot read the page’s reservation, so they may mine content the owner meant to reserve. Only pages that set the tag are checked.

Reported as

<meta name=tdm-reservation> should be 0 or 1

Fix

Set <meta name=tdm-reservation content=1> to reserve text and data mining rights, 0 to waive them.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.tdm-reservation

Expects

{
  "type": "string",
  "pattern": "^\\s*[01]\\s*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.meta.tdm-reservation": {
    "type": "string"
  }
}

html/theme-color-dark

Light and dark are declared, but no dark theme-color is set

html/theme-color-dark/missing · warning · score 3.4 · page

The address bar stays in the light color when the visitor uses dark mode, which clashes with the page. Only pages whose color-scheme names both light and dark are checked.

Reported as

color-scheme names light and dark, but no theme-color pair carries a prefers-color-scheme media

Fix

Add <meta name=theme-color media=“(prefers-color-scheme: dark)”> beside the light one.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.metas

Expects

{
  "allOf": [
    {
      "contains": {
        "properties": {
          "name": {
            "const": "theme-color"
          }
        },
        "required": [
          "name"
        ]
      },
      "minContains": 2
    },
    {
      "contains": {
        "properties": {
          "name": {
            "const": "theme-color"
          },
          "media": {
            "pattern": "(?i:prefers-color-scheme)"
          }
        },
        "required": [
          "name",
          "media"
        ]
      }
    }
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.meta.color-scheme": {
    "type": "string",
    "allOf": [
      {
        "pattern": "(?i:\\blight\\b)"
      },
      {
        "pattern": "(?i:\\bdark\\b)"
      }
    ]
  }
}

html/theme-color

The theme-color meta tag is not a valid color

html/theme-color/invalid · warning · score 3.3 · page

Browsers ignore a theme-color that is empty or not a CSS color, so the toolbar on phones keeps its default and the page loses its branding.

Fix

Set <meta name=theme-color> content to a CSS color, as in #1a73e8.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.metas

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The page has no theme-color meta tag

html/theme-color/missing · warning · score 3.3 · page

Mobile browsers cannot tint their address bar to match the site, so the page looks less polished and less like an app. Only HTML pages that answer 2xx are checked.

Reported as

no meta theme-color

Fix

Add <meta name=theme-color> with a color value.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.theme-color

Expects

{
  "type": "string",
  "minLength": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

html/title

Pages of the site share one title

html/title/duplicate · warning · score 5.9 · site

Identical titles make pages indistinguishable in tabs and search results, and search engines may treat them as duplicates and show only one. The check compares all crawled pages.

Reported as

pages share one <title>

Fix

Give each page a distinct <title>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.title

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The title is shorter than 30 or longer than 60 characters

html/title/length · warning · score 5.7 · page

Search results cut off a long title and a short one wastes the space that sets the page apart, so fewer visitors click it. Only pages that have a title are checked.

Reported as

<title> should be 30–60 characters

Fix

Shorten or lengthen <title> to 30–60 characters.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.title

Expects

{
  "type": "string",
  "minLength": 30,
  "maxLength": 60
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.title": {
    "type": "string"
  }
}

The page has no title

html/title/missing · error · score 7.8 · page

Browser tabs, bookmarks and search results show a bare address, so visitors cannot tell the page apart and search engines have little to rank it by. Only HTML pages that answer 2xx are checked.

Reported as

no <title>

Fix

Add a <title> to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.title

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The title repeats itself around a separator

html/title/redundant · warning · score 4.8 · page

A repeated phrase such as “Shop - Shop” wastes the limited space of a title in search results and looks careless. Only pages that have a title are checked.

Reported as

<title> repeats itself around a separator

Fix

Remove the repeated suffix from <title>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.title

Expects

{
  "type": "string",
  "pattern": "^(?!.*(.{2,120}?)\\s*[-|:–—·»]\\s*\\1$).*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.title": {
    "type": "string"
  }
}

html/viewport

The viewport tag blocks zooming or ignores the device width

html/viewport/inaccessible · warning · score 5.3 · page

Visitors with low vision cannot zoom in, and a page that does not follow the device width looks tiny on phones. Only pages that set a viewport are checked.

Reported as

meta viewport should set width=device-width and allow zoom

Fix

Set <meta name=viewport content=“width=device-width”> and allow zoom.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.viewport

Expects

{
  "type": "string",
  "pattern": "^(?!.*(?i:user-scalable)\\s*=\\s*(?i:no|0)\\b)(?!.*(?i:maximum-scale)\\s*=\\s*1(\\.0+)?(?![\\d.]))(?=.*(?i:width\\s*=\\s*device-width))"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html.meta.viewport": {
    "type": "string"
  }
}

The viewport meta tag has entries browsers ignore

html/viewport/invalid · info · score 1.3 · page

Browsers silently drop unknown keys and unreadable values, so the page may not scale or fit a phone screen as intended.

Fix

Keep meta viewport to known keys, as in width=device-width, initial-scale=1.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.viewport

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

The page has no viewport meta tag

html/viewport/missing · warning · score 5.3 · page

Phones render the page as a zoomed-out desktop layout, so visitors must pinch and scroll sideways, and search engines may rate the page as not mobile-friendly. Only HTML pages that answer 2xx are checked.

Reported as

no meta viewport

Fix

Add <meta name=viewport content=“width=device-width”> to the head.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.meta.viewport

Expects

{
  "type": "string"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

htmlhint

Rules: 28

The alt attribute of an <img> element must be present and alt attribute of area[href] and input[type=image] must have a value.

htmlhint/alt-require · warning · score 6.2 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

All attribute names must be in lowercase.

htmlhint/attr-lowercase · error · score 6.8 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Elements cannot have duplicate attributes.

htmlhint/attr-no-duplication · error · score 7.8 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

No spaces between attribute names and values.

htmlhint/attr-no-unnecessary-whitespace · error · score 6.6 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Attribute values cannot contain unsafe chars.

htmlhint/attr-unsafe-chars · warning · score 4.4 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Attribute values must be in double quotes.

htmlhint/attr-value-double-quotes · error · score 6.6 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Class attributes should not contain duplicate values. Other attributes can be checked via configuration.

htmlhint/attr-value-no-duplication · error · score 6.8 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

All attributes should be separated by only one space and not have leading/trailing whitespace.

htmlhint/attr-whitespace · error · score 6.6 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

The type attribute of a <button> element must be present with a valid value: “button”, “submit”, or “reset”.

htmlhint/button-type-require · warning · score 4.8 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Doctype must be declared first (comments and whitespace allowed before DOCTYPE).

htmlhint/doctype-first · error · score 7.0 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Invalid doctype. Use: “<!DOCTYPE html>”

htmlhint/doctype-html5 · warning · score 4.2 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

A <frame> or <iframe> element must have an accessible name.

htmlhint/frame-title-require · warning · score 4.6 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

<h1> must be present in <body> tag and not be empty.

htmlhint/h1-require · warning · score 5.8 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

The lang attribute of an <html> element must be present and should be valid.

htmlhint/html-lang-require · warning · score 5.6 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

The id and class attributes cannot use the ad keyword, it will be blocked by adblock software.

htmlhint/id-class-ad-disabled · warning · score 3.6 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

The value of id attributes must be unique.

htmlhint/id-unique · error · score 8.4 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

All [ input ] tags must have a corresponding [ label ] tag.

htmlhint/input-requires-label · warning · score 6.0 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

<main> must be present in <body> tag.

htmlhint/main-require · warning · score 5.4 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

<meta charset=“”> must be present in <head> tag.

htmlhint/meta-charset-require · error · score 7.8 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

<meta name=“description”> with non-blank content must be present in <head> tag.

htmlhint/meta-description-require · error · score 7.2 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

<meta name=“viewport”> with non-blank content must be present in <head> tag.

htmlhint/meta-viewport-require · error · score 7.6 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Special characters must be escaped.

htmlhint/spec-char-escape · error · score 7.4 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

The src attribute of an img(script,link) must have a value.

htmlhint/src-not-empty · error · score 8.2 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Disallows the use of obsolete HTML tags.

htmlhint/tag-no-obsolete · error · score 7.0 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

Tag must be paired.

htmlhint/tag-pair · error · score 9.0 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

All html element names must be in lowercase.

htmlhint/tagname-lowercase · error · score 6.8 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

All special characters must be escaped.

htmlhint/tagname-specialchars · error · score 6.8 · page

Off by default; a group that runs htmlhint:extra turns it on.

References

For rule authors

Reads

  • htmlhint.messages

<title> must be present in <head> tag.

htmlhint/title-require · error · score 7.6 · page

Off by default; a group that runs htmlhint turns it on.

References

For rule authors

Reads

  • htmlhint.messages

http

Rules: 70

http/accept-ch

The Accept-CH header is malformed

http/accept-ch/invalid · warning · score 3.9 · page

Browsers ignore a header they cannot parse, so the client hints the site asked for are never sent and content adapted to them falls back to the default. Only responses that send Accept-CH are checked.

Reported as

Accept-CH breaks its structured-field grammar, so browsers ignore it

Fix

Send Accept-CH as a list of hint names, as in Accept-CH: Sec-CH-UA-Platform.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.accept-ch.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.accept-ch": {
    "type": "object"
  }
}

http/alt-svc-h3

The server does not advertise HTTP/3 in Alt-Svc

http/alt-svc-h3/missing · warning · score 5.2 · page

Without the advertisement, browsers keep using HTTP/2 and never try the faster, loss-tolerant HTTP/3. Only HTTPS responses that did not already arrive over HTTP/3 are checked.

Reported as

Alt-Svc should advertise h3

Fix

Add h3 to the Alt-Svc header.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.alt-svc.value

Expects

{
  "type": "array",
  "contains": {
    "properties": {
      "protocol": {
        "const": "h3"
      }
    },
    "required": [
      "protocol"
    ]
  }
}

When

{
  "url.protocol": "https:",
  "http.version": {
    "not": {
      "const": "3.0"
    }
  },
  "http.parsed.alt-svc.errors": {
    "maxItems": 0
  }
}

http/alt-svc

The Alt-Svc header is malformed

http/alt-svc/invalid · warning · score 4.4 · page

Browsers ignore a header they cannot parse, so they never switch to the alternative service such as HTTP/3. Only responses that send Alt-Svc are checked.

Reported as

Alt-Svc breaks RFC 7838 §3, so clients never try the alternative

Fix

Send Alt-Svc as h3=“:443”; ma=86400.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.alt-svc.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.alt-svc": {
    "type": "object"
  }
}

http/cache-control

The Cache-Control header is malformed

http/cache-control/invalid · warning · score 5.0 · page

Caches ignore directives they cannot read, so the page may be cached for the wrong time or not at all. Only responses that send Cache-Control are checked.

Reported as

Cache-Control breaks RFC 9111 §5.2, and caches ignore what they cannot read

Fix

Write Cache-Control with registered directives only, as in public, max-age=3600.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cache-control.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.cache-control": {
    "type": "object"
  }
}

An HTML page sends no Cache-Control directive

http/cache-control/missing · info · score 2.7 · page

Without Cache-Control, browsers and CDNs guess how long to keep the page, so visitors may see stale content or reload it needlessly. Only 2xx HTML pages are checked.

Reported as

no Cache-Control directive on an HTML page

Fix

Add a Cache-Control header, e.g. no-cache to revalidate, or public with a max-age.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cache-control.value

Expects

{
  "type": "object",
  "minProperties": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "http.parsed.cache-control.errors": {
    "maxItems": 0
  }
}

http/cache-status

The Cache-Status header is malformed

http/cache-status/invalid · warning · score 3.3 · page

Tools that read cache diagnostics cannot parse it, so debugging a slow or stale page gets harder. Only responses that send Cache-Status are checked.

Reported as

Cache-Status breaks its structured-field grammar

Fix

Send Cache-Status as a list of caches with parameters, as in Cache-Status: ExampleCache; hit.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cache-status.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.cache-status": {
    "type": "object"
  }
}

http/coep

The Cross-Origin-Embedder-Policy header is malformed

http/coep/invalid · warning · score 3.8 · page

Browsers ignore a header they cannot parse, so the page cannot become cross-origin isolated. Only responses that send it are checked.

Reported as

Cross-Origin-Embedder-Policy breaks its structured-field grammar, so browsers ignore it

Fix

Send Cross-Origin-Embedder-Policy: credentialless.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cross-origin-embedder-policy.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.parsed.cross-origin-embedder-policy": {
    "type": "object"
  }
}

The page sends no Cross-Origin-Embedder-Policy

http/coep/missing · hint · score 0.8 · page

Without it, the page cannot become cross-origin isolated, which browsers require for features such as high-resolution timers and shared memory. Only HTML pages that answer 2xx are checked. This is an optional hardening.

Reported as

no Cross-Origin-Embedder-Policy

Fix

Send Cross-Origin-Embedder-Policy: credentialless once every embed loads under it.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • http.parsed.cross-origin-embedder-policy

Expects

{
  "type": "object"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  }
}

Cross-Origin-Embedder-Policy is not require-corp or credentialless

http/coep/weak · hint · score 0.8 · page

Other values do not isolate the page from cross-origin content, so features that need isolation stay unavailable. Only HTML pages that answer 2xx and send a valid header are checked.

Reported as

Cross-Origin-Embedder-Policy should be require-corp or credentialless

Fix

Send Cross-Origin-Embedder-Policy: credentialless once every embed loads under it.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • http.parsed.cross-origin-embedder-policy.value

Expects

{
  "enum": [
    "require-corp",
    "credentialless"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "http.parsed.cross-origin-embedder-policy.errors": {
    "maxItems": 0
  },
  "http.parsed.cross-origin-embedder-policy": {
    "type": "object"
  }
}

http/compression

A text response over 1 KB is sent uncompressed

http/compression/missing · warning · score 6.3 · page

Uncompressed HTML, CSS, JavaScript and JSON take several times more bytes to transfer, which slows pages on slow connections and costs visitors mobile data. Only 2xx text responses of at least 1 KB are checked.

Reported as

a text response over 1 KB is sent uncompressed

Fix

Compress text responses with br, zstd or gzip at the edge or in the server.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.content-encoding

Expects

{
  "type": [
    "string",
    "array"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^(text/|application/([\\w.-]+\\+)?(json|xml|javascript)\\b|image/svg\\+xml)"
  },
  "http.size.decoded": {
    "minimum": 1024
  }
}

A text response over 1 KB uses an unusual compression

http/compression/weak · warning · score 6.3 · page

Browsers support br, zstd and gzip; other encodings may be ignored or decoded slowly, so visitors may get the full uncompressed size or an error. Only 2xx text responses of at least 1 KB that declare a Content-Encoding are checked.

Reported as

a text response over 1 KB is encoded with something other than br, zstd or gzip

Fix

Compress text responses with br, zstd or gzip at the edge or in the server.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.content-encoding

Expects

{
  "type": "string",
  "pattern": "^\\s*(br|gzip|zstd)\\s*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^(text/|application/([\\w.-]+\\+)?(json|xml|javascript)\\b|image/svg\\+xml)"
  },
  "http.size.decoded": {
    "minimum": 1024
  },
  "http.headers.content-encoding": {
    "type": [
      "string",
      "array"
    ]
  }
}

http/content-length

A response’s Content-Length does not match its body

http/content-length/invalid · warning · score 5.4 · site

Wrong framing makes browsers truncate or reject the response and lets proxies disagree about where it ends, which attackers use for request smuggling. Covers a short body, Content-Length beside Transfer-Encoding or sent twice, and one on a 204.

Fix

Send one Content-Length equal to the body, none beside Transfer-Encoding and none on a 204.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers
  • resources

http/content-type-options

X-Content-Type-Options is not nosniff

http/content-type-options/invalid · warning · score 5.7 · page

Any other value does not switch off type guessing, so the protection is not active. Only responses that send the header are checked.

Reported as

X-Content-Type-Options should be nosniff

Fix

Send X-Content-Type-Options: nosniff.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.x-content-type-options

Expects

{
  "type": "string",
  "pattern": "^nosniff$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.headers.x-content-type-options": {
    "type": [
      "string",
      "array"
    ]
  }
}

The response lacks X-Content-Type-Options

http/content-type-options/missing · warning · score 5.7 · page

Without nosniff, a browser may guess a file’s type and run an uploaded file as a script, which opens the way to attacks on visitors.

Reported as

no X-Content-Type-Options

Fix

Send X-Content-Type-Options: nosniff.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.x-content-type-options

Expects

{
  "type": [
    "string",
    "array"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  }
}

http/content-type

The Content-Type header is malformed

http/content-type/invalid · warning · score 4.0 · page

Browsers may guess the type or charset of a response they cannot read the header for, which can break rendering or decoding. Only responses that send Content-Type are checked.

Reported as

Content-Type breaks RFC 9110 §8.3.1

Fix

Send Content-Type as type/subtype with name=value parameters, as in text/html; charset=utf-8.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.content-type.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.content-type": {
    "type": "object"
  }
}

http/coop

The Cross-Origin-Opener-Policy header is malformed

http/coop/invalid · warning · score 3.9 · page

Browsers ignore a header they cannot parse, so the page gets no isolation from windows of other sites. Only HTML documents that send it are checked.

Reported as

Cross-Origin-Opener-Policy breaks its structured-field grammar, so browsers ignore it

Fix

Send Cross-Origin-Opener-Policy: same-origin.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cross-origin-opener-policy.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.parsed.cross-origin-opener-policy": {
    "type": "object"
  }
}

The page sends no Cross-Origin-Opener-Policy

http/coop/missing · info · score 2.2 · page

Without it, windows opened from other sites keep a link to the page, which lets them probe it through side channels. Only HTML documents are checked.

Reported as

no Cross-Origin-Opener-Policy

Fix

Send Cross-Origin-Opener-Policy: same-origin.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cross-origin-opener-policy

Expects

{
  "type": "object"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true
}

Cross-Origin-Opener-Policy is too permissive

http/coop/weak · info · score 2.2 · page

Only same-origin and same-origin-allow-popups isolate the page. Other values, such as unsafe-none, leave the page linked to windows from other sites, so the isolation the header promises is absent. Only HTML documents with a valid header are checked.

Reported as

Cross-Origin-Opener-Policy should be same-origin or same-origin-allow-popups

Fix

Send Cross-Origin-Opener-Policy: same-origin.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cross-origin-opener-policy.value

Expects

{
  "enum": [
    "same-origin",
    "same-origin-allow-popups"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.parsed.cross-origin-opener-policy.errors": {
    "maxItems": 0
  },
  "http.parsed.cross-origin-opener-policy": {
    "type": "object"
  }
}

http/corp

Cross-Origin-Resource-Policy is not a valid value

http/corp/invalid · info · score 2.1 · page

Browsers ignore an unknown value, so the resource stays open to other sites. Only responses that send the header are checked.

Reported as

Cross-Origin-Resource-Policy should be same-origin, same-site or cross-origin

Fix

Send Cross-Origin-Resource-Policy: same-origin, or same-site if the resource is shared.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.cross-origin-resource-policy

Expects

{
  "enum": [
    "same-origin",
    "same-site",
    "cross-origin"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.headers.cross-origin-resource-policy": {
    "type": [
      "string",
      "array"
    ]
  }
}

The response lacks Cross-Origin-Resource-Policy

http/corp/missing · info · score 2.1 · page

Without it, any other site may embed the resource, which can leak its content through side channels or let others use it for free.

Reported as

no Cross-Origin-Resource-Policy

Fix

Send Cross-Origin-Resource-Policy: same-origin, or same-site if the resource is shared.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.cross-origin-resource-policy

Expects

{
  "type": [
    "string",
    "array"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  }
}

http/csp-base-uri

Content-Security-Policy lacks base-uri

http/csp-base-uri/missing · info · score 2.6 · page

An attacker who can inject a base tag can redirect every relative script and link to their own server. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy lacks base-uri, so an injected <base> can redirect relative scripts

Fix

Add base-uri to the Content-Security-Policy, e.g. the site origin.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "required": [
    "base-uri"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-frame-ancestors

Content-Security-Policy lacks frame-ancestors

http/csp-frame-ancestors/missing · info · score 2.9 · page

Any other site may then frame the page, which enables clickjacking, where visitors are tricked into clicking hidden controls. The directive works only in a header, not in a meta tag. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy lacks frame-ancestors, which only a header can carry

Fix

Add frame-ancestors to the Content-Security-Policy.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "required": [
    "frame-ancestors"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-object-src

Content-Security-Policy does not set object-src to none

http/csp-object-src/weak · warning · score 5.5 · page

Plugins and embedded objects can still load, which gives attackers an old route to run code on the page. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy should set object-src ‘none’

Fix

Set object-src ‘none’ in the Content-Security-Policy.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "if": {
    "required": [
      "object-src"
    ]
  },
  "then": {
    "properties": {
      "object-src": {
        "maxItems": 1,
        "items": {
          "pattern": "^(?i:'none')$"
        }
      }
    }
  },
  "else": {
    "required": [
      "default-src"
    ],
    "properties": {
      "default-src": {
        "maxItems": 1,
        "items": {
          "pattern": "^(?i:'none')$"
        }
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-script-src

Content-Security-Policy trusts scripts from any host

http/csp-script-src/insecure · warning · score 6.1 · page

A * or scheme-only source such as https: lets scripts load from any site, so an attacker only has to host a script anywhere to run it. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy loads scripts from any host through a * or scheme-only source

Fix

Replace * and scheme-only sources with specific origins.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "if": {
    "required": [
      "script-src"
    ]
  },
  "then": {
    "properties": {
      "script-src": {
        "not": {
          "contains": {
            "pattern": "^(?i:\\*|[a-z][a-z0-9+.-]*:)$"
          }
        }
      }
    }
  },
  "else": {
    "properties": {
      "default-src": {
        "not": {
          "contains": {
            "pattern": "^(?i:\\*|[a-z][a-z0-9+.-]*:)$"
          }
        }
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

Content-Security-Policy restricts no scripts

http/csp-script-src/missing · warning · score 6.3 · page

With neither script-src nor default-src, any script from any origin may run, so the policy gives no protection against injected scripts. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy sets neither script-src nor default-src, so any script loads

Fix

Set script-src to the origins that may run scripts, or default-src if every directive needs the same.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "anyOf": [
    {
      "required": [
        "script-src"
      ]
    },
    {
      "required": [
        "default-src"
      ]
    }
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-trusted-types

Content-Security-Policy does not require Trusted Types

http/csp-trusted-types/missing · info · score 2.4 · page

Without Trusted Types, a script can feed untrusted text into dangerous browser functions and open the page to DOM-based cross-site scripting. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy lacks require-trusted-types-for ‘script’

Fix

Add require-trusted-types-for ‘script’ to the Content-Security-Policy.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "required": [
    "require-trusted-types-for"
  ],
  "properties": {
    "require-trusted-types-for": {
      "contains": {
        "pattern": "^(?i:'script')$"
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-unsafe-eval

Content-Security-Policy allows eval()

http/csp-unsafe-eval/present · warning · score 6.0 · page

With ’unsafe-eval’, text turned into code at run time executes, which gives an attacker who controls such text a way to run scripts. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy allows eval() with ‘unsafe-eval’

Fix

Remove ‘unsafe-eval’ from script-src.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "if": {
    "required": [
      "script-src"
    ]
  },
  "then": {
    "properties": {
      "script-src": {
        "not": {
          "contains": {
            "pattern": "^(?i:'unsafe-eval')$"
          }
        }
      }
    }
  },
  "else": {
    "properties": {
      "default-src": {
        "not": {
          "contains": {
            "pattern": "^(?i:'unsafe-eval')$"
          }
        }
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-unsafe-inline

Content-Security-Policy allows inline scripts

http/csp-unsafe-inline/present · warning · score 6.2 · page

With ’unsafe-inline’, any script an attacker injects into the page runs, so the policy no longer stops cross-site scripting. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy allows inline scripts with ‘unsafe-inline’ and no nonce or hash

Fix

Replace ‘unsafe-inline’ with nonces or hashes.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "if": {
    "required": [
      "script-src"
    ]
  },
  "then": {
    "properties": {
      "script-src": {
        "not": {
          "contains": {
            "pattern": "^(?i:'unsafe-inline')$"
          }
        }
      }
    }
  },
  "else": {
    "properties": {
      "default-src": {
        "not": {
          "contains": {
            "pattern": "^(?i:'unsafe-inline')$"
          }
        }
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp-upgrade-insecure

Content-Security-Policy lacks upgrade-insecure-requests

http/csp-upgrade-insecure/missing · warning · score 5.3 · page

Without the directive, a leftover http:// link or resource on an HTTPS page loads insecurely, and attackers on the network can read or alter it. Only HTTPS documents that send a policy are checked.

Reported as

Content-Security-Policy lacks upgrade-insecure-requests

Fix

Add upgrade-insecure-requests to the Content-Security-Policy.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "required": [
    "upgrade-insecure-requests"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "url.protocol": "https:",
  "http.csp.directives": {
    "type": "object"
  }
}

http/csp

The Content-Security-Policy header is malformed

http/csp/invalid · warning · score 5.9 · page

Browsers drop the directives they cannot read, so part of the policy, or all of it, may not be enforced. Only HTML documents that send a policy are checked.

Reported as

Content-Security-Policy breaks CSP 3, and browsers drop what they cannot read

Fix

Spell every directive as CSP 3 names it and quote keywords, as in script-src ‘self’.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.content-security-policy.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.parsed.content-security-policy": {
    "type": "object"
  }
}

The page has no enforced Content-Security-Policy

http/csp/missing · warning · score 6.4 · page

Without a policy, an injected script runs with the full rights of the page, so a single cross-site scripting hole can steal sessions or data. Only HTML documents are checked, and a policy in a meta tag counts.

Reported as

no enforced Content-Security-Policy, in a header or a <meta>

Fix

Send a Content-Security-Policy header that allows only the origins and directives the page needs.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives

Expects

{
  "type": "object"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true
}

http/date

The Date header is not in the standard date format

http/date/invalid · warning · score 4.2 · page

Caches and clients that cannot parse Date fall back to guessing the response’s age, which breaks freshness calculations. HTTP requires the fixed GMT form, such as Sun, 06 Nov 1994 08:49:37 GMT. Only responses that send Date are checked.

Reported as

Date should be an IMF-fixdate

Fix

Send Date in IMF-fixdate form, as Sun, 06 Nov 1994 08:49:37 GMT.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.date

Expects

{
  "type": "string",
  "pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} GMT$"
}

When

{
  "http.headers.date": {
    "type": [
      "string",
      "array"
    ]
  }
}

The server’s clock differs from ours

http/date/mismatch · warning · score 3.4–6.8 · site

A clock that is minutes off can break certificate validity, signed tokens, cache freshness and log correlation; an hour or more is an error. Skipped when every host is off alike, which points at the checking machine instead.

Fix

Synchronise the server clock with NTP (chrony or systemd-timesyncd).

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.date-skew

The response has no Date header

http/date/missing · warning · score 4.2 · page

Without Date, caches cannot work out how old a response is, so they may serve stale content or cache it badly. Clients that compare clocks lose a reference too.

Reported as

no Date header

Fix

Send Date in IMF-fixdate form, as Sun, 06 Nov 1994 08:49:37 GMT.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.date

Expects

{
  "type": [
    "string",
    "array"
  ]
}

http/deprecation

The Deprecation header is not an @ and Unix seconds

http/deprecation/invalid · warning · score 3.6 · page

Clients that cannot read the value will not warn that the resource is deprecated. Only responses that send Deprecation are checked.

Reported as

Deprecation should be @ and Unix seconds

Fix

Send Deprecation: @1704067200 with the Unix timestamp of the removal.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.deprecation

Expects

{
  "type": "string",
  "pattern": "^@-?\\d+$"
}

When

{
  "http.headers.deprecation": {
    "type": "string"
  }
}

http/digest

The response has neither Content-Digest nor Repr-Digest

http/digest/missing · hint · score 0.6 · page

Without a digest, a client or intermediary cannot verify that the body arrived intact and unaltered. This is an optional hardening for HTML pages that answer 2xx.

Reported as

no Content-Digest or Repr-Digest lets a client check the body

Fix

Send Repr-Digest: sha-256=:<base64 digest>: with each response.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • http.headers

Expects

{
  "anyOf": [
    {
      "required": [
        "content-digest"
      ]
    },
    {
      "required": [
        "repr-digest"
      ]
    }
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  }
}

http/early-hints-preload

A preload from the 103 Early Hints is missing from the final response

http/early-hints-preload/mismatch · info · score 1.8 · page

The browser starts fetching what the early hint announced, but the final response no longer asks for it, so the early fetch is wasted or the resource loads late. Only responses that sent a 103 are checked.

Fix

Remove the preload from the 103 Early Hints, or add it to the final Link header.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.early-hints
  • http.parsed.link

http/frame-options

Other sites can embed the page in a frame

http/frame-options/missing · info · score 3.0 · page

An attacker’s page can load this one in a hidden frame and trick visitors into clicking its buttons (clickjacking). A frame-ancestors directive in the Content-Security-Policy, or X-Frame-Options set to DENY or SAMEORIGIN, forbids it.

Fix

Send a Content-Security-Policy frame-ancestors directive, or X-Frame-Options: DENY.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.csp.directives
  • http.headers.x-frame-options

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true
}

http/header

The page sends headers that no current browser reads

http/header/deprecated · info · score 1.2 · page

X-XSS-Protection, Expect-CT, Public-Key-Pins, Feature-Policy, P3P and Report-To are dead weight on every response, and some give a false sense of protection. Report-To is left alone while NEL still reads it.

Fix

Remove each deprecated header, and send Reporting-Endpoints in place of Report-To unless NEL still reads it.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  }
}

http/host

Pages of one host differ in certificate, TLS version or server

http/host/inconsistent · info · score 2.8 · site

Pages of one host answering from differently configured servers usually mean a misconfigured load balancer or a half-finished migration, so some visitors get an older TLS version or a stale certificate. The server address is not compared behind a CDN that names itself in Server.

Fix

Make every page of the host serve the same certificate, TLS protocol and Server header.

Runs by default, in the recommended ruleset.

For rule authors

Reads

  • tls.cert.fingerprint256
  • tls.protocol
  • http.remote.address
  • http.headers.server

http/hsts-subdomains

Strict-Transport-Security omits includeSubDomains

http/hsts-subdomains/missing · info · score 2.5 · page

Without it, subdomains are not forced onto HTTPS, so an attacker can use an insecure subdomain to capture cookies of the main site. Only HTTPS responses with a valid header are checked.

Reported as

Strict-Transport-Security should carry includeSubDomains

Fix

Add includeSubDomains to the Strict-Transport-Security header.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.strict-transport-security.value

Expects

{
  "required": [
    "includesubdomains"
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "url.protocol": "https:",
  "http.parsed.strict-transport-security.value": {
    "type": "object"
  }
}

http/hsts

The Strict-Transport-Security header is malformed

http/hsts/invalid · warning · score 5.6 · page

Browsers ignore a header they cannot parse, so the HTTPS-only protection never starts. Only responses that send it are checked.

Reported as

Strict-Transport-Security breaks RFC 6797 §6.1, so browsers ignore it

Fix

Send Strict-Transport-Security once, as max-age=63072000; includeSubDomains.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.strict-transport-security.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.parsed.strict-transport-security": {
    "type": "object"
  }
}

The site does not send Strict-Transport-Security

http/hsts/missing · warning · score 5.8 · page

Without HSTS, a visitor’s first request, or one on a hostile network, can be downgraded to plain HTTP and intercepted. Only HTTPS responses with a status from 200 to 499, except 429, are checked.

Reported as

no Strict-Transport-Security

Fix

Send Strict-Transport-Security: max-age=63072000; includeSubDomains.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.strict-transport-security

Expects

{
  "type": "object"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "url.protocol": "https:"
}

Strict-Transport-Security has a short max-age

http/hsts/weak · warning · score 5.8 · page

A short max-age lets the browser forget the HTTPS-only rule soon, so the protection lapses between visits and a downgrade attack works again. Only HTTPS responses with a valid header are checked.

Reported as

Strict-Transport-Security should carry max-age of 1000000 or more

Fix

Send Strict-Transport-Security: max-age=63072000; includeSubDomains.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.strict-transport-security.value.max-age

Expects

{
  "type": "integer",
  "minimum": 1000000
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "url.protocol": "https:",
  "http.parsed.strict-transport-security.errors": {
    "maxItems": 0
  },
  "http.parsed.strict-transport-security": {
    "type": "object"
  }
}

The Link header is malformed

http/link/invalid · warning · score 4.6 · page

Clients drop the links they cannot parse, so preloads and other hints in it never take effect. Only responses that send Link are checked.

Reported as

Link breaks RFC 8288 §3, so clients drop the links they cannot read

Fix

Write each Link entry as <https://example.com/a>; rel=preload, separated by commas.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.link.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.link": {
    "type": "object"
  }
}

http/no-store

Cache-Control: no-store keeps the page out of the back/forward cache

http/no-store/present · info · score 2.4 · page

Browsers will not keep a no-store page for instant back and forward navigation, so those moves reload the page and feel slower. Only HTML pages that send Cache-Control are checked.

Reported as

Cache-Control no-store keeps the page out of the back/forward cache

Fix

Remove no-store from Cache-Control, or replace it with no-cache.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.cache-control.value

Expects

{
  "not": {
    "required": [
      "no-store"
    ]
  }
}

When

{
  "http.content-type": {
    "pattern": "^text/html"
  },
  "http.parsed.cache-control.value": {
    "type": "object"
  }
}

A URL with a query has no No-Vary-Search

http/no-vary-search/missing · hint · score 0.4 · page

Without it, caches treat every query-string variant as a different page, so tracking parameters cause needless cache misses and reloads. Only HTML pages that answer 2xx and have a query are checked.

Reported as

a URL with a query has no No-Vary-Search to say which parameters change the page

Fix

Send No-Vary-Search: params=(“utm_source” “utm_medium”) naming the parameters that do not change the page.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • http.headers.no-vary-search

Expects

{
  "type": "string",
  "minLength": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "url.search": {
    "minLength": 1
  }
}

http/permissions-policy

The Permissions-Policy header is malformed

http/permissions-policy/invalid · warning · score 3.7 · page

Browsers ignore a header they cannot parse, so the features it was meant to restrict stay available to the page and its frames. Only HTML documents that send it are checked.

Reported as

Permissions-Policy breaks its structured-field grammar, so browsers ignore it

Fix

Write Permissions-Policy as a dictionary, as in camera=(), geolocation=(self).

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.permissions-policy.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.parsed.permissions-policy": {
    "type": "object"
  }
}

The page sends no Permissions-Policy naming a feature

http/permissions-policy/missing · info · score 1.8 · page

Without a policy, the page and every embedded frame may use powerful browser features such as camera, microphone or location unless the browser blocks them. Only HTML documents are checked.

Reported as

no Permissions-Policy header naming a feature

Fix

Send a Permissions-Policy header listing the features the page uses.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.permissions-policy.value

Expects

{
  "type": "object",
  "minProperties": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.document": true,
  "http.parsed.permissions-policy.errors": {
    "maxItems": 0
  }
}

http/priority

The Priority header is malformed

http/priority/invalid · warning · score 3.8 · page

Clients ignore a header they cannot parse, so the hint about how urgent the response is has no effect. Only responses that send Priority are checked.

Reported as

Priority breaks its structured-field grammar, so clients ignore it

Fix

Send Priority as a dictionary, as in Priority: u=1, i.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.priority.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.priority": {
    "type": "object"
  }
}

http/referrer-policy

Referrer-Policy leaks full URLs to other sites

http/referrer-policy/insecure · warning · score 5.1 · page

The unsafe-url and no-referrer-when-downgrade values send the full address, query string included, to other sites, which can expose private details. Only responses with a valid header are checked.

Reported as

Referrer-Policy should not leak full URLs

Fix

Send Referrer-Policy: strict-origin-when-cross-origin, or no-referrer.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.referrer-policy.value

Expects

{
  "type": "string",
  "not": {
    "enum": [
      "unsafe-url",
      "no-referrer-when-downgrade"
    ]
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.parsed.referrer-policy.errors": {
    "maxItems": 0
  },
  "http.parsed.referrer-policy": {
    "type": "object"
  }
}

The Referrer-Policy header holds an unknown value

http/referrer-policy/invalid · warning · score 4.0 · page

Browsers ignore values they do not know, and may fall back to a policy that leaks more of the URL than intended. Only responses that send it are checked.

Reported as

Referrer-Policy breaks the Referrer Policy tokens

Fix

Send Referrer-Policy: strict-origin-when-cross-origin.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.referrer-policy.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.parsed.referrer-policy": {
    "type": "object"
  }
}

The response sends no Referrer-Policy

http/referrer-policy/missing · warning · score 5.1 · page

Without a policy, browsers decide what to send, and full page URLs, which may hold private details, can leak to other sites when visitors follow links.

Reported as

no Referrer-Policy

Fix

Send Referrer-Policy: strict-origin-when-cross-origin, or no-referrer.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.referrer-policy

Expects

{
  "type": "object"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  }
}

http/reporting-endpoints

The Reporting-Endpoints header is malformed

http/reporting-endpoints/invalid · warning · score 3.4 · page

Browsers ignore a header they cannot parse, so no violation or crash reports are ever sent. Only responses that send it are checked.

Reported as

Reporting-Endpoints breaks its structured-field grammar, so browsers ignore it

Fix

Send Reporting-Endpoints: default=“/reports”.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.reporting-endpoints.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.parsed.reporting-endpoints": {
    "type": "object"
  }
}

The response names no Reporting-Endpoints

http/reporting-endpoints/missing · info · score 1.5 · page

Without an endpoint, browsers cannot report policy violations, crashes or deprecations, so the owner never learns of problems that visitors hit.

Reported as

no Reporting-Endpoints header naming an endpoint

Fix 1

Send a Reporting-Endpoints header naming your reporting endpoints.

Fix 2

Report Relay https://dbuho.me/project/report-relay/ collects these reports and sends them to your Grafana: open source, self-hosted, free.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.reporting-endpoints.value

Expects

{
  "type": "object",
  "minProperties": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  },
  "http.parsed.reporting-endpoints.errors": {
    "maxItems": 0
  }
}

http/retry-after

The Retry-After header is malformed

http/retry-after/invalid · warning · score 4.1 · page

Clients cannot tell when to retry, so they retry at once or give up. Only responses that send Retry-After are checked.

Reported as

Retry-After breaks RFC 9110 §10.2.3, so clients cannot tell when to retry

Fix

Send Retry-After as a number of seconds, as in Retry-After: 120, or an IMF-fixdate.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.retry-after.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.retry-after": {
    "type": "object"
  }
}

A 503 response does not say when to retry

http/retry-after/missing · warning · score 4.8 · page

Without Retry-After, clients and crawlers retry at once or give up, which adds load to a server that is already struggling or drops the site from results. Only 503 responses are checked.

Reported as

a 503 should say when to retry with Retry-After

Fix

Send Retry-After with a delay, or an HTTP-date for when to try again.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.retry-after.value

Expects

{
  "type": "object"
}

When

{
  "http.status": 503,
  "http.parsed.retry-after.errors": {
    "maxItems": 0
  }
}

Retry-After asks clients back too soon

http/retry-after/weak · info · score 1.2–3.0 · page

A delay under 10 seconds brings clients straight back to a server that is already shedding load, which keeps it overloaded. Only 429 and 503 responses with a readable Retry-After are checked.

Reported as

Retry-After asks clients back too soon, which brings the load straight back to a server that is shedding it

Fix

Send Retry-After: 120, or as long as the server needs to recover.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.retry-after.value.seconds

Expects

{
  "minimum": 10
}

When

{
  "http.status": {
    "enum": [
      429,
      503
    ]
  },
  "http.parsed.retry-after.value": {
    "type": "object"
  }
}

http/server-timing

A development or staging site sends no Server-Timing

http/server-timing/missing · hint · score 0.2 · page

Without it, developers and browser tools cannot see where the server spent its time. Only sites declared as development or staging are checked.

Reported as

no Server-Timing header shows where the server spent its time

Fix

Send Server-Timing: app;dur=<milliseconds> with durations that name no internals.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • http.headers.server-timing

Expects

{
  "type": "string",
  "minLength": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "site.role": {
    "enum": [
      "development",
      "staging"
    ]
  }
}

http/server

The server reveals the software behind it

http/server/disclosing · warning · score 5.0 · site

Headers such as Server and X-Powered-By, and the generator meta tag, name the product and often its version, which tells attackers which known flaws to try. Names a CDN or host sets and the owner cannot remove are not reported, and a name without a version is only a hint.

Fix

Remove the version from the Server header and drop X-Powered-By and debug headers at the server or proxy.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers
  • html.meta.generator
  • resources

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  }
}

http/sunset

The Sunset header is not an HTTP date

http/sunset/invalid · warning · score 3.7 · page

Clients that cannot read the date will not warn that the resource is going away. Only responses that send Sunset are checked.

Reported as

Sunset should be an HTTP-date

Fix

Send Sunset as an HTTP-date, e.g. Sun, 01 Jan 2027 00:00:00 GMT.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.sunset

Expects

{
  "type": "string",
  "pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), \\d{2} (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} \\d{2}:\\d{2}:\\d{2} GMT$"
}

When

{
  "http.headers.sunset": {
    "type": "string"
  }
}

http/tdm-reservation

The tdm-reservation header is not 0 or 1

http/tdm-reservation/invalid · warning · score 3.5 · page

Text-and-data-mining crawlers cannot read the site’s reservation, so they may mine content the owner meant to reserve. Only responses that send the header are checked.

Reported as

tdm-reservation should be 0 or 1

Fix

Send tdm-reservation: 1 to reserve text and data mining rights, 0 to waive them.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers.tdm-reservation

Expects

{
  "type": "string",
  "pattern": "^\\s*[01]\\s*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.headers.tdm-reservation": {
    "type": "string"
  }
}

http/use-as-dictionary-match

Use-As-Dictionary has no match pattern

http/use-as-dictionary-match/invalid · warning · score 3.5 · page

A dictionary without a match pattern is never used for later requests, so the compression it was meant to improve does not happen. Only responses that send Use-As-Dictionary are checked.

Reported as

Use-As-Dictionary needs a match=“<URL pattern>” member

Fix

Send Use-As-Dictionary: match=“/assets/app-*.js”.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.use-as-dictionary.value

Expects

{
  "required": [
    "match"
  ],
  "properties": {
    "match": {
      "type": "string"
    }
  }
}

When

{
  "http.parsed.use-as-dictionary.value": {
    "type": "object"
  }
}

http/use-as-dictionary

The Use-As-Dictionary header is malformed

http/use-as-dictionary/invalid · warning · score 3.4 · page

Clients ignore a header they cannot parse, so the dictionary is never used and the compression gain is lost. Only responses that send Use-As-Dictionary are checked.

Reported as

Use-As-Dictionary breaks its structured-field grammar, so clients ignore it

Fix

Send Use-As-Dictionary: match=“/assets/app-*.js”.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.use-as-dictionary.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.use-as-dictionary": {
    "type": "object"
  }
}

http/validator

The response has neither ETag nor Last-Modified

http/validator/missing · info · score 2.6 · page

Without a validator, a browser cannot ask whether its stored copy is still current, so it downloads the whole response again once the copy expires. Only 2xx responses are checked.

Reported as

no ETag or Last-Modified to revalidate against

Fix

Add an ETag or Last-Modified header to the response.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers

Expects

{
  "anyOf": [
    {
      "required": [
        "etag"
      ]
    },
    {
      "required": [
        "last-modified"
      ]
    }
  ]
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

http/vary-accept-encoding

A compressed response lacks Vary: Accept-Encoding

http/vary-accept-encoding/missing · warning · score 5.4 · page

Without it, a shared cache or CDN may store the compressed copy and hand it to a client that cannot decompress it, or the other way round. Only responses that declare a Content-Encoding are checked.

Reported as

a compressed response should carry Vary: Accept-Encoding

Fix

Add Vary: Accept-Encoding to the response.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.vary.value

Expects

{
  "type": "array",
  "contains": {
    "enum": [
      "accept-encoding",
      "*"
    ]
  }
}

When

{
  "http.headers.content-encoding": {
    "type": "string"
  },
  "http.parsed.vary.errors": {
    "maxItems": 0
  }
}

http/vary-star

Vary: * makes the response uncacheable

http/vary-star/present · warning · score 5.6 · page

A Vary of * tells caches that every request differs, so browsers and CDNs cannot reuse the response and every visit hits the server. Only responses that send a Vary header are checked.

Reported as

Vary: * makes the response uncacheable

Fix

Replace Vary: * with the specific header names the response varies by.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.vary.value

Expects

{
  "not": {
    "contains": {
      "const": "*"
    }
  }
}

When

{
  "http.parsed.vary.value": {
    "type": "array"
  }
}

http/vary

The Vary header is malformed

http/vary/invalid · warning · score 4.2 · page

Caches that cannot read Vary may serve the wrong variant of a page, such as the wrong language or compression, to a visitor. Only responses that send Vary are checked.

Reported as

Vary breaks RFC 9110 §12.5.5

Fix

List the request header names the response varies by, as in Vary: Accept-Encoding.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.parsed.vary.errors

Expects

{
  "maxItems": 0
}

When

{
  "http.parsed.vary": {
    "type": "object"
  }
}

http/version

The server answers over HTTP/1.1 instead of HTTP/2 or HTTP/3

http/version/outdated · warning · score 5.8 · page

HTTP/1.1 loads resources less efficiently, so pages take longer to appear, most of all on slow or lossy connections. Only responses that report a protocol version are checked.

Reported as

the server should speak HTTP/2 or HTTP/3

Fix

Enable HTTP/2 or HTTP/3 on the server.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.version

Expects

{
  "type": "string",
  "pattern": "^[23]"
}

When

{
  "http.version": {
    "type": "string"
  }
}

http/x-xss-protection

X-XSS-Protection is switched on

http/x-xss-protection/insecure · warning · score 4.5 · page

The old browser filter this header enables can itself introduce cross-site scripting holes, so the header should be absent or 0. Only responses that send it are checked.

Reported as

X-XSS-Protection should be absent or 0

Fix

Remove X-XSS-Protection.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.headers

Expects

{
  "properties": {
    "x-xss-protection": {
      "pattern": "^\\s*0\\s*$"
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 499,
    "not": {
      "const": 429
    }
  }
}

i18n

Rules: 4

i18n/content-language

Content-Language and lang name different languages

i18n/content-language/mismatch · info · score 2.4 · page

The header and the html lang attribute disagree about the page’s language, so browsers, translation tools and search engines may pick the wrong one. Pages lacking either are skipped.

Fix

Make the Content-Language header name the language the html lang attribute declares, or drop the header.

Off by default; a group that runs i18n turns it on.

References

For rule authors

Reads

  • html.lang
  • http.headers.content-language

i18n/hreflang-return

A language version does not link back

i18n/hreflang-return/missing · warning · score 5.2 · site

Hreflang works only when versions name each other, so without the return link search engines may ignore the annotation and visitors land on the wrong language. Only crawled pages that answer 2xx are judged.

Fix

List every language version, itself included, in the hreflang links of each version.

Off by default; a group that runs i18n turns it on.

References

For rule authors

Reads

  • html.hreflang
  • site.redirects

i18n/hreflang

An hreflang link points at a page that fails or redirects

i18n/hreflang/unreachable · warning · score 5.6 · site

Search engines ignore hreflang targets that answer with an error or a redirect, so that language version is never offered to its readers. Targets answering outside 2xx, or redirecting, are reported.

Fix

Point each hreflang link at the final URL of a page that answers 200.

Off by default; a group that runs i18n turns it on.

References

For rule authors

Reads

  • html.hreflang
  • http.status
  • site.redirects

i18n/metadata-language

The title or description is in another language than the page declares

i18n/metadata-language/mismatch · info · score 2.8 · page

Screen readers pronounce text by the lang attribute and search engines use it to pick the audience, so a mismatch garbles speech and can show the page to the wrong readers. Judged only when language detection is confident.

Fix

Translate the title and meta description into the language lang declares, or correct lang.

Off by default; a group that runs i18n turns it on.

References

For rule authors

Reads

  • html.detected
  • html.lang

icons

Rules: 6

icons/apple-touch

The Apple touch icon is missing or unfit

icons/apple-touch/missing · warning · score 3.8 · site

iPhone and iPad visitors who add the site to their home screen get a screenshot or blank tile instead of the logo.

Reported as

the Apple touch icon is missing or unfit: the value found

Fix

Serve an opaque 180×180 PNG at /apple-touch-icon.png, or link one with <link rel=apple-touch-icon>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.icons.apple-touch

Expects

{
  "maxItems": 0
}

icons/declared-size

Icons are not the size or type they declare

icons/declared-size/mismatch · warning · score 4.2 · site

Browsers pick an icon by its declared size and type, so a wrong declaration makes them choose a poor fit or reject the file.

Reported as

icons are not the size or type they declare: the value found

Fix

Make each icon’s sizes and type match the file, or correct the declaration.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.icons.declared-size

Expects

{
  "maxItems": 0
}

icons/favicon

The favicon is missing or broken

icons/favicon/missing · warning · score 4.6 · site

Browser tabs, bookmarks and search results show a blank or default icon instead of the site’s, which makes it harder to recognise.

Reported as

the favicon is missing or broken: the value found

Fix

Link an icon with <link rel=icon>, or serve /favicon.ico as an ICO holding 16 and 32 px images.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.icons.favicon

Expects

{
  "maxItems": 0
}

icons/mask-icon

The Safari pinned tab icon is unusable

icons/mask-icon/invalid · off · score 3.3 · site

Safari draws a pinned tab from this icon, so a broken one leaves a blank or wrongly coloured tab. Safari 12 and later use the SVG favicon instead, so this matters little.

Reported as

the Safari pinned tab icon is unusable; since Safari 12 an SVG rel=icon serves instead: the value found

Fix

Link a single-colour SVG with a color attribute, or drop rel=mask-icon.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.icons.mask-icon

Expects

{
  "maxItems": 0
}

icons/ms-tile

A Windows tile image or browserconfig.xml is broken

icons/ms-tile/unreachable · off · score 3.3 · site

A Windows start-menu tile for the site shows a blank or default image. It only matters for old Windows pinning, so the impact is small.

Reported as

a Windows tile image or browserconfig.xml is broken: the value found

Fix

Serve every image msapplication-TileImage and browserconfig.xml name, or remove them.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.icons.ms-tile

Expects

{
  "maxItems": 0
}

icons/svg

There is no usable SVG favicon

icons/svg/invalid · off · score 3.3 · site

An SVG icon stays sharp at any size and can follow dark mode; without one browsers fall back to a fixed-size bitmap.

Reported as

no usable SVG favicon: the value found

Fix

Link a well-formed SVG with <link rel=icon type=“image/svg+xml”>.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.icons.svg

Expects

{
  "maxItems": 0
}

images

Rules: 11

images/compression

An image can be re-encoded much smaller in its own format

images/compression/weak · warning · score 4.8 · site

Unoptimised images make pages heavier than they need to be, so visitors on slow connections wait longer. Only images where a re-encode saves a meaningful share are flagged.

Fix

Re-encode the image with a modern tool at a lower quality or smaller dimensions.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources.images

images/dimensions

Images lack width and height attributes

images/dimensions/missing · warning · score 5.4 · page

Without them the browser cannot reserve space, so the page jumps as each image loads and visitors lose their place while reading. It also hurts the Cumulative Layout Shift score search engines read.

Fix

Add width and height attributes to each <img>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.images

images/font-display

Web fonts hide text while they load

images/font-display/missing · warning · score 5.0 · site

An @font-face without font-display: swap, fallback or optional leaves text invisible until the font arrives, so visitors on slow connections stare at a blank page.

Fix

Add font-display: swap (or fallback or optional) to each @font-face.

Off by default; a group that runs images:assets turns it on.

References

For rule authors

Reads

  • resources.text

images/font-format

A web font is served in a format other than WOFF2

images/font-format/outdated · warning · score 4.4 · site

WOFF2 compresses fonts best and every current browser supports it, so other formats make visitors download more for the same text.

Fix

Convert the font to WOFF2.

Off by default; a group that runs images:assets turns it on.

References

For rule authors

Reads

  • resources.fonts

images/format

A JPEG, PNG or GIF image would be smaller as WebP or AVIF

images/format/outdated · warning · score 5.2 · site

Old image formats cost visitors extra bytes on every page view, which slows loading on mobile connections. Only images where a re-encode saves a meaningful share are flagged.

Fix

Convert the image to WebP or AVIF.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources.images

images/lazy-loading

Images below the fold are not lazy-loaded

images/lazy-loading/missing · warning · score 4.8 · page

Images the visitor has not scrolled to still download up front and compete with the content they came to read. Only pages rendered in a browser are judged.

Fix

Add loading=lazy to off-screen images.

Off by default; a group that runs images:live turns it on.

References

For rule authors

Reads

  • imageLayout

Images in the first viewport are lazy-loaded

images/lazy-loading/slow · warning · score 5.8 · page

A lazy image visible on arrival starts loading late, which delays the largest content and makes the page feel slow. Only pages rendered in a browser are judged.

Fix

Remove loading=lazy from images in the first viewport.

Off by default; a group that runs images:live turns it on.

References

For rule authors

Reads

  • imageLayout

images/minification

A stylesheet or script is served without minification

images/minification/missing · warning · score 4.2 · site

Whitespace and long names in CSS and JavaScript add bytes that every visitor downloads before the page can render. Only files where minifying saves a meaningful share are flagged.

Fix

Minify the stylesheet or script in the build.

Off by default; a group that runs images:assets turns it on.

References

For rule authors

Reads

  • resources.text

images/rendered-size

Images ship far more pixels than the page renders

images/rendered-size/large · warning · score 4.4 · page

An image much wider than its box wastes bandwidth and slows loading, especially on phones. Vector images are exempt, and only pages rendered in a browser are judged.

Fix

Serve an image whose natural width matches what the layout renders.

Off by default; a group that runs images:live turns it on.

References

For rule authors

Reads

  • imageLayout
  • resources.images

images/srcset

Images without srcset are far wider than they display

images/srcset/large · warning · score 4.6 · page

A single large file is sent to every screen, so phones download pixels they never show. Only images with a numeric width attribute and no srcset are compared.

Fix

Serve a srcset with a width matching what the page renders.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.images
  • resources.images

images/weight

An image is heavier than the weight limit

images/weight/large · warning · score 5.6 · site

A very large image file slows the page for every visitor and eats mobile data. The limit is a setting, 200 kB by default.

Fix

Resize or re-compress the image so the file is below the weight limit.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources.images

insight

Rules: 2

insight/number

A few pages are far heavier or slower than the rest of the site

insight/number/outlier · info · score 3.0 · site

Pages whose size, request count, load time or CO2 estimate sits far above the median are slow for visitors and costly on mobile data. By default at least 20 pages are needed to compare.

Fix

Find what makes the listed pages cost more than the rest, an uncached query or an oversized image, and bring them near the median.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • co2.grams
  • http.size.body
  • resources.length
  • http.timing.total

insight/value

A few pages are served differently from the rest of the site

insight/value/inconsistent · info · score 2.0 · site

When nearly every page shares an HTTP version, content encoding or cache policy and a few differ, the odd ones are usually a misconfigured route or an overlooked rule, and visitors get them slower or uncached. By default at least 20 pages are needed, with one value on 80% of them.

Fix

Serve the listed pages the way the rest of the site serves them, or keep the difference only where it is deliberate.

Runs by default, in the recommended ruleset.

For rule authors

Reads

  • http.version
  • http.headers.content-encoding
  • http.headers.cache-control

keyboard

Rules: 5

keyboard/focus-outline

Focused elements show no visible focus indicator

keyboard/focus-outline/missing · warning · score 6.0 · page

Keyboard users cannot tell which control is active when focusing it changes nothing on screen. Only sampled pages, walked with the Tab key in a browser, are judged.

Fix

Give :focus-visible an outline or box-shadow; never remove the outline without a replacement.

Off by default; a group that runs keyboard turns it on.

References

For rule authors

Reads

  • keyboard.stops

keyboard/focus

A focused element is hidden under sticky or fixed content

keyboard/focus/inaccessible · warning · score 5.8 · page

Keyboard users tab to a control they cannot see because a header or banner covers it. Only sampled pages, walked with the Tab key in a browser, are judged.

Fix

Set scroll-padding-top to the sticky header’s height, or keep banners from covering the content.

Off by default; a group that runs keyboard turns it on.

References

For rule authors

Reads

  • keyboard.stops

keyboard/forced-colors-focus

Focus indicators vanish under forced colours

keyboard/forced-colors-focus/missing · warning · score 5.4 · page

A focus ring drawn only with box-shadow disappears in Windows high-contrast mode, so keyboard users lose track of focus. Only sampled pages are judged, in a browser.

Fix

Add outline: 2px solid transparent beside a box-shadow focus ring; forced colours drop the shadow and paint the outline.

Off by default; a group that runs keyboard turns it on.

References

For rule authors

Reads

  • keyboard.stops

The first Tab stop is not a skip link to the main content

keyboard/skip-link/missing · info · score 2.8 · page

Keyboard and screen-reader users must tab through the whole navigation on every page before reaching the content. Only sampled pages are judged, in a browser.

Fix

Make the first focusable element <a href="#main">Skip to content</a>, pointing at <main id="main">.

Off by default; a group that runs keyboard turns it on.

References

For rule authors

Reads

  • keyboard.first

keyboard/tab-order

Keyboard focus is trapped or skips interactive elements

keyboard/tab-order/inaccessible · warning · score 6.4 · page

Visitors who cannot use a mouse get stuck or cannot reach a control at all. Only sampled pages, walked with the Tab key in a browser, are judged.

Fix

Let Tab reach every control: drop negative tabindex from interactive elements, and release focus from any widget that holds it.

Off by default; a group that runs keyboard turns it on.

References

For rule authors

Reads

  • keyboard.trap
  • keyboard.unreached

lighthouse

Rules: 8

Low Lighthouse accessibility score

lighthouse/accessibility · warning · score 3.3–6.2 · page

Reported as

Lighthouse accessibility score is the value found, under 0.9

Fix

Fix the failing audits Lighthouse lists under accessibility, largest savings first.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.scores.accessibility

Expects

{
  "type": "number",
  "minimum": 0.9
}

Low Lighthouse best-practices score

lighthouse/best-practices · warning · score 3.3–5.6 · page

Reported as

Lighthouse best-practices score is the value found, under 0.9

Fix

Fix the failing audits Lighthouse lists under best-practices, largest savings first.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.scores.best-practices

Expects

{
  "type": "number",
  "minimum": 0.9
}

CLS over 0.1 in the lab

lighthouse/cls · warning · score 3.4–6.0 · page

Reported as

CLS is the value found in the lab, over 0.1

Fix

Reduce CLS below 0.1; the Lighthouse report names the elements and resources behind it.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.vitals.cls

Expects

{
  "type": "number",
  "maximum": 0.1
}

FCP over 1800 ms in the lab

lighthouse/fcp · warning · score 3.4–6.0 · page

Reported as

FCP is the value found ms in the lab, over 1800 ms

Fix

Reduce FCP below 1800 ms; the Lighthouse report names the elements and resources behind it.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.vitals.fcp

Expects

{
  "type": "number",
  "maximum": 1800
}

LCP over 2500 ms in the lab

lighthouse/lcp · warning · score 3.4–6.0 · page

Reported as

LCP is the value found ms in the lab, over 2500 ms

Fix

Reduce LCP below 2500 ms; the Lighthouse report names the elements and resources behind it.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.vitals.lcp

Expects

{
  "type": "number",
  "maximum": 2500
}

Low Lighthouse performance score

lighthouse/performance · warning · score 3.3–6.4 · page

Reported as

Lighthouse performance score is the value found, under 0.9

Fix

Fix the failing audits Lighthouse lists under performance, largest savings first.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.scores.performance

Expects

{
  "type": "number",
  "minimum": 0.9
}

Low Lighthouse SEO score

lighthouse/seo · warning · score 3.3–5.4 · page

Reported as

Lighthouse SEO score is the value found, under 0.9

Fix

Fix the failing audits Lighthouse lists under SEO, largest savings first.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.scores.seo

Expects

{
  "type": "number",
  "minimum": 0.9
}

TBT over 200 ms in the lab

lighthouse/tbt · warning · score 3.4–6.0 · page

Reported as

TBT is the value found ms in the lab, over 200 ms

Fix

Reduce TBT below 200 ms; the Lighthouse report names the elements and resources behind it.

Off by default; a group that runs lighthouse turns it on.

References

For rule authors

Reads

  • lighthouse.vitals.tbt

Expects

{
  "type": "number",
  "maximum": 200
}

link-text

Rules: 1

link-text/label/inaccessible · warning · score 4.6 · page

Screen-reader users often browse a list of links out of context, where “read more” says nothing, and search engines learn little from such anchors. Only pages in English, Spanish or Ukrainian are judged.

Fix

Name the target in the link text itself, or give the link an aria-label that does.

Off by default; a group that runs link-text turns it on.

References

For rule authors

Reads

  • linktext.generic

links

Rules: 10

links/click-depth

A page is more than 3 links from the start page

links/click-depth/excessive · info · score 1.6–3.0 · page

Pages buried deep in the site are found late by crawlers and are rarely reached by visitors. Search engines may treat them as less important. Only HTML pages that answer 2xx and were reached by the crawl are checked.

Reported as

a page is more than 3 links away from the start page

Fix

Link the page from a hub, a section index or the navigation.

Off by default; a group that runs graph turns it on.

References

For rule authors

Reads

  • graph.depth

Expects

{
  "maximum": 3
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "graph.depth": {
    "type": "integer"
  }
}

links/external-rel

External links lack the rel tokens the policy requires

links/external-rel/missing · off · score 5.0 · page

Search engines ask sites to mark paid links sponsored and user content ugc, and a link missing the tokens declared for its host may be read as passing ranking and risk a penalty. Only hosts matching the configured policy are checked.

Fix

Add the rel tokens the policy names, as sponsored on paid links and ugc on user content, rather than nofollow on every external link.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • html.links.external
  • html.links.rel

links/external

An external link leads to a page that does not load

links/external/unreachable · off · score 4.6–6.0 · site

Visitors who follow the link reach an error or a dead site, which makes the page look neglected. Only probed links that answer 4xx or 5xx, or nothing, count; rate limits, bot walls and excluded hosts are not judged.

Fix

Remove or repoint each broken external link.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.links
  • html.links.external

links/incoming

Only a few pages of the site link to this page

links/incoming/weak · info · score 1.8 · page

A page that few others link to is hard to find and signals little importance to search engines. Only HTML pages that answer 2xx are checked, and not the start page or pages in a paginated series.

Reported as

only a few pages of the site link here

Fix

Link the page from its section index or related pages.

Off by default; a group that runs graph turns it on.

References

For rule authors

Reads

  • graph.in-degree

Expects

{
  "minimum": 2
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  },
  "graph.in-degree": {
    "minimum": 1
  },
  "crawl.discovered-via": {
    "not": {
      "const": "seed"
    }
  },
  "html.rels.prev": {
    "not": {
      "type": "array"
    }
  }
}

links/internal-nofollow

Internal links carry rel=nofollow

links/internal-nofollow/present · warning · score 4.2 · page

nofollow on the site’s own links withholds ranking signals from its pages and hampers crawlers in discovering them. To keep crawlers out of a page, use robots.txt or noindex instead.

Fix

Drop rel=nofollow from links to the site’s own pages; keep robots.txt or noindex for pages crawlers should skip.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • html.links.internal
  • html.links.nofollow

links/internal

An internal link points at a URL that redirects

links/internal/redirected · warning · score 4.6 · site

Every visitor and crawler pays an extra round trip before reaching the page, which slows loading. Pointing the link at the final URL avoids the hop.

Fix

Make the link target point at the final URL, or serve the content directly.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.redirects
  • html.links.internal

An internal link leads to a page that does not load

links/internal/unreachable · error · score 7.4–8.4 · site

Visitors who follow the link reach an error page, and search engines waste crawl time on it and may drop the page. Counted for every crawled page that answers 4xx or 5xx, or does not answer at all.

Fix

Fix the page at the link target so it answers 2xx, or point the links to a working URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.status
  • crawl.referrers

links/outgoing

A page links to no other page of the site

links/outgoing/missing · info · score 1.6 · page

A page without outgoing links is a dead end: visitors must use the back button, and crawlers find nothing further from it. Only HTML pages that answer 2xx are checked.

Reported as

a page links to no other page of the site

Fix

Add navigation or related links back into the site.

Off by default; a group that runs graph turns it on.

References

For rule authors

Reads

  • graph.out-degree

Expects

{
  "minimum": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  }
}

A rel=me profile’s HTML does not link back to the site

links/rel-me-backlink/missing · info · score 2.2 · site

Services such as Mastodon only verify a profile when it links back, so the visitor sees no verified badge. The profile is read as plain HTML, so a link a script adds is not seen.

Fix

Link each rel=me profile back to the site, marked rel=me where the profile allows it; a link a script adds after load is not seen.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.rel-me.unverified

links/rel-me-rendered

A rel=me profile does not link back once its scripts run

links/rel-me-rendered/missing · info · score 2.2 · page

Services such as Mastodon only verify a profile when it links back, so the visitor sees no verified badge. The profile is loaded in a browser, and only profiles answering 2xx are judged.

Fix

Add this site to the profile’s website links, and confirm the profile page shows it to visitors who are not signed in.

Off by default; a group that runs rel-me turns it on.

References

For rule authors

Reads

  • rel-me-live.profiles

live

Rules: 9

live/click-target

A clickable div or span has no role

live/click-target/inaccessible · warning · score 5.2 · page

A plain element that takes clicks cannot be reached by keyboard or announced by a screen reader, so those visitors cannot use it. Only sampled pages are judged, in a browser.

Fix

Use <button> or <a href>; a custom control needs a role, tabindex="0" and a key handler too.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.clickables

live/contrast-enhanced

Text stays below 7:1 contrast when more contrast is requested

live/contrast-enhanced/weak · warning · score 5.0 · page

The page answers the more-contrast preference but some text still falls short of the 7:1 enhanced ratio, so low-vision visitors who asked for it gain little. Only sampled pages are judged, in a browser.

Fix

Raise every colour pair inside @media (prefers-contrast: more) to 7:1, or 4.5:1 for large text.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.contrast.faint

live/contrast-more

No style answers a request for more contrast

live/contrast-more/weak · info · score 1.6 · page

Visitors who set their system to more contrast, such as people with low vision, still see the default pale colours. Only sampled pages are judged, in a browser.

Fix

Darken muted text and borders inside @media (prefers-contrast: more), aiming at 7:1.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.contrast.claimed

live/dark-contrast

Text is too faint to read in the dark scheme the page claims

live/dark-contrast/weak · warning · score 5.6 · page

The page declares dark support but some elements have low contrast in it, so visitors using dark mode cannot read them. Only sampled pages are judged, in a browser.

Fix

Give every prefers-color-scheme: dark colour a matching background, or drop dark from color-scheme until the dark styles exist.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.dark

live/forced-color-adjust

Elements keep their own text colours under forced colours

live/forced-color-adjust/inaccessible · info · score 2.4 · page

Text that opts out of forced colours keeps its own palette, which may be unreadable against the background a high-contrast visitor chose. Only sampled pages are judged, in a browser.

Fix

Keep forced-color-adjust: none to small graphics such as logos and swatches, never on text.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.forced.opt-out

live/forced-colors-icon

Icon controls show nothing under forced colours

live/forced-colors-icon/inaccessible · warning · score 5.4 · page

A button whose only content is a gradient or masked icon turns blank in Windows high-contrast mode, so those visitors cannot see what it does. Only sampled pages are judged, in a browser.

Fix

Draw icons with inline SVG in currentColor or an <img>; a masked icon needs forced-color-adjust: none and background-color: ButtonText under @media (forced-colors: active).

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.forced.icons

live/input-font-size

Form fields use a font under 16 px

live/input-font-size/weak · info · score 2.6 · page

iOS Safari zooms the page in when a field with a smaller font is focused, which disorients phone users. Measured at a desktop viewport on sampled pages, in a browser.

Fix

Give inputs, selects and text areas font-size: 16px or more; measured at the crawler’s desktop viewport, so a phone-only media query goes unseen.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.inputs

live/reduced-motion

Animations and videos ignore the reduced-motion preference

live/reduced-motion/missing · warning · score 6.2 · page

Visitors who ask their system for less motion, often because moving content causes dizziness or nausea, still get endless animations and autoplay. Only sampled pages are judged, in a browser.

Fix

Stop endless and long animations and autoplay inside @media (prefers-reduced-motion: reduce).

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.motion
  • live.videos

live/webmcp

The page registers no WebMCP tools for in-browser agents

live/webmcp/missing · hint · score 0.8 · page

A browser agent can then only click and read the interface, which is slower and more fragile than calling the page’s actions. Only checked where the browser supports WebMCP.

Fix

Register the page’s actions as WebMCP tools with navigator.modelContext, so an in-browser agent calls them instead of driving the interface.

Off by default; a group that runs live turns it on.

References

For rule authors

Reads

  • live.webmcp

mail

Rules: 39

mail/bimi-dmarc

BIMI is published but DMARC does not enforce a policy

mail/bimi-dmarc/weak · warning · score 4.4 · site

Mail clients show the BIMI logo only when DMARC quarantines or rejects all mail, so the published logo goes unseen. Checked only on names with a BIMI record.

Reported as

BIMI is published but DMARC does not quarantine or reject all mail, so no receiver shows the logo

Fix

Set the DMARC record to quarantine or reject, without t=y or pct=, since mail clients show the logo only then.

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=quarantine; rua=mailto:dmarc@<domain>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.bimi.dmarc-enforced

Expects

{
  "const": true
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.bimi": {
    "type": "object"
  }
}

The BIMI logo does not load or breaks the SVG profile

mail/bimi-logo/invalid · warning · score 4.3 · site

Receivers show no logo when the file is missing or is not an SVG Tiny PS image, so the BIMI record does nothing. Checked only on names with a BIMI record that names a logo.

Reported as

the BIMI logo does not load or breaks the SVG Tiny PS profile, so receivers show none (got the value found)

Fix

Serve the logo the l= tag names as an SVG with version="1.2" baseProfile="tiny-ps", a <title>, no script and no external reference.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.bimi.logo.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.bimi": {
    "type": "object"
  },
  "site.hosts.*.mail.bimi.logo": {
    "type": "object"
  }
}

mail/bimi-vmc

The BIMI mark certificate does not load or is not a PEM file

mail/bimi-vmc/invalid · warning · score 4.2 · site

Receivers that require a verified mark certificate show no logo without a valid one. Checked only on names with a BIMI record that names a certificate.

Reported as

the BIMI certificate the a= tag names does not load or is not a PEM certificate

Fix

Serve the mark certificate your CA issued, in PEM form, at the URL the a= tag of default._bimi.<domain> names.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.bimi.vmc.parses

Expects

{
  "const": true
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.bimi": {
    "type": "object"
  },
  "site.hosts.*.mail.bimi.vmc": {
    "type": "object"
  }
}

mail/bimi

The BIMI record breaks the BIMI syntax

mail/bimi/invalid · warning · score 4.5 · site

Mail clients ignore a malformed BIMI record, so the brand logo never shows beside the name’s mail. Checked only on names with a BIMI record.

Reported as

the BIMI record breaks its grammar (got the value found)

Fix

Keep one BIMI record, written as:

  • Name: default._bimi.<domain>
  • Content: v=BIMI1; l=https://<domain>/logo.svg; a=https://<domain>/vmc.pem

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.bimi.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.bimi": {
    "type": "object"
  }
}

mail/dane

A mail server has no DNSSEC-signed TLSA record

mail/dane/missing · hint · score 0.8 · site

Without a signed TLSA record at _25._tcp, senders cannot authenticate the server’s certificate and an attacker can pose as it. Checked only when the DANE check is turned on.

Reported as

an exchange has no DNSSEC-signed TLSA record at _25._tcp, so senders cannot authenticate its certificate (got the value found)

Fix

Sign the DNS zone of each mail server of <host> with DNSSEC, then add a TLSA record for each server:

  • Name: _25._tcp.<mail server>
  • Usage: 3
  • Selector: 1
  • Matching type: 1
  • Certificate: <SHA-256 hash of the server’s public key>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dane

Expects

{
  "items": {
    "properties": {
      "tlsa": {
        "minimum": 1
      },
      "signed": {
        "const": true
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dane": {
    "type": "array"
  }
}

mail/dkim-key

A DKIM RSA key is shorter than 1024 bits

mail/dkim-key/invalid · error · score 8.8 · site

RFC 8301 requires at least 1024 bits, so receivers treat signatures from the key as absent and the mail can fail DMARC. Checked only on names that take or send mail.

Reported as

a DKIM RSA key is shorter than the 1024 bits RFC 8301 requires, so receivers treat its signatures as absent (got the value found)

Fix

Generate a 2048-bit DKIM key at your mail provider and publish it at a new selector under _domainkey.<domain>.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dkim.found

Expects

{
  "items": {
    "properties": {
      "bits": {
        "minimum": 1024
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dkim": {
    "type": "object"
  }
}

A DKIM RSA key is shorter than 2048 bits

mail/dkim-key/weak · warning · score 3.8 · site

RFC 8301 recommends 2048 bits, since a shorter key is within reach of an attacker who wants to forge signed mail. Checked only on names that take or send mail.

Reported as

a DKIM RSA key is shorter than 2048 bits, which RFC 8301 recommends (got the value found)

Fix

Generate a 2048-bit DKIM key at your mail provider and publish it at a new selector under _domainkey.<domain>.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dkim.found

Expects

{
  "items": {
    "properties": {
      "bits": {
        "not": {
          "minimum": 1024,
          "maximum": 2047
        }
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dkim": {
    "type": "object"
  }
}

mail/dkim-revoked

A DKIM selector publishes a revoked, empty key

mail/dkim-revoked/present · info · score 1.6 · site

An empty key revokes the selector, which suits a retired one; if the servers still sign with it, every signature fails and mail may fail DMARC. Checked only on names that take or send mail.

Reported as

a DKIM selector publishes an empty key, which revokes it; fine for a retired selector, not for one in use (got the value found)

Fix

Delete the DKIM record with the empty key a week after your servers stopped signing with it.

  • Name: <selector>._domainkey.<domain>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dkim.found

Expects

{
  "items": {
    "properties": {
      "revoked": {
        "const": false
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dkim": {
    "type": "object"
  }
}

mail/dkim-testing

A DKIM key is still marked as testing

mail/dkim-testing/present · warning · score 3.9 · site

With the t=y flag, receivers may ignore a failed signature, so forged mail signed wrongly is not caught. Checked only on names that take or send mail.

Reported as

a DKIM key still carries the t=y testing flag, so receivers may ignore failed signatures (got the value found)

Fix

Remove t=y from the DKIM record.

  • Name: <selector>._domainkey.<domain>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dkim.found

Expects

{
  "items": {
    "properties": {
      "testing": {
        "const": false
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dkim": {
    "type": "object"
  }
}

mail/dkim

A DKIM key record breaks the DKIM syntax

mail/dkim/invalid · warning · score 4.0 · site

Signatures made with a malformed key fail verification, so receivers treat the name’s mail as unsigned and DMARC can fail it. Checked only on names that take or send mail.

Reported as

a DKIM key record breaks the RFC 6376 grammar, so signatures under it fail (got the value found)

Fix

Publish the DKIM record again exactly as your mail provider gives it.

  • Name: <selector>._domainkey.<domain>
  • Content: v=DKIM1; k=rsa; p=<the key>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dkim.found

Expects

{
  "items": {
    "properties": {
      "errors": {
        "maxItems": 0
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dkim": {
    "type": "object"
  }
}

No DKIM key found for the name

mail/dkim/missing · hint · score 0.7 · site

Without a DKIM key, receivers cannot verify that mail was signed by the name’s servers, so DMARC and spam filters trust the mail less. The probe tries common selector names only, so a custom selector may be missed.

Reported as

no DKIM key found under any common selector; the probe list cannot be complete, so check your provider’s selector

Fix

Publish the DKIM key your mail provider gives you as a TXT record, where <selector> is the name the provider gives the key:

  • Name: <selector>._domainkey.<domain>
  • Content: v=DKIM1; k=rsa; p=<the key>

Then list the selector under org.spiderlint.mail.dkim-selectors.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dkim.found

Expects

{
  "minItems": 1
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dkim": {
    "type": "object"
  }
}

mail/dmarc-external-auth

DMARC sends reports to a domain that does not accept them

mail/dmarc-external-auth/missing · warning · score 5.3 · site

Receivers drop reports addressed to another domain that has not agreed to take them, so the owner gets none. Checked only on names with a valid DMARC record.

Reported as

DMARC sends reports to a domain that does not accept them, so receivers drop them (got the value found)

Fix

Ask whoever receives the reports to publish a TXT record that accepts reports about <domain>, where <destination> is the domain of their address:

  • Name: <domain>._report._dmarc.<destination>
  • Content: v=DMARC1

Or send the reports to an address under <domain> instead.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc.unauthorized

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  },
  "site.hosts.*.mail.dmarc.errors": {
    "maxItems": 0
  }
}

mail/dmarc-report-uri

A DMARC report address is not a mailto: address

mail/dmarc-report-uri/invalid · warning · score 4.1 · site

A rua or ruf address that is not a mailto: URI gets no reports, so the owner never learns who sends or forges mail as the name. Checked only on names with a valid DMARC record.

Reported as

a DMARC report address is not a mailto: URI, so no report reaches it (got the value found)

Fix

Write each rua= and ruf= address in the DMARC record as a mailto: address, for example:

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=reject; rua=mailto:dmarc@<domain>

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc.not-mailto

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  },
  "site.hosts.*.mail.dmarc.errors": {
    "maxItems": 0
  }
}

mail/dmarc-subdomain-policy

The DMARC record sets no policy for subdomains

mail/dmarc-subdomain-policy/weak · info · score 2.6 · site

Subdomains silently inherit the main policy, so a change to it affects them unplanned, and mail forged from a subdomain may slip through. Checked only on the domain’s own record, where subdomains exist.

Reported as

the DMARC record sets no sp= policy although the domain serves subdomains, which then inherit p= silently

Fix

Add sp=reject to the DMARC record, or the policy your subdomains need, so mail forged from a subdomain is refused too.

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=reject; sp=reject; rua=mailto:dmarc@<domain>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc

Expects

{
  "required": [
    "sp"
  ]
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  },
  "site.hosts.*.mail.dmarc.errors": {
    "maxItems": 0
  },
  "site.hosts.*.mail.dmarc.subdomains": true
}

mail/dmarc-testing

The DMARC policy is in test mode

mail/dmarc-testing/present · info · score 2.4 · site

With t=y or pct below 100, receivers apply the policy to only part of the mail, so some forged mail still reaches inboxes. Checked only on names with a valid DMARC record.

Reported as

the DMARC policy is in test mode, t=y or pct below 100, so receivers do not apply it to all mail

Fix

Remove t=y and pct= from the DMARC record, so its policy applies to all mail.

  • Name: _dmarc.<domain>

Do this once the reports sent to its rua= address list only servers that are yours.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc.testing

Expects

{
  "const": false
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  },
  "site.hosts.*.mail.dmarc.errors": {
    "maxItems": 0
  }
}

mail/dmarc

The name publishes more than one DMARC record

mail/dmarc/duplicate · warning · score 6.3 · site

Receivers discard all DMARC records when there are several, so the name has no policy and forged mail is not stopped. Checked only on names that take or send mail.

Reported as

the name publishes the value found DMARC records, so receivers discard all of them

Fix

Keep one TXT record starting with v=DMARC1, and merge the others into it.

  • Name: _dmarc.<domain>

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc.records

Expects

{
  "maximum": 1
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  }
}

The DMARC record breaks the DMARC syntax

mail/dmarc/invalid · warning · score 6.1 · site

Receivers ignore a malformed DMARC record, so the name has no policy and forged mail is not stopped. Checked only on names that take or send mail.

Reported as

the DMARC record breaks the RFC 9989 grammar (got the value found)

Fix

Rewrite the DMARC record as v=DMARC1 followed by tag=value pairs separated by semicolons, for example:

  • Name: _dmarc.<domain>
  • Content: v=DMARC1; p=reject; rua=mailto:dmarc@<domain>

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.dmarc.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.dmarc": {
    "type": "object"
  }
}

mail/mta-sts-max-age

The MTA-STS policy is cached for under a day

mail/mta-sts-max-age/weak · warning · score 4.7 · site

A max_age under a day makes senders forget the policy between messages, so the protection against downgrade rarely applies. Checked only on names with a readable MTA-STS policy.

Reported as

the MTA-STS max_age is the value found seconds, under a day, so senders forget the policy between messages

Fix

Set max_age: 604800 or more in https://mta-sts.<domain>/.well-known/mta-sts.txt.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mta-sts.policy.max-age

Expects

{
  "minimum": 86400
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.mta-sts": {
    "type": "object"
  },
  "site.hosts.*.mail.mta-sts.policy.errors": {
    "maxItems": 0
  }
}

mail/mta-sts-mode

The MTA-STS policy does not enforce TLS

mail/mta-sts-mode/weak · hint · score 0.6 · site

In testing or none mode, senders still deliver when TLS fails, so mail can still be intercepted. Checked only on names with a readable MTA-STS policy.

Reported as

the MTA-STS policy is in the value found mode, so senders still deliver when TLS fails

Fix

Set mode: enforce in https://mta-sts.<domain>/.well-known/mta-sts.txt, then give the MTA-STS record a new id, so senders read the file again:

  • Name: _mta-sts.<domain>
  • Content: v=STSv1; id=20260102

Do this once the TLS reports you receive show no failed deliveries.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mta-sts.policy.mode

Expects

{
  "const": "enforce"
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.mta-sts": {
    "type": "object"
  },
  "site.hosts.*.mail.mta-sts.policy.errors": {
    "maxItems": 0
  }
}

mail/mta-sts-mx

The MTA-STS policy does not cover every mail server

mail/mta-sts-mx/mismatch · warning · score 4.8 · site

Senders that enforce the policy refuse to deliver to a mail server it does not list, so mail to that server is lost. Checked only on names with a readable MTA-STS policy.

Reported as

the MTA-STS policy covers no mx: pattern for an exchange, so enforcing senders refuse to deliver to it (got the value found)

Fix

Add an mx: line for every mail server of <host> to https://mta-sts.<domain>/.well-known/mta-sts.txt, then give the MTA-STS record a new id, so senders read the file again:

  • Name: _mta-sts.<domain>
  • Content: v=STSv1; id=20260102

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mta-sts.policy.unmatched

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.mta-sts": {
    "type": "object"
  },
  "site.hosts.*.mail.mta-sts.policy.errors": {
    "maxItems": 0
  }
}

mail/mta-sts-policy

The MTA-STS policy file cannot be read

mail/mta-sts-policy/unreachable · warning · score 5.4 · site

Senders ignore the policy when the file does not answer 200 as plain text or does not parse, so mail is not protected against downgrade. Checked only on names with an MTA-STS record.

Reported as

the MTA-STS policy file does not answer 200 as text/plain or does not parse, so senders ignore it (got the value found)

Fix

Serve https://mta-sts.<domain>/.well-known/mta-sts.txt with status 200 as text/plain, carrying version: STSv1, mode: enforce, one mx: line per Mail server and max_age: 604800.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mta-sts.policy.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.mta-sts": {
    "type": "object"
  },
  "site.hosts.*.mail.mta-sts.policy": {
    "type": "object"
  }
}

mail/mta-sts

The MTA-STS record breaks the MTA-STS syntax

mail/mta-sts/invalid · warning · score 5.5 · site

Senders ignore a malformed _mta-sts record and its policy, so mail is not protected against downgrade to plain text. Checked only on names that take or send mail.

Reported as

the _mta-sts record breaks the RFC 8461 grammar, so senders ignore the policy (got the value found)

Fix

Keep one MTA-STS record, its id made of letters and digits only.

  • Name: _mta-sts.<domain>
  • Content: v=STSv1; id=20260101

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mta-sts.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.mta-sts": {
    "type": "object"
  }
}

The name has no MTA-STS policy

mail/mta-sts/missing · info · score 2.0 · site

Without MTA-STS, senders deliver over STARTTLS that an attacker on the path can strip, so mail can be read or altered in transit. Checked only on names that take or send mail.

Reported as

no MTA-STS record, so senders deliver over STARTTLS that an attacker on the path can strip

Fix

Serve a text file at https://mta-sts.<domain>/.well-known/mta-sts.txt with these lines, one mx: line per mail server of the name:

  • version: STSv1
  • mode: enforce
  • mx: <mail server>
  • max_age: 604800

Then add a TXT record:

  • Name: _mta-sts.<domain>
  • Content: v=STSv1; id=20260101

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.mta-sts

Expects

{
  "required": [
    "record"
  ]
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.mta-sts": {
    "type": "object"
  }
}

mail/mx-address

A mail server named in an MX record has no address

mail/mx-address/missing · warning · score 5.9 · site

A server with no A or AAAA record cannot be reached, so mail to it bounces or waits in senders’ queues. Checked only on names that take or send mail.

Reported as

an MX exchange has no A or AAAA record, so mail to it bounces (got the value found)

Fix

Add A and AAAA records for the Mail server the MX record of <host> names, or point the MX at a server that has them.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.exchanges

Expects

{
  "items": {
    "properties": {
      "addresses": {
        "minimum": 1
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.exchanges": {
    "type": "array"
  }
}

mail/mx-cname

A mail server named in an MX record is a CNAME

mail/mx-cname/present · warning · score 5.6 · site

RFC 2181 forbids an MX target that is an alias, and some senders refuse to deliver to it, so mail is lost or delayed. Checked only on names that take or send mail.

Reported as

an MX exchange is a CNAME, which RFC 2181 forbids and some senders refuse (got the value found)

Fix

Set the Mail server of the MX record of <host> to the CNAME’s target, the name that has the A and AAAA records.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.exchanges

Expects

{
  "items": {
    "properties": {
      "cname": {
        "const": false
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.exchanges": {
    "type": "array"
  }
}

mail/mx-literal

A mail server named in an MX record is an IP address

mail/mx-literal/present · warning · score 5.7 · site

An MX must name a host, so senders cannot use an IP address and mail to it bounces. Checked only on names that take or send mail.

Reported as

an MX exchange is an IP address, not a name, so senders cannot use it (got the value found)

Fix

Give the mail server a name with an A record, such as mx.<domain>, and set it as the Mail server of the MX record of <host>.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.exchanges

Expects

{
  "items": {
    "properties": {
      "literal": {
        "const": false
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.exchanges": {
    "type": "array"
  }
}

mail/mx

The MX set lists the same mail server more than once

mail/mx/duplicate · warning · score 3.3 · site

Repeated entries add nothing and hint at a copy mistake, and a sender that retries each entry wastes time on the same dead server. Checked only on names that take or send mail.

Reported as

the MX set names an exchange more than once (got the value found)

Fix

Delete the repeated MX records of <host>, keeping one per Mail server.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.duplicates

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.duplicates": {
    "type": "array"
  }
}

mail/smtp-banner

A mail server’s greeting name differs from its reverse DNS name

mail/smtp-banner/mismatch · info · score 1.2 · site

When the 220 banner names a host the address’s PTR record does not, some receivers score the server’s mail as spam. Checked only when the STARTTLS check is turned on.

Reported as

an exchange’s 220 banner names a host its address’s PTR does not, which some receivers score as spam (got the value found)

Fix

Make the SMTP greeting name of each MX of <host> and the PTR record of its address the same name.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.starttls

Expects

{
  "items": {
    "properties": {
      "banner-matches": {
        "const": true
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.starttls": {
    "type": "array"
  }
}

mail/spf-after-all

The SPF record lists mechanisms after all

mail/spf-after-all/unused · warning · score 5.1 · site

Receivers stop at all and never read what follows, so servers listed there are not authorised and their mail fails the check. Checked only on names with a valid SPF record.

Reported as

SPF lists mechanisms after all, which receivers never reach (got the value found)

Fix

Move every term of the SPF record before its all, which receivers read last, for example:

  • Name: <host>
  • Content: v=spf1 mx include:_spf.example.net -all

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.after-all

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  },
  "site.hosts.*.mail.spf-walk.errors": {
    "maxItems": 0
  }
}

mail/spf-include

The SPF record includes a name that has no SPF record

mail/spf-include/broken · warning · score 5.0 · site

Receivers treat an include or redirect to a name without a single SPF record as a permanent error, so the whole check fails and genuine mail can be rejected. Checked only on names with a valid SPF record.

Reported as

SPF includes or redirects to a name with no single SPF record, a permanent error to receivers (got the value found)

Fix

Delete the include: or redirect= of the SPF record that points at a domain with no SPF record, or correct its spelling.

  • Name: <host>

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.missing-includes

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  },
  "site.hosts.*.mail.spf-walk.errors": {
    "maxItems": 0
  }
}

mail/spf-lookups

The SPF record needs more than 10 DNS lookups

mail/spf-lookups/excessive · warning · score 5.8 · site

RFC 7208 caps SPF at 10 lookups counting every include, so receivers fail the check and genuine mail can be rejected or sent to spam. Checked only on names that take or send mail with a valid SPF record.

Reported as

SPF needs the value found DNS lookups counting its includes, over the 10 RFC 7208 allows, so receivers fail it

Fix

Cut the SPF record down to at most 10 DNS lookups: each include, a, mx, ptr and exists term costs one, and so does every such term inside an included record.

  • Name: <host>

Replace an include: with the ip4: and ip6: ranges its record lists, and update them when the provider changes its servers.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.lookups

Expects

{
  "maximum": 10
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  },
  "site.hosts.*.mail.spf-walk.errors": {
    "maxItems": 0
  }
}

mail/spf-ptr

The SPF record uses the discouraged ptr mechanism

mail/spf-ptr/deprecated · warning · score 4.9 · site

RFC 7208 says not to use ptr because it is slow and unreliable, so receivers may time out or fail the check and genuine mail can go missing. Checked only on names with a valid SPF record.

Reported as

SPF uses the ptr mechanism, which RFC 7208 says not to use, since it is slow and unreliable

Fix

Replace ptr in the SPF record with the ip4: and ip6: addresses of the servers it matched.

  • Name: <host>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.ptr

Expects

{
  "const": false
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  },
  "site.hosts.*.mail.spf-walk.errors": {
    "maxItems": 0
  }
}

mail/spf-void-lookups

The SPF record makes too many lookups that find nothing

mail/spf-void-lookups/excessive · warning · score 5.2 · site

RFC 7208 allows two lookups that return no record, so receivers fail the check when a stale include points at a name that no longer exists, and genuine mail can be rejected. Checked only on names with a valid SPF record.

Reported as

SPF makes the value found lookups that find nothing, over the 2 RFC 7208 allows, so receivers fail it

Fix

Delete the terms of the SPF record that name a domain with no record, such as an include: of a mail provider you no longer use.

  • Name: <host>

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.void-lookups

Expects

{
  "maximum": 2
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  },
  "site.hosts.*.mail.spf-walk.errors": {
    "maxItems": 0
  }
}

mail/spf

The SPF record breaks the SPF syntax

mail/spf/invalid · warning · score 6.2 · site

Receivers treat a malformed SPF record as a permanent error and ignore it, so the name’s mail is no longer protected against forgery and genuine mail may be marked suspect. Checked only on names that take or send mail.

Reported as

the SPF record breaks the RFC 7208 grammar, so receivers treat it as a permanent error and ignore it (got the value found)

Fix

Rewrite the SPF record as v=spf1, then the servers allowed to send, then -all, separated by single spaces, for example:

  • Name: <host>
  • Content: v=spf1 mx ip4:192.0.2.1 include:_spf.example.net -all

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  }
}

The SPF record repeats a term or has a pointless redirect

mail/spf/redundant · info · score 1.4 · site

Repeated mechanisms waste the 10-lookup budget, and a redirect that all makes unreachable misleads whoever maintains the record, so it breaks more easily. Checked only on names with a valid SPF record.

Reported as

SPF repeats a mechanism, or carries a redirect that all makes unreachable (got the value found)

Fix

Delete the repeated terms from the SPF record, and drop redirect= when the record ends in all.

  • Name: <host>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.spf-walk.redundant

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.spf-walk": {
    "type": "object"
  },
  "site.hosts.*.mail.spf-walk.errors": {
    "maxItems": 0
  }
}

mail/starttls-certificate

A mail server’s STARTTLS certificate is not valid for its name

mail/starttls-certificate/invalid · warning · score 6.0 · site

Senders that use MTA-STS or DANE refuse a certificate that does not validate, so mail to that server is delayed or bounces. Checked only when the STARTTLS check is turned on.

Reported as

an exchange’s STARTTLS certificate does not validate for its name, so MTA-STS and DANE senders refuse it (got the value found)

Fix

Install a certificate from a public CA covering the Mail server name, with its full chain, on every MX of <host>.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.starttls

Expects

{
  "items": {
    "anyOf": [
      {
        "properties": {
          "offered": {
            "const": false
          }
        }
      },
      {
        "properties": {
          "authorized": {
            "const": true
          }
        }
      }
    ]
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.starttls": {
    "type": "array"
  }
}

mail/starttls

A mail server does not offer STARTTLS on port 25

mail/starttls/missing · warning · score 6.4 · site

Mail to a server without STARTTLS travels in clear text, so anyone on the path can read it. Checked only when the STARTTLS check is turned on.

Reported as

an exchange does not offer STARTTLS on port 25, so mail to it travels in the clear (got the value found)

Fix

Turn on STARTTLS with a certificate for the Mail server name on every MX of <host>.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.starttls

Expects

{
  "items": {
    "properties": {
      "offered": {
        "const": true
      }
    }
  }
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.starttls": {
    "type": "array"
  }
}

mail/tls-rpt

The TLS-RPT record breaks the TLS-RPT syntax

mail/tls-rpt/invalid · warning · score 4.6 · site

Senders ignore a malformed record, so no reports of failed TLS deliveries arrive. Checked only on names that take or send mail.

Reported as

the TLS-RPT record breaks the RFC 8460 grammar (got the value found)

Fix

Keep one TLS reporting record, written as:

  • Name: _smtp._tls.<domain>
  • Content: v=TLSRPTv1; rua=mailto:tls-reports@<domain>

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.tls-rpt.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.tls-rpt": {
    "type": "object"
  }
}

The name has no TLS-RPT record

mail/tls-rpt/missing · info · score 1.8 · site

Without it, mail servers cannot report failed TLS deliveries, so problems with the name’s mail encryption stay unseen. Checked only on names that take or send mail.

Reported as

no TLS-RPT record, so senders cannot report failed TLS deliveries

Fix 1

Add a TXT record, so mail servers tell you when they could not deliver to you over TLS.

  • Name: _smtp._tls.<domain>
  • Content: v=TLSRPTv1; rua=mailto:tls-reports@<domain>

Fix 2

Report Relay https://dbuho.me/project/report-relay/ collects these reports and sends them to your Grafana: open source, self-hosted, free.

Off by default; a group that runs mail turns it on.

References

For rule authors

Reads

  • site.hosts.*.mail.tls-rpt

Expects

{
  "required": [
    "record"
  ]
}

When

{
  "site.hosts.*.mail.mode": "mail",
  "site.hosts.*.mail.tls-rpt": {
    "type": "object"
  }
}

manifest

Rules: 5

manifest/document

The web app manifest does not parse

manifest/document/invalid · error · score 7.2 · site

A manifest that is not valid JSON is ignored by browsers, so the site cannot be installed as an app and loses its name and icons on home screens.

Fix

Serve the manifest as one JSON object.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources.manifest

manifest/fields

The web app manifest lacks members installation needs

manifest/fields/missing · warning · score 5.0 · site

Without name, start_url, display and icons browsers will not offer to install the site, so visitors get no home-screen app. Only manifests that parse are judged.

Fix

Add name, start_url, display, icons to the manifest.

Off by default; a group that runs manifest turns it on.

References

For rule authors

Reads

  • resources.manifest

manifest/icons

The manifest icons lack required sizes or a maskable icon

manifest/icons/missing · warning · score 4.6 · site

Without 192×192 and 512×512 icons the installed app gets a blurry or default icon, and without a maskable one Android crops the logo badly. Only manifests that parse are judged.

Fix

List a 192×192 and a 512×512 icon, and one with purpose: maskable whose safe zone holds the logo.

Off by default; a group that runs manifest turns it on.

References

For rule authors

Reads

  • resources.manifest

Some pages do not link the web app manifest

manifest/link/missing · warning · score 4.2 · group

A visitor who lands on a page without the manifest link cannot install the app from there. Only groups where some HTML pages link a manifest and others do not are flagged.

Fix

Link the manifest with <link rel=manifest> from every page, so the app installs from wherever a visitor lands.

Off by default; a group that runs manifest turns it on.

References

For rule authors

Reads

  • html.head.links

manifest/serving

The manifest is served or declared wrongly

manifest/serving/invalid · warning · score 5.4 · site

A manifest with the wrong content type, no id, or a start URL outside its scope or origin can be rejected or give the installed app the wrong identity.

Fix

Serve the manifest as application/manifest+json with an id, and a start_url inside a scope on the site’s own origin.

Off by default; a group that runs manifest turns it on.

References

For rule authors

Reads

  • resources.manifest

markdownlint

Rules: 53

Fenced code blocks should be surrounded by blank lines

markdownlint/blanks-around-fences · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD031: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Headings should be surrounded by blank lines

markdownlint/blanks-around-headings · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD022: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Lists should be surrounded by blank lines

markdownlint/blanks-around-lists · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD032: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Tables should be surrounded by blank lines

markdownlint/blanks-around-tables · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD058: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Code block style

markdownlint/code-block-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD046: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Code fence style

markdownlint/code-fence-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD048: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Dollar signs used before commands without showing output

markdownlint/commands-show-output · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD014: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/descriptive-link-text · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD059: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Emphasis style

markdownlint/emphasis-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD049: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Fenced code blocks should have a language specified

markdownlint/fenced-code-language · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD040: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

First line in a file should be a top-level heading

markdownlint/first-line-heading · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD041: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Heading levels should only increment by one level at a time

markdownlint/heading-increment · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD001: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Headings must start at the beginning of the line

markdownlint/heading-start-left · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD023: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Heading style

markdownlint/heading-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD003: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Horizontal rule style

markdownlint/hr-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD035: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Line length

markdownlint/line-length · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD013: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/link-fragments · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD051: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/link-image-reference-definitions · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD053: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/link-image-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD054: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Inconsistent indentation for list items at the same level

markdownlint/list-indent · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD005: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Spaces after list markers

markdownlint/list-marker-space · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD030: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Images should have alternate text (alt text)

markdownlint/no-alt-text · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD045: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Bare URL used

markdownlint/no-bare-urls · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD034: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Blank line inside blockquote

markdownlint/no-blanks-blockquote · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD028: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Multiple headings with the same content

markdownlint/no-duplicate-heading · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD024: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Emphasis used instead of a heading

markdownlint/no-emphasis-as-heading · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD036: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/no-empty-links · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD042: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Hard tabs

markdownlint/no-hard-tabs · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD010: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Inline HTML

markdownlint/no-inline-html · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD033: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

No space after hash on atx style heading

markdownlint/no-missing-space-atx · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD018: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

No space inside hashes on closed atx style heading

markdownlint/no-missing-space-closed-atx · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD020: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Multiple consecutive blank lines

markdownlint/no-multiple-blanks · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD012: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Multiple spaces after hash on atx style heading

markdownlint/no-multiple-space-atx · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD019: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Multiple spaces after blockquote symbol

markdownlint/no-multiple-space-blockquote · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD027: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Multiple spaces inside hashes on closed atx style heading

markdownlint/no-multiple-space-closed-atx · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD021: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/no-reversed-links · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD011: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Spaces inside code span elements

markdownlint/no-space-in-code · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD038: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Spaces inside emphasis markers

markdownlint/no-space-in-emphasis · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD037: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/no-space-in-links · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD039: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Trailing punctuation in heading

markdownlint/no-trailing-punctuation · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD026: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Trailing spaces

markdownlint/no-trailing-spaces · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD009: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Ordered list item prefix

markdownlint/ol-prefix · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD029: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Proper names should have the correct capitalization

markdownlint/proper-names · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD044: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markdownlint/reference-links-images · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD052: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Required heading structure

markdownlint/required-headings · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD043: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Multiple top-level headings in the same document

markdownlint/single-title · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD025: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Files should end with a single newline character

markdownlint/single-trailing-newline · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD047: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Strong style

markdownlint/strong-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD050: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Table column count

markdownlint/table-column-count · warning · score 5.0 · page

Fix

Change the Markdown at each location, or accept the style with MD056: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Table column style

markdownlint/table-column-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD060: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Table pipe style

markdownlint/table-pipe-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD055: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Unordered list indentation

markdownlint/ul-indent · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD007: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

Unordered list style

markdownlint/ul-style · info · score 2.0 · page

Fix

Change the Markdown at each location, or accept the style with MD004: false under org.spiderlint.markdownlint.config.

Off by default; a group that runs markdownlint:extra turns it on.

References

For rule authors

Reads

  • markdownlint.messages

markup

Rules: 3

markup/captions

A video has no captions or subtitles

markup/captions/missing · warning · score 6.0 · page

Deaf and hard-of-hearing visitors, and anyone watching without sound, cannot follow speech in a video with no text track. Muted videos without controls are exempt.

Fix

Add <track kind="captions" src="….vtt" srclang="…"> to each video with speech; a muted decorative loop without controls is exempt.

Off by default; a group that runs markup turns it on.

References

For rule authors

Reads

  • markup.videos

markup/input-type

An input’s type does not match its autocomplete field

markup/input-type/mismatch · warning · score 4.4 · page

Phones show the wrong keyboard and autofill suggests the wrong value when an email, phone or URL field is a plain text input.

Fix

Set type (or inputmode) to what the autocomplete field holds: email, tel or url.

Off by default; a group that runs markup turns it on.

References

For rule authors

Reads

  • html.inputs

markup/lang-switcher

Language switcher links do not declare their target language

markup/lang-switcher/mismatch · warning · score 4.8 · page

Without lang and hreflang a screen reader pronounces the link in the wrong language, and visitors and search engines cannot tell which language it leads to.

Fix

Give each switcher link lang and hreflang equal to its target’s language, and write its text in that language.

Off by default; a group that runs markup turns it on.

References

For rule authors

Reads

  • markup.switcher
  • html.hreflang

network

Rules: 4

network/asn

The site and its name servers sit in one autonomous system

network/asn/single · hint · score 0.6 · site

One network outage then takes both the site and its DNS down together. Not flagged when an anycast DNS operator announces the zone.

Fix

Serve the zone from at least one name server in a second autonomous system.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.network.asns

network/mail-fcrdns

A mail server address has no matching reverse DNS name

network/mail-fcrdns/mismatch · warning · score 5.8 · site

Large mailbox providers refuse or junk mail from an address with no PTR record, or whose PTR does not resolve back to that address, so the name’s mail goes missing.

Reported as

a mail exchanger address has no PTR, or its PTR does not resolve back to it, so large mailbox providers refuse its mail

Fix

Set the PTR of each mail exchanger address to a name whose A or AAAA record is that address.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.network.mail

Expects

{
  "items": {
    "properties": {
      "fcrdns": {
        "const": true
      }
    }
  }
}

network/rpki

An address sits in a route that RPKI marks invalid

network/rpki/invalid · error · score 9.0 · site

Networks that drop RPKI-invalid routes cannot reach the site at all, and the mismatch can also signal a route hijack.

Reported as

an address sits in a route RPKI marks invalid, so networks that drop invalid routes cannot reach the site

Fix

Have the hosting provider publish a ROA naming the origin AS and prefix length the route is announced with.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.network.web

Expects

{
  "items": {
    "properties": {
      "rpki": {
        "not": {
          "const": "invalid"
        }
      }
    }
  }
}

An address sits in a prefix that no RPKI route authorisation covers

network/rpki/missing · hint · score 0.7 · site

Without a ROA, a hijack of the route cannot be told apart from the real one, so a rogue network can attract the site’s traffic.

Reported as

an address sits in a prefix no ROA covers, so a hijack of its route cannot be told apart

Fix

Ask the hosting provider to publish a ROA for the prefix that announces the address.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.network.web

Expects

{
  "items": {
    "properties": {
      "rpki": {
        "not": {
          "const": "not-found"
        }
      }
    }
  }
}

origin

Rules: 16

origin/canonical-host

Entry variants do not all lead to one canonical origin

origin/canonical-host/mismatch · warning · score 5.6 · site

When http, https, www and the bare domain each serve the site, search engines split ranking across copies and visitors land on inconsistent addresses. Judged once per origin.

Fix

Redirect every http, https, www and apex variant to the one canonical origin with a 301 or 308.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.probes

origin/compression

The home page is not offered in br, zstd and gzip

origin/compression/missing · info · score 2.4 · site

Missing compression makes every visitor download more bytes, which is slowest on mobile connections. Only a text page of 1 KiB or more is judged.

Reported as

/ is served only with the value found; offer br, zstd and gzip, each to the clients that ask for it

Fix

Configure the server to compress text responses with br, zstd and gzip.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.encodings.served

Expects

{
  "allOf": [
    {
      "contains": {
        "const": "br"
      }
    },
    {
      "contains": {
        "const": "zstd"
      }
    },
    {
      "contains": {
        "const": "gzip"
      }
    }
  ]
}

When

{
  "site.origins.*.encodings.bytes": {
    "minimum": 1024
  },
  "site.origins.*.encodings.content-type": {
    "pattern": "^(text/|application/xhtml\\+xml)"
  }
}

origin/cross-domain-policy

A cross-domain policy file lets any origin read the site

origin/cross-domain-policy/insecure · warning · score 5.2 · site

A wildcard policy lets a page on any other site make Flash or Silverlight requests as the visitor and read the answers. Judged once per origin.

Reported as

a cross-domain policy file lets any origin read the site as its visitor: the value found

Fix

Delete crossdomain.xml and clientaccesspolicy.xml, or list only the domains that need access.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.cross-domain.open

Expects

{
  "maxItems": 0
}

origin/entry-redirect-path

Entry redirects drop the requested path or query

origin/entry-redirect-path/missing · warning · score 5.4 · site

A visitor who follows a deep link or a bookmark through http or www ends on the home page instead of the page they wanted. Judged once per origin.

Reported as

entry variants lose the requested path or query on the way: the value found

Fix

Carry the request path and query into the Location of every entry redirect.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.dropped

Expects

{
  "maxItems": 0
}

origin/entry-redirect

Entry variants take more than one redirect hop

origin/entry-redirect/excessive · warning · score 4.8 · site

Each extra redirect adds a round trip before the page starts loading, and search engines may stop following a long chain. Judged once per origin.

Reported as

entry variants take more than one hop, or two not starting http to https on the same host: the value found

Fix

Redirect each variant straight to the canonical origin, or first to https on its own host and then there.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.long

Expects

{
  "maxItems": 0
}

A redirect sends visitors from https back to plain http

origin/entry-redirect/insecure · error · score 9.0 · site

The visitor’s connection drops from encrypted to unencrypted, so anyone on the network can read or alter the page. Judged once per origin.

Reported as

entry variants are sent from https back to plain http: the value found

Fix

Never redirect an https request to an http URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.downgraded

Expects

{
  "maxItems": 0
}

Entry variants redirect with a temporary status

origin/entry-redirect/temporary · warning · score 4.6 · site

A 302, a 307 or a meta refresh tells search engines the move is not permanent, so they keep indexing the old address. Judged once per origin.

Reported as

entry variants redirect with a temporary status or a meta refresh: the value found

Fix

Answer every entry variant with 301 or 308, never 302, 307 or a meta refresh.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.temporary

Expects

{
  "maxItems": 0
}

origin/error-page

The not-found page exposes a stack trace or server version

origin/error-page/disclosing · warning · score 5.0 · site

A stack trace or a version number tells attackers exactly which software and flaws to target. Only judged when the missing-page request answers 404 or 410.

Reported as

the not-found page is not plain HTML free of stack traces and server versions (got the value found)

Fix

Serve a plain HTML 404 page with no server version or stack trace.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.not-found

Expects

{
  "properties": {
    "content-type": {
      "const": "text/html"
    },
    "bytes": {
      "minimum": 1
    },
    "trace": {
      "const": false
    },
    "server": {
      "not": {
        "pattern": "\\d+\\.\\d+"
      }
    }
  }
}

When

{
  "site.origins.*.not-found.status": {
    "enum": [
      404,
      410
    ]
  }
}

origin/favicon

/favicon.ico is not an image

origin/favicon/invalid · info · score 2.2 · site

Browsers and crawlers request /favicon.ico by default, so an HTML error page there leaves a missing icon and wastes a request.

Reported as

/favicon.ico is not an image (got the value found)

Fix

Serve /favicon.ico as a real image (PNG, ICO, or SVG).

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.favicon

Expects

{
  "required": [
    "status",
    "content-type"
  ],
  "properties": {
    "status": {
      "minimum": 200,
      "maximum": 299
    },
    "content-type": {
      "pattern": "^image/"
    }
  }
}

origin/https-redirect

Plain http does not redirect to https in one permanent hop

origin/https-redirect/missing · off · score 5.0 · site

Visitors who type or follow an http address stay unencrypted or take a detour. Superseded by the canonical-origin check and off by default.

Reported as

plain http does not redirect to https in one permanent hop (got the value found); deprecated, see origin/canonical-host/mismatch

Fix

Redirect every http request to https with a 301 or 308, preserving the URL.

Off in every shipped ruleset; an override turns it on.

References

For rule authors

Reads

  • site.origins.*.entry

Expects

{
  "required": [
    "status",
    "https"
  ],
  "properties": {
    "status": {
      "enum": [
        301,
        308
      ]
    },
    "https": {
      "const": true
    }
  }
}

origin/locale-redirect

The home page redirects by Accept-Language

origin/locale-redirect/present · warning · score 4.4 · site

Visitors and crawlers asking in different languages are sent to different URLs, so search engines may only ever see one of them. Judged once per origin.

Reported as

/ lands on the value found different URLs depending on Accept-Language

Fix

Serve the same content for every language unless the page has language-specific alternates.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.locale.distinct

Expects

{
  "const": 1
}

origin/revalidation

A conditional request is not answered with 304 Not Modified

origin/revalidation/broken · info · score 1.8 · site

Without 304 replies every repeat visit and every crawler re-downloads the whole page. Only judged when the page carries a validator such as an ETag.

Reported as

a conditional request for the seed page answers the value found, not 304 Not Modified

Fix

Answer a request whose If-None-Match or If-Modified-Since still matches with 304 and no body.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.revalidation.repeat

Expects

{
  "const": 304
}

When

{
  "site.origins.*.revalidation.validator": {
    "type": "string"
  }
}

origin/slash-redirect

A page answers under both trailing-slash forms with the same title

origin/slash-redirect/missing · warning · score 5.2 · site

Two addresses for one page split links and search ranking between them and create duplicate content. Judged once per origin.

Reported as

a page answers 2xx with the same title under both trailing-slash forms: the value found

Fix

Redirect the trailing-slash form you do not use to the one you do with a 301 or 308.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.slash-twins.duplicated

Expects

{
  "maxItems": 0
}

origin/soft-404

Missing pages answer 200 instead of 404 or 410

origin/soft-404/present · warning · score 5.8 · site

Search engines index error pages as real content, and visitors and crawlers cannot tell a dead link from a live page. A random missing URL is requested once per origin.

Reported as

a missing page answers the value found, not 404 or 410

Fix

Return 404 or 410 for missing pages instead of 200 with a soft-404 body.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.not-found.status

Expects

{
  "enum": [
    404,
    410
  ]
}

origin/www

A host that resolves in DNS does not answer

origin/www/broken · warning · score 5.6 · site

Visitors and search engines who reach the www or apex host get an error or a timeout, and redirect advice is pointless until the server answers. Judged once per origin.

Fix

Repair the server behind the host so it answers and redirects to the canonical origin, or remove the host’s DNS records.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.probes

The www or apex host has no DNS answer

origin/www/unreachable · info · score 1.0 · site

Visitors who type the address with or without www get an error instead of the site. A hint only, since a missing variant can be deliberate.

Reported as

no DNS answer for the entry host the value found; make sure that is deliberate

Fix

Publish an A or AAAA record for the www or apex host and redirect it to the canonical origin.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.origins.*.variants.unresolved

Expects

{
  "maxItems": 0
}

parity

Rules: 6

parity/canonical

The canonical link exists only after JavaScript runs

parity/canonical/mismatch · warning · score 5.5 · page

The raw HTML has no canonical link, so crawlers that do not run scripts may index duplicate URLs of the same page. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.

Reported as

the canonical link exists only after JavaScript runs

Fix

Render <link rel=“canonical”> on the server.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • parity.missing

Expects

{
  "properties": {
    "canonical": false
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

parity/description

The meta description exists only after JavaScript runs

parity/description/mismatch · info · score 2.6 · page

The raw HTML has no meta description, so search engines and link previews that do not run scripts show a poorer snippet. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.

Reported as

the meta description exists only after JavaScript runs

Fix

Render <meta name=“description”> on the server.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • parity.missing

Expects

{
  "properties": {
    "description": false
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

parity/h1

The main heading exists only after JavaScript runs

parity/h1/mismatch · info · score 2.4 · page

The raw HTML has no h1, so crawlers and readers without scripts get no main heading. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.

Reported as

the h1 exists only after JavaScript runs

Fix

Render the page heading on the server.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • parity.missing

Expects

{
  "properties": {
    "h1": false
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

Internal links exist only after JavaScript runs

parity/links/mismatch · warning · score 5.8 · page

The raw HTML lacks the site’s internal links, so crawlers that do not run scripts cannot follow them to the other pages. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.

Reported as

internal links exist only after JavaScript runs

Fix

Render navigation links as <a href> on the server.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • parity.missing

Expects

{
  "properties": {
    "links": false
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

parity/text

Most of the page text appears only after JavaScript runs

parity/text/mismatch · warning · score 5.2 · page

Less than half of the text a browser shows is in the raw HTML, so crawlers, readers and tools without scripts see a mostly empty page. Browser mode compares the raw HTML with the rendered page, and only pages with at least 200 rendered characters are judged.

Reported as

the raw HTML carries a share of the text the rendered page shows

Fix

Render the main content on the server, or give it a <noscript> fallback.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • parity

Expects

{
  "if": {
    "properties": {
      "rendered": {
        "properties": {
          "text": {
            "minimum": 200
          }
        }
      }
    }
  },
  "then": {
    "properties": {
      "text-share": {
        "minimum": 0.5
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

parity/title

The title exists only after JavaScript runs

parity/title/mismatch · warning · score 6.0 · page

The raw HTML has no title, so crawlers and link previews that do not run scripts see an untitled page. Browser mode compares the raw HTML with the rendered page, and only pages that answer 2xx are checked.

Reported as

the title exists only after JavaScript runs

Fix

Render <title> on the server.

Off by default; a group that runs parity turns it on.

References

For rule authors

Reads

  • parity.missing

Expects

{
  "properties": {
    "title": false
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

redirects

Rules: 3

redirects/chain

Reaching the page takes more than 2 redirects

redirects/chain/excessive · warning · score 4.8 · page

Every extra redirect adds a round trip before the page starts loading, which slows visitors, and crawlers may give up on long chains.

Reported as

takes more than 2 redirects to land

Fix

Collapse the redirect chain so the final URL is reached in one or two hops.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.redirects

Expects

{
  "type": "array",
  "maxItems": 2
}

redirects/redirect-by

A redirect does not say which component sent it

redirects/redirect-by/missing · hint · score 0.1 · page

Without Redirect-By, tracking down which server, plugin or rule issued an unexpected redirect means guessing. This is an optional aid for people debugging the site.

Reported as

a redirect does not say which component sent it with Redirect-By

Fix

Send Redirect-By: <component> with every redirect.

Off by default; a group that runs suggestions turns it on.

References

For rule authors

Reads

  • http.redirects

Expects

{
  "type": "array",
  "items": {
    "required": [
      "by"
    ]
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "http.content-type": {
    "pattern": "^text/html"
  }
}

redirects/status

The page is reached through a temporary redirect

redirects/status/temporary · info · score 2.4 · page

A 302, 303 or 307 tells search engines the move may be undone, so they keep indexing the old URL and may not pass its ranking to the new one. Only pages that answer 2xx after redirecting are checked.

Reported as

reached through a temporary redirect

Fix

Answer a moved page with 301 or 308, not 302, 303 or 307.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • http.redirects

Expects

{
  "type": "array",
  "items": {
    "properties": {
      "status": {
        "enum": [
          301,
          308
        ]
      }
    }
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

resources

Rules: 6

resources/a11y-overlay

The page loads an accessibility overlay script

resources/a11y-overlay/present · warning · score 5.2 · page

Overlay widgets claim to fix accessibility automatically, but they do not repair the underlying markup and often interfere with screen readers and keyboard users. They can also expose the site to accessibility complaints. The check matches known overlay vendors’ domains.

Reported as

loads an accessibility overlay, which does not fix the page and gets in the way of assistive tools

Fix

Remove the accessibility overlay script and fix accessibility issues directly.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

Expects

{
  "not": {
    "contains": {
      "properties": {
        "url": {
          "pattern": "^https?://([^/]+\\.)?(acsbapp\\.com|acsbap\\.com|accessibe\\.com|userway\\.org|audioeye\\.com|equalweb\\.com|nagich\\.co\\.il|maxaccess\\.io|allyable\\.com|accessiblyapp\\.com|user1st\\.info|purplelens\\.eu)(:|/|$)"
        }
      }
    }
  }
}

resources/cache-control

A fingerprinted asset is cached for less than a year

resources/cache-control/weak · warning · score 4.8 · site

A file whose name carries a content hash, or that is marked immutable, never goes stale, so a shorter cache lifetime only makes returning visitors download it again. Also reported when the Cache-Control header is malformed.

Fix

Send Cache-Control: public, max-age=31536000, immutable with every fingerprinted asset.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

resources/compression

A text asset is sent uncompressed

resources/compression/missing · warning · score 4.4 · site

Scripts, style sheets, SVG and other text over 1 KB sent without br, gzip or zstd cost visitors more bytes and time, most on slow mobile networks. Only successful responses are judged.

Fix

Serve text assets br, zstd or gzip to every client whose Accept-Encoding offers one.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

resources/integrity

A cross-origin script or style sheet has no integrity hash

resources/integrity/missing · warning · score 6.5 · site

If the third party’s server or CDN is compromised, altered code runs on the page with nothing to stop it. A Subresource Integrity hash makes the browser refuse a changed file.

Fix

Add an integrity attribute (sha384 or sha256) and crossorigin=anonymous to each cross-origin script and style sheet.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

resources/protocol

An https page loads a resource over plain http

resources/protocol/insecure · error · score 9.4 · site

Browsers block or warn about mixed content, so the resource may not load, and anyone on the network can read or alter what does. Applies to https pages that load http: URLs.

Fix

Load the resource over https instead of http.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

resources/resource

A page loads a resource that fails or answers with an error

resources/resource/unreachable · error · score 7.6–9.0 · site

Images, scripts or style sheets that do not load leave visitors with broken layouts or missing features. Counted when a resource answers outside 2xx or not at all; feed enclosures are left out.

Fix

Fix the resource server so it answers 2xx, or remove the resource from the page.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • resources

robots

Rules: 4

robots/ai-crawlers

robots.txt addresses AI crawlers

robots/ai-crawlers/present · info · score 1.6 · site

Rules for crawlers that train models or fetch pages for AI answers decide whether the content is used there. The finding lists each named crawler and whether it is shut out, so the owner can confirm that is intended.

Fix

Confirm each named AI crawler is allowed or disallowed as intended.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.robots

robots/content-signal

A Content-Signal line in robots.txt is malformed

robots/content-signal/invalid · warning · score 3.6 · site

Crawlers that read Content-Signal may ignore a line with an unknown signal or a value other than yes or no, so the owner’s wishes on search, AI input and AI training are not honoured.

Fix

Write each Content-Signal line as comma-separated signal=yes|no pairs, e.g. Content-Signal: search=yes, ai-input=no, ai-train=no.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.robots

robots/crawler-access

robots.txt access contradicts the declared content signals

robots/crawler-access/mismatch · warning · score 4.4 · site

A crawler is shut out although the signals allow its purpose, or let in although they say no, so the content is missing from search or used for AI against the owner’s stated wishes. Skipped when robots.txt does not answer or fails with a server error.

Fix

Disallow / for every crawler whose signal is no, and lift the Disallow for every crawler whose signal is yes, e.g. User-agent: GPTBot then Disallow: /.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.robots
  • site.content-signals

robots/root

robots.txt blocks every crawler from the whole site

robots/root/blocked · warning · score 6.3 · site

User-agent: * with Disallow: / and no Allow tells every well-behaved crawler to stay out, so search engines drop the site from their results.

Fix

Remove the Disallow: / rule from the User-agent: * group, or add Allow rules for the paths you want crawled.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.robots

When

{
  "site.role": "production"
}

agents

Files agents read: llms.txt, per-page Markdown sources, A2A agent card, MCP server card, Agent Skills, AI catalog, OKF, schemamap

Rules: 14

all

Every rule that ships or a loaded plugin adds

Rules: 735

axe:best-practice

axe-core best practices beyond WCAG

Rules: 27

axe:wcag

WCAG 2.2 A and AA success criteria axe-core can test

Rules: 63

axe

Accessibility checked by axe-core in the rendered page: WCAG A and AA, and best practices

Rules: 90

browser

Checks that need a rendered page — console errors and unused preloads

Rules: 8

carbon-txt

carbon.txt: present, valid, current, and its disclosures reachable

Rules: 4

cookies:browser

The cookie expectations over what scripts write through document.cookie

Rules: 6

cookies

Secure, HttpOnly and SameSite on every cookie a page or resource sets, valid __Host- and __Secure- prefixes, and a lifetime browsers keep

Rules: 14

crawlers

Once per origin: fetches / as search engines and AI crawlers and holds their answers to the content signals

Rules: 1

css

Style sheets and inline CSS as browsers parse them: syntax errors, unknown properties, values outside the grammar, and features the declared browser targets lack

Rules: 8

dns:core

HTTPS record, CAA and its iodef contact, DNSSEC state and dangling CNAMEs, a handful of queries per host

Rules: 8

dns:mail

Mail records matched to what each name does: a null MX, a deny-all SPF and a DMARC reject policy where it takes and sends no mail, one closed SPF record and an enforced DMARC policy where it does

Rules: 8

dns:recommended

dns:core, the registration’s expiry and transfer lock, and name servers open to recursion

Rules: 11

dns

DNS and registration of every crawled host: HTTPS records, CAA, DNSSEC, name servers, zone timers, dangling CNAMEs, RDAP expiry and lock

Rules: 33

feeds

RSS, Atom and JSON Feed as readers need them: valid to their specification, content rendered, served for polling, and in step with the pages they describe

Rules: 39

graph

Internal linking across the whole crawl, click depth, dead ends and weakly linked pages

Rules: 3

html-validate:a11y

Accessibility defects html-validate can see in the markup

Rules: 26

html-validate:document

Defects only a whole document has: doctype, labels, heading levels, SRI

Rules: 5

html-validate:standard

Markup that breaks the HTML standard, with no style rules

Rules: 33

html-validate

Markup validity, accessibility and document structure, checked by html-validate

Rules: 83

htmlhint:extra

Defects htmlhint ships off: missing alt, labels, lang, meta tags, obsolete tags, unsafe attribute characters

Rules: 18

htmlhint

Markup defects htmlhint reports by default: unpaired tags, duplicate IDs and attributes, a missing doctype or title

Rules: 10

i18n

hreflang alternates that name each other back and answer 2xx, and lang against Content-Language and the language of the title and description

Rules: 4

icons

Favicons and platform icons fetched and measured: the favicon, SVG, Apple touch, Safari pinned tab and Windows tile icons, and every declared size

Rules: 6

images:assets

Fonts and text assets: WOFF2, font-display, and bytes minification saves

Rules: 3

images:live

Images as the browser lays them out, on sampled pages: lazy loading against the fold, pixels shipped against pixels shown

Rules: 3

images

Image weight and markup: bytes a modern format or a re-encode saves, heavy and oversized images, layout shift

Rules: 5

insights

Pages that stand out from the rest of the site, all info

Rules: 2

keyboard

Keyboard use on sampled pages: Tab reaches every control without a trap, focus shows, also under forced colours, and is not covered, a skip link comes first

Rules: 5

lighthouse

Lighthouse on sampled pages: performance, accessibility, best-practices and SEO scores, and lab LCP, CLS, TBT and FCP

Rules: 8

link-text

Links whose text says where they lead, judged in the page’s own language: English, Spanish and Ukrainian

Rules: 1

links

Links that answer an error, internal links that redirect or carry nofollow, rel=me profiles that do not link back

Rules: 6

live

The rendered page on sampled pages: motion under reduced-motion, contrast in a claimed dark scheme and under increased contrast, icons and opt-outs under forced colours, click handlers on plain elements, form fields small enough to zoom

Rules: 9

mail:recommended

SPF, DMARC and MX correctness of names that take or send mail

Rules: 17

mail

Mail authentication of names that take or send mail: SPF grammar and lookups, DMARC, DKIM keys, MX, MTA-STS, TLS-RPT and BIMI; DANE and STARTTLS once turned on

Rules: 44

manifest

Web app manifest linked from every page, served as a manifest, and carrying what installation needs: name, id, start URL inside its scope, display mode, sized and maskable icons

Rules: 5

markdownlint:extra

Markdown house style: line length, list, heading, emphasis and table style, spacing

Rules: 41

markdownlint

Markdown a renderer or agent misreads: reversed or empty links, missing alt text, undefined references, broken tables and headings

Rules: 12

markup

Markup the crawl can judge alone: language switcher links, video captions, input types matching their autocomplete

Rules: 3

network

ASN, RPKI route validity and reverse DNS of every crawled host, its mail exchangers and name servers

Rules: 4

origin

Once per origin: missing pages, error pages, entry variants, language redirects, compression, favicon, revalidation, cross-domain policies

Rules: 16

parity

What a page loses without JavaScript, from its raw HTML and its rendered DOM; browser mode only

Rules: 7

performance

Compression, caching, validators, protocol version and render-blocking HTML, no browser needed

Rules: 34

podcasts

Podcast feeds as directories require them: iTunes channel and episode tags, a stable Podcasting 2.0 GUID, reachable enclosures and directory-ready artwork

Rules: 5

privacy

Tracking vendors, and third-party or tracking cookies and web storage set before any interaction

Rules: 3

recommended

The default ruleset of every group — all presets except browser

Rules: 244

redirects

Redirect chain length and permanent redirects

Rules: 2

rel-me

Each rel=me profile a page names, loaded in a browser so a link its scripts add counts, and whether it names the page back

Rules: 1

resources

Scripts, styles, images and fonts — status, mixed content, integrity, caching, compression, overlays

Rules: 6

robots

robots.txt shutting every crawler out, the AI crawlers it names, its Content Signals, crawler access and noai pages against them

Rules: 5

security-headers

HSTS, CSP, nosniff, Referrer-Policy, framing and cross-origin isolation

Rules: 34

seo

Titles, descriptions, headings, canonical, Open Graph and alt text

Rules: 60

server

The recommended rules about the server, DNS and domain, which fetch only the seed pages

Rules: 55

sitemap

Sitemap readability, its agreement with the links and hreflang, and its media answering

Rules: 5

sshfp

SSHFP records of every crawled host matched to the host keys its SSH server presents, and whether DNSSEC lets a client trust them

Rules: 4

structured-data

JSON-LD, Microdata and RDFa that parse, carry what their rich result requires, agree with the page and each other, use current schema.org terms and valid dates, and whose breadcrumbs lead to live pages

Rules: 8

suggestions

Optional headers and head links a site may adopt, all hints, outside recommended

Rules: 12

sustainability

What a site discloses about its footprint in carbon.txt, and what a view of each page emits

Rules: 5

tls-probe

Protocols, cipher suites, groups, negotiation weaknesses, chain completeness, OCSP stapling and early data of every https origin

Rules: 14

tls

Certificate validity, protocol version and expiry

Rules: 6

trackers

Inventory of the analytics and ad-tech vendors the site loads, from a hand-kept host list

Rules: 1

vendor

Features a CDN or host switched on for the site, read from the paths it adds, all info

Rules: 1

web-comprehensive

The recommended rules plus link graph, language, structured data, manifest, markup, well-known files, trackers and footprint, all over HTTP — for the scan server’s form

Rules: 290

web-quick

A fast look at the basics over HTTP — search tags, security headers, caching, TLS, redirects and robots.txt — for the scan server’s form

Rules: 147

websub

WebSub as subscribers need it: every feed naming its self URL beside its hub, each hub probed once; probing opts in with org.spiderlint.feeds.websub

Rules: 2

well-known:security

security.txt and the change-password redirect

Rules: 4

well-known

Files under /.well-known/: security.txt, change-password, and every other known file that is present

Rules: 16

sitemap

Rules: 5

sitemap/document

A sitemap cannot be read

sitemap/document/unreadable · warning · score 4.4–5.8 · site

Search engines that cannot fetch or parse the sitemap do not learn which pages it lists, so new and deep pages are found later or not at all. Reported when a sitemap file fails to fetch or parse, or lists no URL.

Fix

Serve the sitemap at its listed URL and make sure it parses as XML or plain text with one URL per line.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.sitemaps

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

sitemap/hreflang

Sitemap alternates and hreflang links disagree

sitemap/hreflang/mismatch · warning · score 4.6 · page

When the sitemap and the page list different language versions, search engines get contradictory signals and may ignore both, so visitors can land on the wrong language. Only pages that have both are compared.

Fix

Generate the sitemap alternates and the page’s hreflang links from one list.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • sitemap.alternates
  • html.hreflang

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

sitemap/media

The sitemap lists an image or video that does not load

sitemap/media/unreachable · warning · score 4.0–5.2 · site

Search engines cannot index media that the sitemap names but the server fails to deliver, so it never shows up in image or video search. Counted when the file answers 4xx or 5xx, or not at all.

Fix

Remove or repoint each sitemap image and video entry that no longer answers 200.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • sitemap.images
  • sitemap.videos
  • site.links

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

sitemap/page

A page is in the sitemap, yet no crawled page links to it

sitemap/page/orphaned · warning · score 5.4 · page

Pages only the sitemap reveals are not part of the site’s navigation, so visitors cannot reach them and search engines read them as weakly linked. Only pages found through the sitemap are checked, once the crawl has finished.

Reported as

listed in the sitemap, yet no crawled page links here

Fix

Add a link to this page from somewhere on the site, or remove it from the sitemap.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • crawl.referrers

Expects

{
  "type": "array",
  "minItems": 1
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "crawl.discovered-via": "sitemap",
  "site.crawl.complete": {
    "const": true
  }
}

A page is missing from the sitemap

sitemap/page/unlisted · info · score 2.0 · page

Search engines rely on the sitemap to discover pages and learn which exist, so a page left out may be found late or not at all. Only HTML pages not marked noindex are checked.

Reported as

missing from the sitemap

Fix

Add this URL to the sitemap.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • sitemap.listed

Expects

{
  "const": true
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  },
  "html": {
    "type": "object"
  },
  "robots.noindex": {
    "not": {
      "const": true
    }
  }
}

sshfp

Rules: 4

sshfp/algorithm

An SSHFP record uses DSA or only a SHA-1 digest

sshfp/algorithm/deprecated · hint · score 0.4 · site

DSA keys are no longer approved for signing, and a SHA-1 digest alone is weak, so the record gives clients less assurance. Checked only where SSHFP records exist.

Reported as

an SSHFP record names a DSA key or carries a SHA-1 digest with no SHA-256 one beside it (got the value found)

Fix

Drop DSA records, whose keys FIPS 186-5 no longer approves for signing, and publish a SHA-256 record for every key.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.sshfp.deprecated

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.sshfp.records": {
    "type": "array",
    "minItems": 1
  }
}

sshfp/record

An SSHFP record names a host key the SSH server does not present

sshfp/record/mismatch · error · score 8.8 · site

Clients that trust SSHFP reject the connection or get a warning, because the record is stale after a key rotation or something else answered in the server’s place.

Reported as

an SSHFP record names a host key the SSH server does not present, so the record is stale after a key rotation or the connection was intercepted (got the value found)

Fix

Republish the SSHFP records from the server’s current keys (ssh-keygen -r <host> on it), or find what answered in its place.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.sshfp.mismatched

Expects

{
  "maxItems": 0
}

When

{
  "site.hosts.*.sshfp.mismatched": {
    "type": "array"
  }
}

The host answers SSH but publishes no SSHFP record

sshfp/record/missing · info · score 2.2 · site

Without SSHFP, a first connection relies on the user to accept an unknown key, so an attacker who intercepts it can pose as the server.

Reported as

the host answers SSH but publishes no SSHFP record, so a first connection is trust on first use

Fix

Publish the output of ssh-keygen -r <host> in a DNSSEC-signed zone.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.sshfp.records

Expects

{
  "minItems": 1
}

sshfp/zone

SSHFP records are not authenticated by DNSSEC

sshfp/zone/unsigned · warning · score 5.4 · site

An SSH client must not trust SSHFP records that DNSSEC has not authenticated, because an attacker on the path could forge them. Checked only where SSHFP records exist.

Reported as

the SSHFP records were not authenticated by DNSSEC, so an SSH client must not trust them: the zone is unsigned or the resolver does not validate

Fix

Sign the zone with DNSSEC, or audit through a validating resolver.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • site.hosts.*.sshfp.authenticated

Expects

{
  "const": true
}

When

{
  "site.hosts.*.sshfp.records": {
    "type": "array",
    "minItems": 1
  }
}

structured-data

Rules: 8

structured-data/breadcrumb

A breadcrumb in structured data leads to a missing page

structured-data/breadcrumb/unreachable · warning · score 5.2 · site

Search engines show the breadcrumb trail in results, so an item that redirects or answers an error sends visitors to the wrong place.

Fix

Point each breadcrumb item at the final URL of a page that answers 200.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata
  • http.status
  • site.redirects

structured-data/date

Structured data dates are malformed or contradictory

structured-data/date/invalid · warning · score 4.6 · page

Dates that are not ISO 8601, a modified date before the published date, or a published date that differs from article:published_time make search engines show wrong dates or ignore them.

Fix

Write each date as ISO 8601 with a time zone, from the same source that fills article:published_time.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata
  • html.property

structured-data/entity

The same entity is described inconsistently across pages

structured-data/entity/inconsistent · warning · score 5.0 · site

One @id typed differently, or one organisation or person under several @ids, splits what search engines know about it into separate entities.

Fix

Give each real-world entity one absolute @id and the same @type on every page that describes it.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/json-ld

JSON-LD blocks on the page do not parse

structured-data/json-ld/invalid · error · score 7.8 · page

Search engines skip a JSON-LD block that is not valid JSON, so the page loses its rich results. A stray quote or newline in a templated value is the usual cause.

Fix

Serialise the JSON-LD with a JSON encoder instead of a text template, so quotes and newlines in values are escaped.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld

structured-data/property

Structured data lacks properties its rich result requires

structured-data/property/missing · warning · score 5.8 · page

Google shows a rich result such as a product or recipe card only when the required properties are present, so the page is ineligible without them.

Fix

Add the missing properties to each named node, or drop a type the page does not really describe.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/reference

Structured data refers to a node that is never defined

structured-data/reference/broken · warning · score 4.8 · site

A reference to an @id that no crawled page defines points at nothing, so search engines cannot connect the entities and the link adds no information.

Fix

Define each referenced @id on the page it points into, or on the referring page itself; a reference into a page that never defines it names nothing.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/term

Structured data uses superseded schema.org terms

structured-data/term/deprecated · warning · score 4.0 · page

Search engines may stop reading terms that schema.org has replaced, so the data they carried silently falls out of results.

Fix

Rename each term to the one schema.org supersedes it with.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata

structured-data/url

Structured data claims disagree with the page’s own tags

structured-data/url/mismatch · warning · score 5.4 · page

When the url or name in the markup differs from the canonical URL and the title, search engines distrust it and may ignore the structured data.

Fix

Point url and mainEntityOfPage at the canonical URL, and use the page title as the entity’s name or headline.

Off by default; a group that runs structured-data turns it on.

References

For rule authors

Reads

  • html.jsonld
  • structureddata
  • html.canonical
  • html.title
  • html.property

tls-probe

Rules: 14

tls-probe/cipher-order

The server lets the client choose a weak suite over a strong one

tls-probe/cipher-order/missing · info · score 2.8 · site

A client or an attacker steering the handshake can push the connection to the weakest suite the server accepts. Checked only where weak suites are accepted, and skipped behind Cloudflare.

Reported as

the server lets the client pick a weak suite over a strong one

Fix

Set the server to prefer its own strong suites over the client’s list.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.server-order
  • site.origins.*.stack.edge.name

Expects

{
  "const": true
}

When

{
  "site.origins.*.tls-probe.weak-ciphers": {
    "minItems": 1
  },
  "site.origins.*.stack.edge.name": {
    "not": {
      "const": "cloudflare"
    }
  }
}

tls-probe/cipher

The server accepts cipher suites that are broken outright

tls-probe/cipher/insecure · error · score 9.4 · site

NULL, RC4, 3DES and similar suites give little or no protection, so an attacker on the path can read or alter the traffic. Skipped behind Cloudflare.

Reported as

the server accepts suites broken outright: the value found

Fix

Remove NULL, RC4, 3DES and other broken cipher suites from the server config.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.insecure-ciphers
  • site.origins.*.stack.edge.name

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.tls-probe.insecure-ciphers": {
    "type": "array"
  },
  "site.origins.*.stack.edge.name": {
    "not": {
      "const": "cloudflare"
    }
  }
}

The server accepts weak cipher suites

tls-probe/cipher/weak · warning · score 6.2 · site

Suites without forward secrecy, with CBC or with a 64-bit block let recorded traffic be decrypted later or attacked in transit. Skipped behind Cloudflare.

Reported as

the server accepts suites without forward secrecy, with CBC or with a 64-bit block: the value found

Fix

Keep only AEAD suites that offer forward secrecy (ECDHE).

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.weak-ciphers
  • site.origins.*.stack.edge.name

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.tls-probe.weak-ciphers": {
    "type": "array"
  },
  "site.origins.*.stack.edge.name": {
    "not": {
      "const": "cloudflare"
    }
  }
}

tls-probe/compression

The server compresses TLS records

tls-probe/compression/insecure · warning · score 6.0 · site

TLS compression enables the CRIME attack, through which an attacker can read secrets such as session cookies.

Reported as

the server compresses TLS records, through which CRIME reads secrets

Fix

Disable TLS compression.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.compression

Expects

{
  "const": false
}

When

{
  "site.origins.*.tls-probe.compression": {
    "type": "boolean"
  }
}

tls-probe/dh

The server’s Diffie-Hellman prime is shorter than 2048 bits

tls-probe/dh/weak · warning · score 3.4–6.4 · site

A short DHE prime lets a well-resourced attacker break the key exchange and read the traffic.

Reported as

the server’s DHE prime has the value found bits, short of 2048

Fix

Use a DH group of at least 2048 bits, or drop the DHE suites for ECDHE.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.dh-bits

Expects

{
  "minimum": 2048
}

When

{
  "site.origins.*.tls-probe.dh-bits": {
    "type": "number"
  }
}

tls-probe/early-data

The server accepts TLS 1.3 early data

tls-probe/early-data/insecure · info · score 2.6 · site

An attacker can replay early data, so a request such as a payment may run twice unless the server answers 425 to non-idempotent requests.

Reported as

the server accepts TLS 1.3 early data, which an attacker can replay; non-idempotent requests must answer 425

Fix

Disable early data, or answer 425 Too Early to non-idempotent requests.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.early-data

Expects

{
  "const": false
}

When

{
  "site.origins.*.tls-probe.early-data": {
    "type": "boolean"
  }
}

tls-probe/fallback-scsv

The server accepts a needless fallback to an older TLS version

tls-probe/fallback-scsv/missing · info · score 2.4 · site

Without TLS_FALLBACK_SCSV, an attacker can force clients down to an older protocol version that has known weaknesses.

Reported as

the server accepts a needless fallback to an older version instead of refusing it

Fix

Enable TLS_FALLBACK_SCSV in the TLS library.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.fallback-scsv

Expects

{
  "const": true
}

When

{
  "site.origins.*.tls-probe.fallback-scsv": {
    "type": "boolean"
  }
}

tls-probe/forward-secrecy

Not every accepted cipher suite offers forward secrecy

tls-probe/forward-secrecy/missing · warning · score 5.8 · site

If the server’s key leaks later, traffic recorded with a suite lacking forward secrecy can be decrypted. Skipped behind Cloudflare.

Reported as

forward secrecy covers the value found of the accepted suites, where “all” are expected

Fix

Configure only ECDHE suites so every handshake offers forward secrecy.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.forward-secrecy
  • site.origins.*.stack.edge.name

Expects

{
  "const": "all"
}

When

{
  "site.origins.*.tls-probe.forward-secrecy": {
    "type": "string"
  },
  "site.origins.*.stack.edge.name": {
    "not": {
      "const": "cloudflare"
    }
  }
}

tls-probe/intermediate

The server does not send the intermediate certificates

tls-probe/intermediate/missing · error · score 8.0 · site

Clients that have not cached the intermediates cannot build the chain and fail with a certificate error, so some visitors cannot open the site.

Reported as

the server does not send the intermediate certificates its chain needs, so clients that have not cached them fail

Fix

Configure the server to serve the full certificate chain, including intermediates.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.chain.complete

Expects

{
  "const": true
}

When

{
  "site.origins.*.tls-probe.chain": {
    "type": "object"
  }
}

tls-probe/ocsp-stapling

The server does not staple an OCSP response

tls-probe/ocsp-stapling/missing · info · score 1.8 · site

Each visitor’s browser then asks the CA whether the certificate is revoked, which slows the connection and tells the CA which sites they visit. Checked only when the certificate names an OCSP responder.

Reported as

the certificate names an OCSP responder but the server staples no response, so each client asks the CA

Fix

Enable OCSP stapling so the server attaches the CA’s response to handshakes.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.ocsp.stapled

Expects

{
  "const": true
}

When

{
  "site.origins.*.tls-probe.ocsp.responder": true
}

tls-probe/protocol

The server still accepts SSLv3, TLS 1.0 or TLS 1.1

tls-probe/protocol/deprecated · error · score 9.2 · site

These protocols are retired and have known attacks, so a visitor’s connection can be downgraded and read by an attacker on the path.

Reported as

the server still accepts the value found, which RFC 6176, RFC 7568 and RFC 8996 retire

Fix

Disable SSLv3, TLS 1.0 and TLS 1.1; keep only TLS 1.2 and 1.3.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.legacy
  • site.origins.*.stack

Expects

{
  "maxItems": 0
}

tls-probe/secure-renegotiation

The server does not support secure renegotiation

tls-probe/secure-renegotiation/missing · warning · score 5.2 · site

Without it, an attacker can splice their own data into a client’s session during a renegotiation.

Reported as

the server does not answer renegotiation_info, so a renegotiation can be spliced into a session

Fix

Enable secure renegotiation in the TLS library.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.secure-renegotiation

Expects

{
  "const": true
}

When

{
  "site.origins.*.tls-probe.secure-renegotiation": {
    "type": "boolean"
  }
}

tls-probe/tls13

The server does not offer TLS 1.3

tls-probe/tls13/missing · info · score 2.2 · site

Visitors get slower handshakes and miss the stronger protections of TLS 1.3, and modern security baselines expect it.

Reported as

the server offers the value found and no TLS 1.3

Fix

Enable TLS 1.3 in the server configuration.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.protocols

Expects

{
  "contains": {
    "const": "TLSv1.3"
  }
}

tls-probe/vulnerability

The server’s TLS setup is open to a known attack

tls-probe/vulnerability/insecure · error · score 9.6 · site

A negotiated protocol, suite or extension exposes the connection to a named attack, so an attacker can recover secrets such as session cookies. Skipped behind Cloudflare.

Reported as

what the server negotiates leaves it open to the value found

Fix

Update the TLS library, and disable the protocol, suite or extension each named attack needs.

Off by default; a group that runs tls-probe turns it on.

References

For rule authors

Reads

  • site.origins.*.tls-probe.vulnerabilities
  • site.origins.*.stack.edge.name

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.tls-probe.vulnerabilities": {
    "type": "array"
  },
  "site.origins.*.stack.edge.name": {
    "not": {
      "const": "cloudflare"
    }
  }
}

tls

Rules: 7

tls/certificate

The site’s certificate has expired

tls/certificate/expired · error · score 9.3 · page

Browsers block the site with a security warning, so most visitors cannot reach it. Only HTTPS pages.

Reported as

certificate has expired

Fix

Renew the certificate and reload the server that serves it.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.cert.days-left

Expects

{
  "type": "integer",
  "minimum": 0
}

When

{
  "url.protocol": "https:"
}

The site’s certificate expires within 14 days

tls/certificate/expiring · warning · score 1.0–6.8 · page

Once it lapses, browsers block the site with a security warning, so a missed renewal takes it offline for most visitors. Only HTTPS pages with a certificate not yet expired.

Reported as

certificate expires within 14 days

Fix

Renew the certificate before it lapses, and check that automatic renewal is scheduled and succeeds.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.cert.days-left

Expects

{
  "type": "integer",
  "minimum": 14
}

When

{
  "url.protocol": "https:",
  "tls.cert.days-left": {
    "minimum": 0
  }
}

The site’s certificate is not trusted

tls/certificate/invalid · error · score 9.5 · page

Browsers show a full-page warning or block the connection, so most visitors turn away and cannot be sure they reach the real site. Only HTTPS pages.

Reported as

certificate is not trusted

Fix

Install the CA bundle the server needs, or request a certificate from a trusted CA.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.authorized

Expects

{
  "const": true
}

When

{
  "url.protocol": "https:"
}

tls/ec-key

The certificate uses an RSA key instead of an EC key

tls/ec-key/missing · hint · score 0.6 · page

An EC key gives the same security with a smaller certificate and a faster handshake, which speeds up the first load of every connection. Only HTTPS responses are checked.

Reported as

the certificate carries an RSA key, where an EC key makes a smaller handshake

Fix

Issue the certificate for an EC P-256 key.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.cert.key.type

Expects

{
  "not": {
    "const": "RSA"
  }
}

When

{
  "url.protocol": "https:",
  "tls.cert.key": {
    "type": "object"
  }
}

tls/key

The certificate’s key is weaker than RSA 2048 or EC P-256

tls/key/weak · error · score 8.8 · page

A short key can be factored or broken by a determined attacker, who could then impersonate the site. Only HTTPS pages.

Reported as

certificate key is weaker than RSA 2048 or EC P-256

Fix

Issue the certificate for a new EC P-256 key, or an RSA key of at least 2048 bits.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.cert.key

Expects

{
  "anyOf": [
    {
      "properties": {
        "type": {
          "const": "RSA"
        },
        "bits": {
          "minimum": 2048
        }
      },
      "required": [
        "bits"
      ]
    },
    {
      "properties": {
        "type": {
          "const": "EC"
        },
        "curve": {
          "enum": [
            "P-256",
            "P-384"
          ]
        }
      },
      "required": [
        "curve"
      ]
    },
    {
      "properties": {
        "type": {
          "const": "Ed25519"
        }
      }
    }
  ]
}

When

{
  "url.protocol": "https:",
  "tls.cert.key": {
    "type": "object"
  }
}

tls/protocol

The connection uses a TLS version older than 1.2

tls/protocol/deprecated · warning · score 6.1 · page

TLS 1.0 and 1.1 are retired and have known attacks, so an attacker on the path may read or alter the traffic. Only HTTPS pages.

Reported as

TLS should be 1.2 or 1.3

Fix

Disable TLS 1.0 and 1.1 in the server configuration; keep only TLS 1.2 and 1.3.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.protocol

Expects

{
  "enum": [
    "TLSv1.2",
    "TLSv1.3"
  ]
}

When

{
  "url.protocol": "https:"
}

tls/signature

The certificate chain is signed with SHA-1 or MD5

tls/signature/weak · error · score 8.6 · page

These hashes can be forged, so an attacker could craft a certificate that passes for the real one, and browsers distrust such chains. Only HTTPS pages.

Reported as

the certificate chain is signed with SHA-1 or MD5

Fix

Reissue the certificate from a CA that signs with SHA-256 or stronger, and serve its current intermediates.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • tls.cert.signatures

Expects

{
  "items": {
    "not": {
      "pattern": "[Ss][Hh][Aa]1|[Mm][Dd][245]"
    }
  }
}

When

{
  "url.protocol": "https:",
  "tls.cert.signatures": {
    "type": "array"
  }
}

trackers

Rules: 1

trackers/vendor

The site loads a known analytics or ad-tech vendor

trackers/vendor/present · info · score 2.6 · site

Such vendors learn which pages visitors read and may need consent under privacy law. The vendor is recognised from a hand-kept list of hosts among the resources pages load.

Fix

Drop the vendor, or name it in the privacy policy and load it only after consent.

Off by default; a group that runs trackers turns it on.

References

For rule authors

Reads

  • resources

url

Rules: 9

url/double-slash

The URL path has an empty segment

url/double-slash/present · warning · score 4.9 · page

A doubled slash can serve the same page at two addresses, which splits links and ranking between them. Only pages that answer 2xx are checked.

Reported as

the path has an empty segment

Fix

Remove the doubled slash from the links, and redirect the doubled path to the single one.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname

Expects

{
  "type": "string",
  "not": {
    "pattern": "//"
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/extension

The URL path shows the server technology in its extension

url/extension/present · hint · score 0.6 · page

Extensions such as .php or .aspx tie the address to one technology, so links break when the site changes its stack, and they tell attackers what it runs. Only pages that answer 2xx are checked. This is a minor hint.

Reported as

the path exposes the server technology in its extension

Fix

Serve the page at an extensionless path, and redirect the old one to it.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname

Expects

{
  "type": "string",
  "not": {
    "pattern": "(?i:\\.(php|aspx?|jsp|cgi|html?)$)"
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/href

The URL is longer than 100 characters

url/href/length · info · score 1.8 · page

Long URLs are hard to read, share and remember, and are often cut off in search results and messages. Only pages that answer 2xx are checked.

Reported as

the URL is longer than 100 characters

Fix

Shorten the path to the few words that name the page.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.href

Expects

{
  "type": "string",
  "maxLength": 100
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/path

The URL path is not lowercase with hyphens

url/path/invalid · info · score 2.8 · page

Mixed case, underscores and empty segments make URLs harder to read, share and type, and a server may treat each form as a separate page. Only pages that answer 2xx are checked.

Reported as

URL path should be lowercase, with hyphens and no empty segment

Fix

Rewrite the path to be lowercase, with hyphens and no empty segments.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname

Expects

{
  "type": "string",
  "pattern": "^(?!.*//)(%[0-9A-Fa-f]{2}|[^A-Z_%])*$"
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/separator

URLs join words with different separators

url/separator/inconsistent · warning · score 4.4 · site

Mixing hyphens and underscores makes URLs hard to guess and type, and search engines read a hyphen as a word break but an underscore as part of one word. Reported for the pages that use the separator fewer pages of the site use.

Fix

Join the words of every URL with hyphens, and redirect the others to them.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/session-param

The URL carries a session ID

url/session-param/present · warning · score 5.8 · page

Every visitor gets a different address for the same page, so search engines see endless duplicates, and a shared link can hand over someone’s session. Only pages that answer 2xx are checked.

Reported as

the URL carries a session ID

Fix

Keep the session in a cookie, never in the URL.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.href

Expects

{
  "type": "string",
  "not": {
    "pattern": "(?i:[?&;](sid|sessionid|jsessionid|phpsessid)=)"
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/slug

The URL slug is an identifier or shares no word with the title

url/slug/unreadable · info · score 2.0 · page

A readable URL tells visitors and search engines what the page is about before it loads, and is easier to share and remember. Paginated listings are left out.

Fix

Name the page in its URL with words from its title, as /spring-recipes for “Spring recipes”.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname
  • html.title
  • html.h1
  • html.rels
  • graph.prev

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/trailing-slash

URLs of a group differ in their trailing slash

url/trailing-slash/inconsistent · warning · score 4.3 · site

A URL with and without a trailing slash can be two separate pages, so the same content may be indexed twice and links, shares and cache entries are split between them. The root, file names and well-known URIs are skipped.

Fix

Pick one form, with or without the trailing slash, and redirect the other to it.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

url/uppercase

The URL path has uppercase letters

url/uppercase/present · warning · score 5.1 · page

A server may treat /About and /about as different pages, which splits links and ranking and makes the page reachable at several addresses. Only pages that answer 2xx are checked.

Reported as

the path has uppercase letters, which a server may treat as another URL

Fix

Use lowercase paths, and redirect each mixed-case path to its lowercase form.

Runs by default, in the recommended ruleset.

References

For rule authors

Reads

  • url.pathname

Expects

{
  "type": "string",
  "not": {
    "pattern": "(?<!%)(?<!%[0-9A-Fa-f])[A-Z]"
  }
}

When

{
  "http.status": {
    "minimum": 200,
    "maximum": 299
  }
}

vendor

Rules: 1

vendor/cloudflare-email-obfuscation

Cloudflare hides email addresses behind JavaScript

vendor/cloudflare-email-obfuscation/present · info · score 2.4 · site

Email Address Obfuscation rewrites each address into a link that only JavaScript decodes, so visitors without scripts, readers and crawlers see no address. The check reads the paths Cloudflare adds to the site.

Reported as

Cloudflare’s Email Address Obfuscation rewrites every address into a link only JavaScript decodes, so a visitor without JavaScript sees no address

Fix

Turn off Email Address Obfuscation in the Cloudflare dashboard under Security › Settings, or accept that visitors without JavaScript see no address.

Off by default; a group that runs vendor turns it on.

References

For rule authors

Reads

  • site.origins.*.vendor.features

Expects

{
  "not": {
    "contains": {
      "const": "cloudflare/email-obfuscation"
    }
  }
}

well-known

Rules: 34

well-known/agent-card

The /.well-known/agent-card.json file is malformed

well-known/agent-card/invalid · hint · score 0.6 · site

Other agents read it to learn what this agent can do and how to call it, so a missing member makes it undiscoverable or unusable. It is a draft format.

Reported as

/.well-known/agent-card.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/agent-card.json.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.agent-card.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.agent-card.present": true
}

well-known/agent-skills

The /.well-known/agent-skills/index.json file is malformed

well-known/agent-skills/invalid · hint · score 0.5 · site

Agents read it to discover the skills the site offers, so a missing member or skill field hides them. It is a draft format.

Reported as

/.well-known/agent-skills/index.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/agent-skills/index.json.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.agent-skills.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.agent-skills.present": true
}

well-known/ai-catalog

The /.well-known/ai-catalog.json file is malformed

well-known/ai-catalog/invalid · hint · score 0.4 · site

Agents read it to discover the AI resources the site offers, so a malformed entry hides them. It is a draft format.

Reported as

/.well-known/ai-catalog.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/ai-catalog.json.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.ai-catalog.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.ai-catalog.present": true
}

well-known/api-catalog

The /.well-known/api-catalog file is malformed

well-known/api-catalog/invalid · warning · score 4.6 · site

Clients and agents use it to discover the site’s APIs, so a malformed catalog hides them. It must be a linkset served as application/linkset+json.

Reported as

/.well-known/api-catalog is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/api-catalog.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.api-catalog.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.api-catalog.present": true
}

well-known/apple-app-site-association

The /.well-known/apple-app-site-association file is malformed

well-known/apple-app-site-association/invalid · warning · score 5.0 · site

Apple devices read it to open links in the app, so a wrong content type or a redirect makes iOS ignore it and links open in the browser instead.

Reported as

/.well-known/apple-app-site-association is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/apple-app-site-association.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.apple-app-site-association.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.apple-app-site-association.present": true
}

The /.well-known/assetlinks.json file is malformed

well-known/assetlinks/invalid · warning · score 5.0 · site

Android reads it to verify that the app owns the site’s links, so a malformed statement list stops app links from opening the app.

Reported as

/.well-known/assetlinks.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/assetlinks.json.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.assetlinks.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.assetlinks.present": true
}

well-known/auth-md

The /auth.md file is malformed

well-known/auth-md/invalid · hint · score 0.3 · site

Agents read it to learn how to authenticate with the site, and an empty file tells them nothing. It is a proposal.

Reported as

/auth.md is malformed: the value found

Fix

Correct each error the finding lists in /auth.md.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.auth-md.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.auth-md.present": true
}

well-known/carbon-txt-disclosure

carbon.txt lists disclosures past their valid_until date

well-known/carbon-txt-disclosure/expired · info · score 2.8 · site

An expired sustainability document no longer supports the claim it backs, which can mislead anyone relying on it. Judged only when the file exists.

Reported as

carbon.txt names disclosures past their valid_until: the value found

Fix

Replace each expired disclosure with its current document and valid_until.

Off by default; a group that runs carbon-txt turns it on.

References

For rule authors

Reads

  • site.origins.*.carbon-txt.expired

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.carbon-txt.present": true
}

well-known/carbon-txt

The carbon.txt file is malformed

well-known/carbon-txt/invalid · info · score 2.2 · site

Tools that read carbon.txt cannot rely on a file that departs from the syntax, so its disclosures may not be counted. Judged only when the file exists.

Reported as

carbon.txt is malformed: the value found

Fix

Correct carbon.txt against syntax 0.5.

Off by default; a group that runs carbon-txt turns it on.

References

For rule authors

Reads

  • site.origins.*.carbon-txt.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.carbon-txt.present": true
}

The site has no carbon.txt disclosing its sustainability documents

well-known/carbon-txt/missing · info · score 2.4 · site

Carbon accounting tools and green-hosting directories cannot find the site’s sustainability claims or the providers behind it.

Reported as

no carbon.txt discloses the site’s sustainability documents and providers

Fix

Publish /carbon.txt naming your sustainability disclosures and upstream providers.

Off by default; a group that runs carbon-txt turns it on.

References

For rule authors

Reads

  • site.origins.*.carbon-txt.present

Expects

{
  "const": true
}

carbon.txt was last updated more than a year ago

well-known/carbon-txt/stale · info · score 1.2–3.0 · site

A stale file suggests the sustainability claims in it may be out of date. Judged only when the file states a last_updated date.

Reported as

carbon.txt was last updated the value found days ago, more than a year

Fix

Review carbon.txt and bump last_updated.

Off by default; a group that runs carbon-txt turns it on.

References

For rule authors

Reads

  • site.origins.*.carbon-txt.age-days

Expects

{
  "maximum": 365
}

When

{
  "site.origins.*.carbon-txt.age-days": {
    "type": "number"
  }
}

well-known/change-password

Password pages exist but /.well-known/change-password leads nowhere

well-known/change-password/missing · warning · score 5.4 · site

Password managers and browsers use this address to send visitors straight to the page where they change a password. Judged only when a crawled page asks for a password.

Reported as

a crawled page asks for a password, but /.well-known/change-password leads nowhere

Fix

Serve a 302 or 303 redirect from /.well-known/change-password to the password-change page.

Off by default; a group that runs well-known, well-known:security turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.change-password.present

Expects

{
  "const": true
}

When

{
  "site.origins.*.well-known.change-password.required": true
}

well-known/gpc

The /.well-known/gpc.json file is malformed

well-known/gpc/invalid · warning · score 4.4 · site

Browsers and privacy tools read it to learn whether the site honours the Global Privacy Control signal, so a broken file leaves that choice unknown.

Reported as

/.well-known/gpc.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/gpc.json.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.gpc.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.gpc.present": true
}

well-known/llms-full-txt-markdown

The /llms-full.txt file has Markdown that renderers misread

well-known/llms-full-txt-markdown/invalid · info · score 2.0 · site

Broken Markdown such as a skipped heading level or a stray marker is read differently by renderers and agents, so the text may come out garbled. Judged only when the file exists.

Reported as

/llms-full.txt carries Markdown a renderer or agent misreads: the value found

Fix

Repair each Markdown defect listed in /llms-full.txt at the line and column the finding names.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.llms-full-txt.markdownlint

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.llms-full-txt.present": true
}

well-known/llms-full-txt

The /llms-full.txt file is malformed

well-known/llms-full-txt/invalid · info · score 2.4 · site

Agents that load the full text expect one H1 first, the right content type and working links, and may skip or misread a file that departs from it. Judged only when the file exists.

Reported as

/llms-full.txt is malformed: the value found

Fix

Open /llms-full.txt with its one H1, serve it as text/markdown, and repair or drop every link that does not answer 200.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.llms-full-txt.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.llms-full-txt.present": true
}

/llms.txt has no /llms-full.txt twin with the whole content

well-known/llms-full-txt/missing · hint · score 0.6 · site

An agent that wants the full text must fetch every listed page one by one. Only checked when /llms.txt exists, and only a hint.

Reported as

/llms.txt has no /llms-full.txt twin carrying the whole content

Fix

Publish /llms-full.txt beside /llms.txt with the full text of the pages it lists.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.llms-full-txt.present

Expects

{
  "const": true
}

When

{
  "site.origins.*.agents.llms-txt.present": true
}

well-known/llms-txt-markdown

The /llms.txt file has Markdown that renderers misread

well-known/llms-txt-markdown/invalid · info · score 2.2 · site

Broken Markdown such as a skipped heading level or a stray marker is read differently by renderers and agents, so the summary may come out garbled. Judged only when the file exists.

Reported as

/llms.txt carries Markdown a renderer or agent misreads: the value found

Fix

Repair each Markdown defect listed in /llms.txt at the line and column the finding names.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.llms-txt.markdownlint

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.llms-txt.present": true
}

well-known/llms-txt

The /llms.txt file is malformed

well-known/llms-txt/invalid · info · score 2.6 · site

Agents that read /llms.txt expect one H1 first, then sections and links, and may skip or misread a file that departs from it. Judged only when the file exists.

Reported as

/llms.txt is malformed: the value found

Fix

Rewrite /llms.txt as Markdown that opens with one H1 followed by its sections.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.llms-txt.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.llms-txt.present": true
}

The site has no /llms.txt summary for language models

well-known/llms-txt/missing · hint · score 0.7 · site

AI assistants that look for a short description of the site have nothing to read, so they rely on crawling the whole thing. It is a proposal, so only a hint.

Reported as

no /llms.txt summarises the site for language models

Fix

Add /llms.txt with an H1, a one-line description, and links to the site’s resources.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.llms-txt.present

Expects

{
  "const": true
}

well-known/markdown-source

Pages have no Markdown version for agents

well-known/markdown-source/missing · hint · score 0.5 · page

AI agents then have to strip HTML out of the page, which is costlier and error-prone. Judged only on pages that may be indexed, and only a hint.

Reported as

no Markdown source: neither a .md twin nor Accept: text/markdown answers with one

Fix

Add an index.md twin beside each page, or answer Accept: text/markdown with Markdown at the same URL.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • markdown.present

Expects

{
  "const": true
}

When

{
  "markdown.present": {
    "type": "boolean"
  },
  "robots.noindex": {
    "not": {
      "const": true
    }
  }
}

well-known/mcp-server-card

The /.well-known/mcp/server-card.json file is malformed

well-known/mcp-server-card/invalid · hint · score 0.6 · site

Agents read it to find and describe the site’s MCP server, so an unparsable card leaves the server undiscoverable. It is a draft format.

Reported as

/.well-known/mcp/server-card.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/mcp/server-card.json.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.mcp-server-card.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.mcp-server-card.present": true
}

well-known/nodeinfo

The /.well-known/nodeinfo file is malformed

well-known/nodeinfo/invalid · warning · score 3.8 · site

Fediverse servers read it to learn what software the site runs, so a malformed document hides the instance from directories and statistics.

Reported as

/.well-known/nodeinfo is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/nodeinfo.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.nodeinfo.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.nodeinfo.present": true
}

well-known/oauth-authorization-server

The /.well-known/oauth-authorization-server file is malformed

well-known/oauth-authorization-server/invalid · warning · score 5.6 · site

OAuth clients read it to find the server’s endpoints, so a missing member or an issuer on another origin makes authorisation fail or become unsafe.

Reported as

/.well-known/oauth-authorization-server is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/oauth-authorization-server.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.oauth-authorization-server.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.oauth-authorization-server.present": true
}

well-known/oauth-protected-resource

The /.well-known/oauth-protected-resource file is malformed

well-known/oauth-protected-resource/invalid · warning · score 5.4 · site

OAuth clients read it to learn which authorisation servers protect the resource, so a missing or foreign resource identifier breaks that discovery.

Reported as

/.well-known/oauth-protected-resource is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/oauth-protected-resource.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.oauth-protected-resource.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.oauth-protected-resource.present": true
}

well-known/okf

The /okf/index.md file is malformed

well-known/okf/invalid · hint · score 0.3 · site

Agents read it to load the site’s knowledge bundle, and without an okf_version in its front matter they cannot tell which format it follows. It is a proposal.

Reported as

/okf/index.md is malformed: the value found

Fix

Correct each error the finding lists in /okf/index.md.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.okf.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.okf.present": true
}

well-known/openid-configuration

The /.well-known/openid-configuration file is malformed

well-known/openid-configuration/invalid · warning · score 5.6 · site

Sign-in clients read it to find the identity provider’s endpoints, so a missing member or an issuer on another origin makes “sign in with” flows fail or become unsafe.

Reported as

/.well-known/openid-configuration is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/openid-configuration.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.openid-configuration.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.openid-configuration.present": true
}

well-known/schemamap

The /schemamap.xml file is malformed

well-known/schemamap/invalid · hint · score 0.3 · site

Agents read it to find the site’s structured-data endpoints, so a file without a schemamap root or the right type is ignored. It is a proposal.

Reported as

/schemamap.xml is malformed: the value found

Fix

Correct each error the finding lists in /schemamap.xml.

Off by default; a group that runs agents turns it on.

References

For rule authors

Reads

  • site.origins.*.agents.schemamap.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.agents.schemamap.present": true
}

well-known/security-txt-expires

The security.txt file expires, or is dated over a year ahead

well-known/security-txt-expires/invalid · warning · score 3.5–6.2 · site

An expired file signals that its contact may be out of date, and RFC 9116 asks for an expiry under a year away. Judged only when the file carries an Expires date.

Reported as

/.well-known/security.txt expires in the value found days, not within the next year

Fix

Set Expires in security.txt to a date less than a year away.

Off by default; a group that runs well-known, well-known:security turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.security-txt.days-left

Expects

{
  "minimum": 0,
  "maximum": 366
}

When

{
  "site.origins.*.well-known.security-txt.days-left": {
    "type": "number"
  }
}

well-known/security-txt

The security.txt file breaks the RFC 9116 format

well-known/security-txt/invalid · warning · score 5.6 · site

Tools and researchers that parse security.txt may miss the contact address, so reports do not reach the owner. Judged only when the file exists.

Reported as

/.well-known/security.txt breaks RFC 9116: the value found

Fix

Rewrite security.txt so each field is on its own line with Field: value.

Off by default; a group that runs well-known, well-known:security turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.security-txt.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.security-txt.present": true
}

The site has no security.txt for vulnerability reports

well-known/security-txt/missing · warning · score 5.8 · site

Researchers who find a flaw have no published way to tell the owner, so it may go unreported or be disclosed publicly instead.

Reported as

no /.well-known/security.txt tells researchers how to report a vulnerability

Fix

Publish /.well-known/security.txt with a Contact field and an Expires.

Off by default; a group that runs well-known, well-known:security turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.security-txt.present

Expects

{
  "const": true
}

well-known/suffix

Links use /.well-known/ names IANA has not registered

well-known/suffix/unknown · info · score 2.2 · site

A well-known path outside the registry may clash with another use of the name, and clients will not know what it means.

Reported as

the crawl links /.well-known/ suffixes IANA has not registered: the value found

Fix

Register the suffix with IANA, or remove the link if it is not a standard well-known path.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.unregistered

Expects

{
  "maxItems": 0
}

well-known/tdmrep

The /.well-known/tdmrep.json file is malformed

well-known/tdmrep/invalid · warning · score 4.2 · site

Crawlers that gather text for AI training read it to see whether the site reserves its rights, so a malformed file may be treated as no reservation.

Reported as

/.well-known/tdmrep.json is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/tdmrep.json.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.tdmrep.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.tdmrep.present": true
}

well-known/traffic-advice

The /.well-known/traffic-advice file is malformed

well-known/traffic-advice/invalid · warning · score 4.0 · site

Chrome reads it to decide whether to prefetch the site through a proxy, so a malformed file is ignored and the site’s wishes go unheard.

Reported as

/.well-known/traffic-advice is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/traffic-advice.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.traffic-advice.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.traffic-advice.present": true
}

well-known/webauthn

The /.well-known/webauthn file is malformed

well-known/webauthn/invalid · warning · score 5.4 · site

Browsers read it to let passkeys work across related sites, so an entry that is not an https origin makes sign-in with a passkey fail on those sites.

Reported as

/.well-known/webauthn is malformed: the value found

Fix

Correct each error the finding lists in /.well-known/webauthn.

Off by default; a group that runs well-known turns it on.

References

For rule authors

Reads

  • site.origins.*.well-known.webauthn.errors

Expects

{
  "maxItems": 0
}

When

{
  "site.origins.*.well-known.webauthn.present": true
}

Run spiderlint from a checkout

The container and a packed install both provide a spiderlint command. In a checkout, bin/spiderlint.js is that command: it runs dist/cli.js when a build exists and the TypeScript sources in src/ otherwise.

npm install
npm link
spiderlint --version
  • npm link symlinks the checkout into the global prefix. Node resolves the real path, which lies outside node_modules, so the sources run and every edit applies at once.
  • npm unlink --global spiderlint removes the link.

Install a packed build

npm pack
npm install --global ./spiderlint-*.tgz
  • prepack compiles src/ into dist/ with tsconfig.build.json, and postpack deletes dist/ again, so a checkout never keeps a stale build.
  • Node refuses to strip types for files under node_modules, which is why a package ships the build instead of the sources.

Makefile Targets

This document is generated by make m6e-generate-docs from the #@ help annotations and the projectfile tool manifest — hand edits are overwritten on the next regeneration.

Book

book-pdf

Print each built language book to dist/pdf/<name>-<lang>.pdf with headless Chrome

.makefile/container/scripts/book-pdf.sh dist/site dist/pdf ${identity.name}

Image: D9T_JS_TOOLS_IMAGE

book-stage

Stage one mdBook per language from the docs and the rendered page collections

pf-bridge book --output dist/book --rendered dist/pages

Image: PF_BRIDGE_IMAGE

mdbook-build

Build each staged language book into dist/site/<lang>/, the root sending to the default language

auto-book dist/book dist/site

Image: D9T_MDBOOK_IMAGE

Bootstrap

bootstrap

One-time project setup — submodules, custom bootstrap script, preflight probes

custom-bootstrap-script

Run .makefile/project/bootstrap.sh when the project ships one

ensure-ssh-agent

Ensure ssh-agent is running with keys loaded (no-op once per make tree)

m6e-cache-init

Create the host cache directories the projectfile declares as build mounts

preflight

Run every preflight probe — check the host has the tooling the project needs

preflight-b19

Verify buildah is installed (the b19 assembler drives it directly)

preflight-binfmt

Verify QEMU binfmt handlers are registered for cross-architecture builds

preflight-buildah

Verify buildah is installed

preflight-buildx-plugin

Verify the Docker Buildx plugin is installed

preflight-compose-plugin

Verify the Docker Compose plugin is installed

preflight-docker

Verify the container runtime CLI is installed

preflight-docker-version

Verify the container runtime version meets the minimum required

preflight-registries

Fail early when a registry variable is unset and still parked on the *.invalid sentinel

Build

build-push

Build the image and push it to the registry

build-push-with-b19

Build with the b19 direct-assembler and push to registry

Internal target

build-push-with-buildah

Build with buildah and push to registry

Internal target

build-push-with-buildx

Build with BuildX and push to registry

Internal target

build-with-b19

Build with the b19 direct-assembler (buildah, no Dockerfile)

Internal target

build-with-buildah

Build with buildah (Dockerfile-driven, daemonless)

Internal target

build-with-buildx

Build with BuildX using the shared BuildKit cache

Internal target

container-build

Build the container image with the configured backend

CI

act

Replay the generated GHA workflows locally via act (one goal: make act-<goal>)

ci-check

Verify the committed workflows match org.projectfile.ci — exits non-zero on drift

ci-dag

Run the projectfile’s CI DAG — its goals (or every sink), keeping going past failures

ci-generate

Regenerate committed GHA + Forgejo workflows from org.projectfile.ci

dive

Analyze Docker image layer efficiency with dive

install-hooks

Install the lefthook Git hooks from the committed config (dev machines only)

matrix-%

Run one target in every matrix cell, e.g. make matrix-container-build (no gates, no join)

matrix-sweep

Run the whole CI pipeline — one DAG pass without a matrix, or once per matrix cell then the join

Compose

dc-config

Print the fully resolved compose configuration

dc-diagnose

Post-mortem of every stack container — image, state, health, last logs

dc-down

Tear down the compose stack — stop and remove its containers and network

dc-down-v

Tear down the compose stack and delete its volumes

dc-logs

Show the compose services’ logs

dc-logs-f

Follow the compose services’ logs

dc-ps

List the compose stack’s containers

dc-pull

Pull fresh registry images for the stack — sidecars ride mutable tags compose will not re-pull

dc-restart

Restart the compose services

dc-start

Start the stopped compose services

dc-stop

Stop the running compose services

dc-top

Show the processes running inside the compose services

dc-up

Bring up the compose stack in the foreground

dc-up-d

Bring up the compose stack detached, dumping diagnostics on failure

w-dc-ps

Continuously refresh the compose service list (watch dc-ps)

Container

compose-config-check

Validate every compose file and the variables it references

.makefile/container/scripts/compose-config.sh

Image: host runner

compose-example-check

Validate the README’s example compose file

sh -c 'test ! -f .compose/example.yaml || docker compose --file .compose/example.yaml config --no-interpolate --quiet'

Image: DOCKER_CLI_IMAGE

configuration-capture

Table every environment variable the image sets into docs/configuration.d

.makefile/container/scripts/configuration-capture.sh --default-lang=${org.projectfile.i18n.default-language} ${org.projectfile.i18n.languages[]}

Image: host runner

configuration-names-check

Verify every environment table names the variables the Dockerfile sets, without the image

.makefile/container/scripts/configuration-capture.sh --names --default-lang=${org.projectfile.i18n.default-language} ${org.projectfile.i18n.languages[]}

Image: host runner

container-exec

Open a shell in the running Docker container

container-healthcheck

Run the healthcheck.d scripts inside the running container

container-inspect

Show the running container’s full metadata (Docker inspect)

container-lineage

Print the image lineage (ancestry) recorded in the running container

container-read-health

Print the running container’s current health status

container-read-only-probe

Restart the compose stack with the image on a read-only root and assert it turns healthy

container-report

Run report.d in the container and save its output to a report file

container-run

Run a fresh container from the built image (with mounted secrets) and shell into it

container-test

Run the test.d suite inside the running container

dockerfile-parse-buildah

Parse the Dockerfile with buildah, skipped when it is not installed

.makefile/container/scripts/dockerfile-parse.sh buildah

Image: host runner

dockerfile-parse-buildx

Parse the Dockerfile with docker buildx, skipped when it is not installed

.makefile/container/scripts/dockerfile-parse.sh docker

Image: host runner

hadolint

Lint the Dockerfile for best practices

hadolint Dockerfile

Image: HADOLINT_IMAGE

pages-capture

Capture each declared page collection catalog into docs/<name>.yaml

.makefile/container/scripts/pages-capture.sh --default-lang=${org.projectfile.i18n.default-language} ${org.projectfile.i18n.languages[]}

Image: host runner

pf-bridge-containerignore-check

Verify .containerignore still matches the projectfile

pf-bridge ignore .containerignore --check

Image: PF_BRIDGE_IMAGE

pf-bridge-containerignore-generate

Generate .containerignore from the projectfile

pf-bridge ignore .containerignore --force

Image: PF_BRIDGE_IMAGE

pf-bridge-dockerignore-check

Verify .dockerignore still matches the projectfile

pf-bridge ignore .dockerignore --check

Image: PF_BRIDGE_IMAGE

pf-bridge-dockerignore-generate

Generate .dockerignore from the projectfile

pf-bridge ignore .dockerignore --force

Image: PF_BRIDGE_IMAGE

usage-capture

Capture each declared –help into docs/usage.d

.makefile/container/scripts/usage-capture.sh --default-lang=${org.projectfile.i18n.default-language} ${org.projectfile.i18n.languages[]}

Image: host runner

Dependencies

apt-pin

Pin the built image’s apt package versions into common.apt.deps

check-outdated-apt

Report pinned apt versions that lag the image’s repositories (no writes)

Fetch

fetch

Download every pinned external dependency into the fetch cache

fetch-list

List the cached dependency downloads

fetch-wipe

Delete the fetch cache of pre-downloaded dependencies

Git

git-bug-clusters

Show files most touched by bugfix commits (defect clusters)

.makefile/core/scripts/git-maint.sh git-bug-clusters

Image: host runner

git-churn

Show the most changed files in the last year (churn hotspots)

.makefile/core/scripts/git-maint.sh git-churn

Image: host runner

git-clean-ignored

Delete ignored files and directories (Git clean -Xfd)

.makefile/core/scripts/git-maint.sh git-clean-ignored

Image: host runner

git-clean-untracked

Delete untracked files and directories (Git clean -fd)

.makefile/core/scripts/git-maint.sh git-clean-untracked

Image: host runner

git-contributors

Rank contributors all-time versus the last 6 months (bus factor)

.makefile/core/scripts/git-maint.sh git-contributors

Image: host runner

git-crisis

Show revert/hotfix/rollback commits from the last year (firefighting)

.makefile/core/scripts/git-maint.sh git-crisis

Image: host runner

git-disk-usage

Report repository disk usage

.makefile/core/scripts/git-maint.sh git-disk-usage

Image: host runner

git-fetch-prune

Fetch and prune deleted remote branches

.makefile/core/scripts/git-maint.sh git-fetch-prune

Image: host runner

git-fetch-prune-all

Fetch all remotes and prune

.makefile/core/scripts/git-maint.sh git-fetch-prune-all

Image: host runner

git-gc

Garbage-collect the repository

.makefile/core/scripts/git-maint.sh git-gc

Image: host runner

git-list-remotes

List configured remotes

.makefile/core/scripts/git-maint.sh git-list-remotes

Image: host runner

git-optimize

Run the full maintenance chain — gc, repack, pack-refs, reflog clean

.makefile/core/scripts/git-maint.sh git-optimize

Image: host runner

git-pack-refs

Pack loose refs into packed-refs

.makefile/core/scripts/git-maint.sh git-pack-refs

Image: host runner

git-prune-tags

Prune deleted remote tags locally

.makefile/core/scripts/git-maint.sh git-prune-tags

Image: host runner

git-pull-all

Pull all branches from every remote

.makefile/core/scripts/git-maint.sh git-pull-all

Image: host runner

git-push-all

Push all branches to every remote

.makefile/core/scripts/git-maint.sh git-push-all

Image: host runner

git-push-current

Push the current branch to every remote

.makefile/core/scripts/git-maint.sh git-push-current

Image: host runner

git-push-force-all

Force-push all branches to every remote — rewrites remote history

.makefile/core/scripts/git-maint.sh git-push-force-all

Image: host runner

git-rebuild-repo

Rewrite the object database via fast-export | fast-import

.makefile/core/scripts/git-maint.sh git-rebuild-repo

Image: host runner

git-reflog-clean

Expire and clean the reflog

.makefile/core/scripts/git-maint.sh git-reflog-clean

Image: host runner

git-remove-merged

Delete merged local branches

.makefile/core/scripts/git-maint.sh git-remove-merged

Image: host runner

git-repack

Repack objects into fewer packs

.makefile/core/scripts/git-maint.sh git-repack

Image: host runner

git-reset-current

Hard-reset the current branch to its upstream — discards local commits

.makefile/core/scripts/git-maint.sh git-reset-current

Image: host runner

git-sizer

Report Git repository size metrics and oversized objects

git-sizer

Image: D9T_GO_TOOLS_IMAGE

git-stats

Show commit count and the most active contributors

.makefile/core/scripts/git-maint.sh git-stats

Image: host runner

git-submodules-pull-all

Initialise and pull every Git submodule

git-velocity

Show commits per month across all history (project pulse)

.makefile/core/scripts/git-maint.sh git-velocity

Image: host runner

git-verify

Verify repository object integrity

.makefile/core/scripts/git-maint.sh git-verify

Image: host runner

git-worktree-check

Verify git resolves the work tree to this project directory

pf-bridge-gitattributes-check

Verify .gitattributes still matches the projectfile

pf-bridge gitattributes --check

Image: PF_BRIDGE_IMAGE

pf-bridge-gitattributes-generate

Generate .gitattributes from the projectfile

pf-bridge gitattributes --force

Image: PF_BRIDGE_IMAGE

pf-bridge-gitignore-check

Verify .gitignore still matches the projectfile

pf-bridge ignore .gitignore --check

Image: PF_BRIDGE_IMAGE

pf-bridge-gitignore-generate

Generate .gitignore from the projectfile

pf-bridge ignore .gitignore --force

Image: PF_BRIDGE_IMAGE

pf-scan-git

Import Git metadata into the projectfile

pf-bridge scan git

Image: PF_BRIDGE_IMAGE

Help

help

List every target by category — the terminal view of docs/how-to/MAKEFILE.md

m6e-commit-docs

Regenerate docs/how-to/MAKEFILE.md and commit the result

m6e-generate-docs

Regenerate docs/how-to/MAKEFILE.md from the #@ help annotations

I18n

i18n-check

Check translations for gaps

auto-i18n check

Image: D9T_MISC_TOOLS_IMAGE

i18n-extract

Extract translatable strings into the PO template

auto-i18n extract

Image: D9T_MISC_TOOLS_IMAGE

i18n-init

Create a new language (usage: make i18n-init M6E_I18N_LOCALE=uk)

auto-i18n init

Image: D9T_MISC_TOOLS_IMAGE

i18n-stats

Report translation coverage statistics

auto-i18n stats

Image: D9T_MISC_TOOLS_IMAGE

i18n-update

Merge new strings into existing translations

auto-i18n update

Image: D9T_MISC_TOOLS_IMAGE

Image

docker-push

Push the locally built image to the registry — the publish leaf of the CI DAG

image-history

Show the layer history of the built image

image-inspect

Show the built image’s full metadata (Docker image inspect)

image-list

List local Docker images matching this project

image-remove

Remove the locally built Docker image

image-warm

Pre-pull the base, tool and frontend images the projectfile names, so a later build runs offline

pages-check

Verify the committed page catalogs match the declared executable, else the built image, and every extras page names a catalog ID

usage-check

Verify the committed –help captures in docs/usage.d match the declared executable, else the built image

License

pf-bridge-license-check

Verify LICENSE still matches the projectfile

pf-bridge license --check

Image: PF_BRIDGE_IMAGE

pf-bridge-license-generate

Generate LICENSE from the projectfile

pf-bridge license --force

Image: PF_BRIDGE_IMAGE

reuse-annotate

Add missing licence headers to source files

reuse annotate

Image: D9T_PYTHON_TOOLS_IMAGE

reuse-download

Fetch the licence texts the project references

reuse download

Image: D9T_PYTHON_TOOLS_IMAGE

reuse-lint

Verify every file carries licence information (REUSE)

reuse lint

Image: D9T_PYTHON_TOOLS_IMAGE

reuse-spdx

Generate an SPDX bill of materials of the sources

reuse spdx

Image: D9T_PYTHON_TOOLS_IMAGE

Lint

auto-alex

Flag insensitive or inconsiderate wording

auto-alex

Image: D9T_JS_TOOLS_IMAGE

auto-checkov

Scan IaC for security misconfigurations

auto-checkov

Image: D9T_PYTHON_TOOLS_IMAGE

auto-html-validate

Validate HTML markup

auto-html-validate

Image: D9T_JS_TOOLS_IMAGE

auto-jsonlint

Lint JSON files

auto-jsonlint

Image: D9T_JS_TOOLS_IMAGE

auto-ls-lint

Enforce file and directory naming conventions

auto-ls-lint

Image: D9T_GO_TOOLS_IMAGE

auto-markdownlint

Lint Markdown structure and style

auto-markdownlint

Image: D9T_JS_TOOLS_IMAGE

auto-markdownlint-fix

Autofix markdownlint findings

auto-markdownlint --fix

Image: D9T_JS_TOOLS_IMAGE

auto-mdformat

Reformat Markdown files consistently

auto-mdformat

Image: D9T_PYTHON_TOOLS_IMAGE

auto-proselint

Flag common English prose style issues

auto-proselint

Image: D9T_PYTHON_TOOLS_IMAGE

auto-scc

Count lines of code and complexity

auto-scc

Image: D9T_GO_TOOLS_IMAGE

auto-shellcheck

Lint shell scripts for bugs and pitfalls

auto-shellcheck

Image: D9T_MISC_TOOLS_IMAGE

auto-textlint

Lint prose for style, grammar and correctness

auto-textlint

Image: D9T_JS_TOOLS_IMAGE

auto-textlint-fix

Autofix textlint findings

auto-textlint --fix

Image: D9T_JS_TOOLS_IMAGE

auto-yamllint

Lint YAML for syntax and style

auto-yamllint

Image: D9T_PYTHON_TOOLS_IMAGE

auto-zizmor-forgejo

Audit Forgejo Actions workflows for security issues

auto-zizmor --forge forgejo

Image: D9T_RUST_TOOLS_IMAGE

auto-zizmor-github

Audit GitHub Actions workflows for security issues

auto-zizmor --forge github

Image: D9T_RUST_TOOLS_IMAGE

buf-lint

Lint protobuf sources with buf

buf lint

Image: D9T_GO_TOOLS_IMAGE

commitlint

Lint the last commit message against the convention

commitlint --last

Image: D9T_JS_TOOLS_IMAGE

editorconfig-checker

Verify files comply with .editorconfig

editorconfig-checker

Image: D9T_GO_TOOLS_IMAGE

folderslint

Enforce folder naming conventions

folderslint

Image: D9T_JS_TOOLS_IMAGE

ignorelint-check

Check ignore files for issues

ignorelint

Image: IGNORELINT_IMAGE

ignorelint-fix

Autofix ignore-file issues

ignorelint --fix

Image: IGNORELINT_IMAGE

leasot

List todo and FIXME markers across the source

check-leasot

Image: D9T_JS_TOOLS_IMAGE

protolint

Lint protobuf sources with protolint

protolint lint .

Image: D9T_GO_TOOLS_IMAGE

shfmt

Format shell scripts with shfmt

shfmt --write .

Image: D9T_GO_TOOLS_IMAGE

spiderlint-%

Crawl and lint one site org.spiderlint.sites names, as spiderlint-SITE

vacuum

Lint the OpenAPI specification

vacuum lint openapi.yaml

Image: D9T_GO_TOOLS_IMAGE

yamlfmt

Format YAML files with yamlfmt

yamlfmt .

Image: D9T_GO_TOOLS_IMAGE

Maintenance

ci-cache-wipe

Purge this project’s m6e-run skip cache so every tool runs again

clean

Safe cleanup — stop every matrix variant’s stack; caches, reports, volumes and secrets stay

reports-wipe

Delete every report under the reports directory

wipe

Wipe — clean plus every destructive teardown the bolt-ons declare, reports last

Meta

m6e-commit

Commit bumped .makefile/ submodule pointers

m6e-update

Update the .makefile/ submodules, then regenerate docs/how-to/MAKEFILE.md

m6e-update-and-commit

Update and commit the .makefile/ submodules in one step

Internal target

Metadata

auto-cffr-validate

Validate CITATION.cff against the cffr schema

auto-cffr-validate

Image: D9T_R_TOOLS_IMAGE

Network

check-docker-network

Ensure the shared dev Docker network exists (no-op in the CI scenario)

remove-docker-network

Remove the Docker network

Node

auto-e18e-analyze

Analyze dependencies for ecosystem performance

auto-e18e-analyze

Image: D9T_JS_TOOLS_IMAGE

auto-e18e-migrate

Migrate to leaner dependency replacements

auto-e18e-migrate

Image: D9T_JS_TOOLS_IMAGE

auto-eslint

Lint JavaScript and TypeScript

auto-eslint --no-warn-ignored --max-warnings=${org.projectfile.eslint.max-warnings}

Image: D9T_JS_TOOLS_IMAGE

auto-eslint-fix

Autofix ESLint findings

auto-eslint --fix

Image: D9T_JS_TOOLS_IMAGE

auto-stylelint

Lint CSS and style sheets

auto-stylelint --allow-empty-input

Image: D9T_JS_TOOLS_IMAGE

auto-stylelint-fix

Autofix stylelint findings

auto-stylelint --fix

Image: D9T_JS_TOOLS_IMAGE

check-outdated-deps-npm

Check toolbox npm pins for upstream drift

.makefile/core/scripts/check-outdated.sh ' -> ' .makefile/core/scripts/check-outdated-deps.sh .container/*/deps/*.npm.deps

Image: NODE_TOOL_IMAGE

check-outdated-npm

Check for outdated npm dependencies

.makefile/core/scripts/check-outdated.sh "^Package +Current" npm outdated

Image: NODE_TOOL_IMAGE

cypress

Run end-to-end tests with Cypress

cypress run

Image: D9T_JS_TOOLS_IMAGE

depcheck

Find unused and missing npm dependencies

depcheck

Image: D9T_JS_TOOLS_IMAGE

howfat

Report the installed dependency weight of the project

howfat

Image: D9T_JS_TOOLS_IMAGE

jshint

Lint JavaScript with JSHint

jshint .

Image: D9T_JS_TOOLS_IMAGE

knip

Find unused files, dependencies and exports

knip

Image: D9T_JS_TOOLS_IMAGE

lesshint

Lint LESS files

lesshint .

Image: D9T_JS_TOOLS_IMAGE

lockfile-lint

Validate the npm lockfile for integrity and https resources

lockfile-lint --path package-lock.json --type npm --validate-https

Image: D9T_JS_TOOLS_IMAGE

npm-check

Report outdated and unused npm dependencies

npm-check

Image: D9T_JS_TOOLS_IMAGE

npm-format-check

Check the source is formatted by prettier

npm run format:check

Image: NODE_TOOL_IMAGE

npm-format-fix

Format the source with prettier

npm run format

Image: NODE_TOOL_IMAGE

npm-format-staged

Format the staged source with prettier

npx --no-install prettier --write --ignore-unknown

Image: NODE_TOOL_IMAGE

npm-install

Install node_modules from the lockfile for lint/analyze tools

npm ci

Image: NODE_TOOL_IMAGE

Link this checkout into ~/.local/bin, so bin entries run the working copy without sudo

sh -c 'NPM_CONFIG_PREFIX="$$HOME/.local" npm link'

Image: host runner

npm-lock-sync

Stamp the projectfile version into package-lock.json, offline

npm version ${identity.version} --no-git-tag-version --allow-same-version --ignore-scripts

Image: NODE_TOOL_IMAGE

npm-package-json-lint

Lint package.json files

npmPkgJsonLint .

Image: D9T_JS_TOOLS_IMAGE

npm-project-audit

Audit npm dependencies for vulnerabilities

auto-audit-ci

Image: D9T_JS_TOOLS_IMAGE

npm-test

Run the package.json test script

npm test --if-present

Image: NODE_TOOL_IMAGE

npm-typecheck

Run the package.json typecheck script

npm run typecheck --if-present

Image: NODE_TOOL_IMAGE

pf-bridge-audit-ci-check

Verify audit-ci.jsonc still matches the projectfile

pf-bridge vulnerabilities audit-ci.jsonc --check

Image: PF_BRIDGE_IMAGE

pf-bridge-audit-ci-generate

Generate audit-ci.jsonc from the projectfile

pf-bridge vulnerabilities audit-ci.jsonc --force

Image: PF_BRIDGE_IMAGE

pf-bridge-browserslistrc-check

Verify .browserslistrc still matches the projectfile

pf-bridge browserslist --check

Image: PF_BRIDGE_IMAGE

pf-bridge-browserslistrc-generate

Generate .browserslistrc from the projectfile

pf-bridge browserslist --force

Image: PF_BRIDGE_IMAGE

pf-bridge-npmignore-check

Verify .npmignore still matches the projectfile

pf-bridge ignore .npmignore --check

Image: PF_BRIDGE_IMAGE

pf-bridge-npmignore-generate

Generate .npmignore from the projectfile

pf-bridge ignore .npmignore --force

Image: PF_BRIDGE_IMAGE

pf-bridge-package-json-check

Verify package.json and the projectfile agree

pf-bridge npm --check

Image: PF_BRIDGE_IMAGE

pf-bridge-package-json-sync

Sync package.json with the projectfile

pf-bridge npm

Image: PF_BRIDGE_IMAGE

stryker

Run JavaScript mutation testing and enforce the minimum mutation score

auto-stryker

Image: D9T_JS_TOOLS_IMAGE

Projectfile

pf-bridge-ai-policy-md-check

Verify AI_POLICY.md still matches the projectfile

pf-bridge ai-policy --check

Image: PF_BRIDGE_IMAGE

pf-bridge-ai-policy-md-generate

Generate AI_POLICY.md from the projectfile

pf-bridge ai-policy --force

Image: PF_BRIDGE_IMAGE

pf-bridge-check

Verify every projectfile-derived file this project declares

pf-bridge check

Image: PF_BRIDGE_IMAGE

pf-bridge-citation-cff-check

Verify CITATION.cff and the projectfile agree

pf-bridge cff CITATION.cff --check

Image: PF_BRIDGE_IMAGE

pf-bridge-citation-cff-sync

Sync CITATION.cff with the projectfile

pf-bridge cff CITATION.cff

Image: PF_BRIDGE_IMAGE

pf-bridge-claudeignore-check

Verify .claudeignore still matches the projectfile

pf-bridge ignore .claudeignore --check

Image: PF_BRIDGE_IMAGE

pf-bridge-claudeignore-generate

Generate .claudeignore from the projectfile

pf-bridge ignore .claudeignore --force

Image: PF_BRIDGE_IMAGE

pf-bridge-code-of-conduct-md-check

Verify CODE_OF_CONDUCT.md still matches the projectfile

pf-bridge coc --check

Image: PF_BRIDGE_IMAGE

pf-bridge-code-of-conduct-md-generate

Generate CODE_OF_CONDUCT.md from the projectfile

pf-bridge coc --force

Image: PF_BRIDGE_IMAGE

pf-bridge-codeowners-check

Verify CODEOWNERS and the projectfile agree

pf-bridge codeowners --check

Image: PF_BRIDGE_IMAGE

pf-bridge-codeowners-sync

Sync CODEOWNERS with the projectfile

pf-bridge codeowners

Image: PF_BRIDGE_IMAGE

pf-bridge-contributing-md-check

Verify CONTRIBUTING.md still matches the projectfile

pf-bridge contributing --check

Image: PF_BRIDGE_IMAGE

pf-bridge-contributing-md-generate

Generate CONTRIBUTING.md from the projectfile

pf-bridge contributing --force

Image: PF_BRIDGE_IMAGE

pf-bridge-fragments-check

Verify FEATURES.md, ROADMAP.md and USAGE.md still match the docs/*.d fragments

pf-bridge fragments --check

Image: PF_BRIDGE_IMAGE

pf-bridge-fragments-generate

Assemble FEATURES.md, ROADMAP.md and USAGE.md from docs/*.d fragments

pf-bridge fragments --create-all

Image: PF_BRIDGE_IMAGE

pf-bridge-list

List available projectfile bridges

pf-bridge --list

Image: PF_BRIDGE_IMAGE

pf-bridge-readme-check

Verify the committed readme still matches the projectfile

pf-bridge readme --check

Image: PF_BRIDGE_IMAGE

pf-bridge-readme-generate

Generate README.md from the projectfile

pf-bridge readme --force

Image: PF_BRIDGE_IMAGE

pf-bridge-support-md-check

Verify SUPPORT.md still matches the projectfile

pf-bridge support --check

Image: PF_BRIDGE_IMAGE

pf-bridge-support-md-generate

Generate SUPPORT.md from the projectfile

pf-bridge support --force

Image: PF_BRIDGE_IMAGE

pf-forge-list

List forge metadata fields

pf-bridge forge list

Image: PF_BRIDGE_IMAGE

pf-forge-push

Push projectfile metadata to the forge

pf-bridge forge push

Image: PF_BRIDGE_IMAGE

pf-optimize

Optimize and rewrite the projectfile

pf-cli optimize

Image: PF_CLI_IMAGE

pf-optimize-sorted

Optimize the projectfile with sorted keys

pf-cli optimize --sorted

Image: PF_CLI_IMAGE

pf-scan

Scan the project and update the projectfile

pf-bridge scan all

Image: PF_BRIDGE_IMAGE

pf-scan-stacks

Detect the tech stack into the projectfile

pf-bridge scan stacks

Image: PF_BRIDGE_IMAGE

pf-validate

Validate the projectfile document

pf-cli validate

Image: PF_CLI_IMAGE

Publish

cosign-preflight

Prove the cosign signing key signs and verifies before anything is pushed

auto-cosign preflight

Image: D9T_GO_TOOLS_IMAGE

cosign-sbom-attest

Attest the SBOM to the published image with cosign

auto-cosign attest

Image: D9T_GO_TOOLS_IMAGE

cosign-sign

Sign the published image with cosign

auto-cosign sign

Image: D9T_GO_TOOLS_IMAGE

syft-sbom-image

Generate an SBOM of the live built image (syft)

auto-syft image $(M6E_IMAGE_FULLNAME)

Image: D9T_GO_TOOLS_IMAGE

Release

pre-release

Release the next candidate of the version the commits imply, X.Y.Z-rc.N

release

Stamp the version the commits imply into every derived file, commit and tag it signed, titled NOTE with NOTE_FILE as body — make --dry-run release prints the plan

release-major

Release the next major — the only way past 0.x

release-minor

Release the next minor, whatever the commits imply

release-notes

Print the notes of everything committed since the last final release, changing nothing

release-patch

Release the next patch, whatever the commits imply

svu-current

Show the version the latest Git tag carries

svu current --tag.mode=current --tag.prefix=${org.projectfile.release.tag-prefix}

Image: D9T_GO_TOOLS_IMAGE

svu-major

Show the next major version

svu major --tag.mode=current --tag.prefix=${org.projectfile.release.tag-prefix}

Image: D9T_GO_TOOLS_IMAGE

svu-minor

Show the next minor version

svu minor --tag.mode=current --tag.prefix=${org.projectfile.release.tag-prefix}

Image: D9T_GO_TOOLS_IMAGE

svu-next

Show the next version the commits since the last tag imply

svu next --v0 --tag.mode=current --tag.prefix=${org.projectfile.release.tag-prefix}

Image: D9T_GO_TOOLS_IMAGE

svu-patch

Show the next patch version

svu patch --tag.mode=current --tag.prefix=${org.projectfile.release.tag-prefix}

Image: D9T_GO_TOOLS_IMAGE

Secrets

check-secrets

Verify the legacy M6E_SECRETS list exists on disk, generating anything missing

generate-secrets

Generate every secret file declared in the legacy M6E_SECRETS list

secrets-provision

Materialise every secret declared in the projectfile into .secrets/

secrets-wipe

Remove the .secrets directory

Security

clamav-db-update

Refresh the shared ClamAV virus database

auto-clamav db-update

Image: D9T_MISC_TOOLS_IMAGE

clamav-scan-source

Scan project source for malware (clamav)

auto-clamav fs

Image: D9T_MISC_TOOLS_IMAGE

gitleaks

Scan Git history for leaked secrets

gitleaks detect --source . --redact --verbose

Image: D9T_GO_TOOLS_IMAGE

grype-db-update

Update the grype vulnerability database

grype db update

Image: D9T_GO_TOOLS_IMAGE

grype-scan-image

Scan the live built image for vulnerabilities (grype)

auto-grype image $(M6E_IMAGE_FULLNAME)

Image: D9T_GO_TOOLS_IMAGE

grype-scan-source

Scan project source for vulnerabilities (grype)

auto-grype

Image: D9T_GO_TOOLS_IMAGE

osv-scanner-db-update

Mirror the offline OSV databases for the fleet’s ecosystems

osv-db-mirror

Image: D9T_GO_TOOLS_IMAGE

osv-scanner-scan-source

Scan dependencies against the OSV database

auto-osv-scanner --offline-vulnerabilities

Image: D9T_GO_TOOLS_IMAGE

pf-bridge-grype-check

Verify .grype.yaml still matches the projectfile

pf-bridge vulnerabilities .grype.yaml --check

Image: PF_BRIDGE_IMAGE

pf-bridge-grype-generate

Generate .grype.yaml from the projectfile

pf-bridge vulnerabilities .grype.yaml --force

Image: PF_BRIDGE_IMAGE

pf-bridge-osv-check

Verify osv-scanner.toml still matches the projectfile

pf-bridge vulnerabilities osv-scanner.toml --check

Image: PF_BRIDGE_IMAGE

pf-bridge-osv-generate

Generate osv-scanner.toml from the projectfile

pf-bridge vulnerabilities osv-scanner.toml --force

Image: PF_BRIDGE_IMAGE

pf-bridge-security-md-check

Verify SECURITY.md still matches the projectfile

pf-bridge security --check

Image: PF_BRIDGE_IMAGE

pf-bridge-security-md-generate

Generate SECURITY.md from the projectfile

pf-bridge security --force

Image: PF_BRIDGE_IMAGE

pf-bridge-trivyignore-check

Verify .trivyignore still matches the projectfile

pf-bridge vulnerabilities .trivyignore --check

Image: PF_BRIDGE_IMAGE

pf-bridge-trivyignore-generate

Generate .trivyignore from the projectfile

pf-bridge vulnerabilities .trivyignore --force

Image: PF_BRIDGE_IMAGE

trivy-db-update

Update the trivy vulnerability database

auto-trivy db-update

Image: D9T_GO_TOOLS_IMAGE

trivy-scan-image

Scan the live built image for vulnerabilities (trivy)

auto-trivy image $(M6E_IMAGE_FULLNAME)

Image: D9T_GO_TOOLS_IMAGE

trivy-scan-source

Scan project source for vulnerabilities (trivy)

auto-trivy fs

Image: D9T_GO_TOOLS_IMAGE

Workflow

all

Default goal — runs M6E_ALL_GOAL (ci unless the project repoints it)

ci

Run the full CI pipeline locally — isolated ci- resources, matrix sweep, teardown on exit

Pipeline Targets

Generated from org.projectfile.ci.nodes — each is invocable as make <target>.

analyzed

Run the heavy analysis sweep (mutation testing, benchmarks)

Goal — lowered to its own CI workflow.

artifacts-are-ok

Verify every produced artifact — the image, the binaries, the site

audited

Re-scan the pinned dependencies and published artifacts for new vulnerabilities

Goal — lowered to its own CI workflow.

check-outdated

Report every pinned dependency that lags upstream

Goal — lowered to its own CI workflow.

databases-updated

Refresh the shared grype, trivy, osv and clamav databases

inputs-are-ok

Verify every build input — source, documentation and the projectfile

pre-commit

Run the commit gate — the fast syntax checks

pre-push

Run the push gate — every input check, including tests and the vulnerability scans

preflight-passed

Prove the run’s images, disk, keys and hosts are there before any build, test or scan starts

projectfile-is-ok

Verify every projectfile-derived file still matches the projectfile

projectfile-sync

Regenerate every projectfile-derived file

published

Build, test, scan and publish the release artifacts

Goal — lowered to its own CI workflow.

release-is-ready

Run the pseudo-CI pipeline locally — build, test and scan, without publishing

syntax-is-ok

Run the fast syntax checks — source lint, documentation lint and the projectfile projections

Español · Українська

Contributing to Spiderlint

Commit style Versioning Citation

First off, thanks for taking the time to contribute! ❤️

All types of contributions are encouraged and valued. See the Table of Contents for different ways to help and details about how this project handles them. Please make sure to read the relevant section before making your contribution. It will make it a lot easier for us maintainers and smooth out the experience for all involved.

And if you like the project, but just don’t have time to contribute, that’s fine. There are other easy ways to support the project and show your appreciation, which we would also be very happy about:

Table of Contents

I Have a Question

Before you ask a question, please check SUPPORT.md — it covers where to get help and how to ask effective questions.

When contributing to this project, you must agree that you have authored 100% of the content, that you have the necessary rights to the content and that the content you contribute may be provided under the project licence.

Reporting Bugs

Before Submitting a Bug Report

A good bug report shouldn’t leave others needing to chase you up for more information. Therefore, we ask you to investigate carefully, collect information and describe the issue in detail in your report. Please complete the following steps in advance to help us fix any potential bug as fast as possible.

  • Make sure you are on a supported version.
  • Determine if your bug is really a bug and not an error on your side e.g. using incompatible environment components/versions (Make sure that you have read the documentation. If you are looking for support, check SUPPORT.md).
  • To see if other users have experienced (and potentially already solved) the same issue you are having, check if there is not already a bug report existing for your bug or error in the bug tracker.
  • If you can, the following details would be useful:
    • Stack trace, if there is one
    • OS, Platform and Version (Windows, Linux, macOS, x86, ARM)
    • Version of the interpreter, compiler, SDK, runtime environment, package manager, depending on what seems relevant.
    • Possibly your input and the output
    • Can you reliably reproduce the issue? And can you also reproduce it with older versions?

How Do I Submit a Good Bug Report?

You must never report security related issues, vulnerabilities or bugs including sensitive information to the issue tracker, or elsewhere in public. Instead sensitive bugs must be sent by email to damian.buho@proton.me.

We use GitHub Issues to track bugs and errors. If you run into an issue with the project:

  • Open an Issue. (Since we can’t be sure at this point whether it is a bug or not, we ask you not to talk about a bug yet and not to label the issue.)
  • Explain the behavior you would expect and the actual behavior.
  • Please provide as much context as possible and describe the reproduction steps that someone else can follow to recreate the issue on their own. This usually includes your code. For good bug reports you should isolate the problem and create a reduced test case.
  • Provide the information you collected in the previous section.

Suggesting Enhancements

This section guides you through submitting an enhancement suggestion for Spiderlint, including completely new features and minor improvements to existing functionality. Following these guidelines will help maintainers and the community to understand your suggestion and find related suggestions.

Before Submitting an Enhancement

  • Make sure you are on a supported version.
  • Check whether the functionality is already covered, perhaps via an existing configuration — the documentation is one place to look.
  • Perform a search to see if the enhancement has already been suggested. If it has, add a comment to the existing issue instead of opening a new one.
  • Find out whether your idea fits with the scope and aims of the project.

How Do I Submit a Good Enhancement Suggestion?

Enhancement suggestions are tracked as GitHub Issues.

  • Use a clear and descriptive title for the issue to identify the suggestion.
  • Provide a step-by-step description of the suggested enhancement in as much detail as possible.
  • Describe the current behavior and explain which behavior you expected to see instead and why. At this point you can also tell which alternatives do not work for you.
  • Explain why this enhancement would be useful to Spiderlint users. You may also want to point out the other projects that solved it better and which could serve as inspiration.

Conventions

Improving The Documentation

Documentation lives at https://damian-buho.github.io/spiderlint/. Fixes, improvements, and new sections are all welcome — open a pull request against the documentation source.

See also

Español · Українська

Contributor Covenant Code of Conduct

Our Pledge

We pledge to make participation in Spiderlint welcoming, safe, and equitable for all. We are committed to fostering an environment that respects and promotes the dignity, rights, and contributions of all individuals, regardless of characteristics including race, ethnicity, caste, color, age, physical characteristics, neurodiversity, disability, sex or gender, gender identity or expression, sexual orientation, language, philosophy or religion, national or social origin, socio-economic position, level of education, or other status.

Encouraged Behaviours

  • Respecting the purpose of our community, our activities, and our ways of gathering.
  • Engaging kindly and honestly with others.
  • Respecting different viewpoints and experiences.
  • Taking responsibility for our actions and contributions.
  • Gracefully giving and accepting constructive feedback.
  • Committing to repairing harm when it occurs.
  • Behaving in other ways that promote and sustain the well-being of our community.

Restricted Behaviours

  • Harassment. Violating explicitly expressed boundaries or engaging in unnecessary personal attention after any clear request to stop.
  • Character attacks. Making insulting, demeaning, or pejorative comments directed at a community member.
  • Stereotyping or discrimination. Characterising anyone’s personality or behaviour on the basis of immutable identities.
  • Sexualisation. Behaving in a way that would generally be considered inappropriately intimate.
  • Violating confidentiality. Sharing or acting on someone’s personal information without permission.
  • Endangerment. Causing, encouraging, or threatening violence or other harm toward any person or group.
  • Behaving in other ways that threaten the well-being of our community.

Reporting

Instances of unacceptable behaviour may be reported to the community moderators at damian.buho@proton.me. All reports will be reviewed and investigated promptly and fairly. Community moderators are obligated to respect the privacy and security of the reporter of any incident.

Enforcement

Community moderators will follow this Enforcement Ladder when determining the consequences for any action they deem in violation of this Code of Conduct:

  1. Warning — for a single incident or short series of incidents: a private, written warning, with an opportunity to make repair.
  2. Temporarily Limited Activities — for a repeated incidence of a violation that previously resulted in a warning: a time-limited cooldown period during which the contributor reflects and adjusts behaviour.
  3. Temporary Suspension — for a pattern of repeated violation or a single serious violation: removal of access to community spaces for a fixed period, with conditions for return.
  4. Permanent Ban — for a pattern of repeated violations that other steps failed to resolve: permanent removal of access to all community spaces, tools, and communication channels.

Scope

This Code of Conduct applies within all community spaces — issues, pull requests, chat channels, mailing lists, in-person events — and also applies when an individual is officially representing Spiderlint in public spaces.

Attribution

This Code of Conduct is adapted from the Contributor Covenant, version 3.0, available at https://www.contributor-covenant.org/version/3/0/code_of_conduct.html.

The Contributor Covenant is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.

Español · Українська

Security Policy

Reporting a Vulnerability

Please do not report security vulnerabilities through public issues, discussions, or change requests.

Report them by emailing damian.buho@proton.me.

Please include as much of the following as you can — it helps us triage and resolve the report faster:

  • The type of issue (e.g. buffer overflow, SQL injection, cross-site scripting)
  • Affected version(s)
  • The impact of the issue, including how an attacker might exploit it
  • Step-by-step instructions to reproduce the issue
  • The location of the affected source code (tag, branch, commit, or direct URL)
  • Full paths of the source file(s) related to the issue
  • Any configuration required to reproduce the issue
  • Relevant log files, if possible
  • Proof-of-concept or exploit code, if possible

We aim to acknowledge reports within 30 days and to coordinate disclosure once a fix is available.

Encrypting a Report

If you would like to send us an encrypted report, follow these steps.

Import our public key:

gpg --keyserver keys.openpgp.org --recv-keys B64C122EE16C3746

Verify the fingerprint matches before you trust it:

gpg --fingerprint B64C122EE16C3746

The output must show:

6F19 7084 3C9E 8406 AD70  0467 B64C 122E E16C 3746

Encrypt your message to us:

gpg --encrypt --armor --recipient B64C122EE16C3746 message.txt

Bug Bounty

Spiderlint does not currently run a bug bounty programme. We still welcome responsibly disclosed reports — see the contact channel above.

Acknowledged Vulnerabilities

The following findings were reviewed and are intentionally suppressed (a fix depends on an upstream release, or the advisory does not apply to this project):

IDReason
CVE-2026-33671transitive picomatch dep of a pinned upstream npm release; fixable only upstream
CVE-2026-112366blocked by upstream; picomatch ships no fixed release yet
CVE-2026-123158not affected on Ubuntu, sshd on musl without PAM only (ubuntu.com/security/CVE-2026-123158)
GHSA-c2c7-rcm5-vvqjtransitive picomatch dep of a pinned upstream npm release; fixable only upstream
GHSA-fc5q-39xc-vjpfblocked by upstream; picomatch ships no fixed release yet

Español · Українська

Getting Support

Thanks for using Spiderlint! This document explains where to get help and how to ask effective questions.

Before You Ask

Please check these first — your question may already be answered:

Where to Ask

How to Ask a Good Question

To help us help you, please include:

  1. What you’re trying to do — the goal, not just the error.
  2. What you tried — code, commands, config.
  3. What happened vs. what you expected.
  4. Environment — OS, version of Spiderlint, runtime version.
  5. A minimal reproducible example, if possible.

Response Times

This is a community-maintained project. Maintainers respond when they can — typically within a few days, but there are no guarantees. Please be patient and respectful.

Paid support for Spiderlint is available:

Español · Українська

AI and LLM Policy

This document states Spiderlint’s policy on AI and LLM use — for people, and for the systems that read this repository.

We accept LLM-assisted contributions because reviewing a patch is our job either way. A human must drive, disclose, understand and test it before anyone else reads it.

Contributions made with AI assistance

Contributions made with AI/LLM assistance are welcome.

A human must drive, review, and submit every contribution — no autonomous agents.

These rules bind contributions from outside the project. Maintainers answer for their own practice — see How this project uses AI below.

Contributors must disclose when a contribution was made with AI/LLM assistance.

Every disclosure states:

  • the tool used, by name (Claude Code, Cursor, Amp …).
  • how much of the work the tool did.

Add this trailer to the commit message:

Assisted-by: <model or tool name>

Whoever submits the work still owes all of this:

  • Understand it. If you cannot explain the change, and how it meets the rest of the system, without the tool, do not submit it.
  • Review it yourself first. Read every line before asking anyone else to.
  • Run it. Code written for a platform you cannot exercise yourself is not tested, however correct it looks.
  • Edit it down. Generated text is verbose; trim it. Comments describing what the model did are noise to every future reader.
  • Answer as a human. Feedback from a human gets a reply from a human — never an automated one.
Contribution activityStance
ImagesProhibited
VideoProhibited

Allowed: Pull requests, Commit messages, Bug reports, Discussions, Code review, Security reports, Code, Code comments, Documentation, Translations, Prose, Audio, Refactoring, Bug fixing, Tests, Grammar tools, Merges, Releases, Triage.

When this policy is not followed

  • A first violation gets a warning.
  • The contribution is closed without review.

How this project uses AI

Internal activityWho decides
Pull requestsA human, with AI assistance
Code reviewA human, with AI assistance
MergesA human, with no AI involvement
ReleasesA human, with no AI involvement

Using this project’s content

  • search — this content may appear in AI-powered search results.
  • ai-input — this content may be used as input to an AI system at inference time.

Questions

Questions about this policy? Contact damian.buho@proton.me.