securitytxt-sentinel
validate security.txt
Validate security.txt (RFC 9116) and robots.txt for your domains or local files: missing or expired Expires, Contact and Canonical problems, wrong location, content type, PGP signature, redirects.
- 15/week on npm
- 2★
- MIT
- v1.0.1
- Security & Headers
npx securitytxt-sentinelRead the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)
securitytxt-sentinel
From the README
securitytxt-sentinel fetches /.well-known/security.txt (falling back to the legacy /security.txt) and /robots.txt for each domain and checks them against RFC 9116 and common robots.txt mistakes. It catches the classic failure: a security.txt whose Expires passed months ago, so researchers are told to ignore it. Local files can be linted too, so a broken security.txt never ships. CLI, library and GitHub Action. Node.js 18+, zero runtime dependencies.
npx securitytxt-sentinel example.com www.example.org
npx securitytxt-sentinel example.com --no-robots --warn-days 60 --fail-on medium
npx securitytxt-sentinel public/.well-known/security.txt --canonical https://example.com/.well-known/security.txt
npx securitytxt-sentinel public/robots.txtWhere we use it
Related packages
Security & Headers
- csp-forge
generate a strict CSP
- bundle-secret-guard
scan bundles for secrets
- header-sentinel
grade security headers
- sri-sentinel
check subresource integrity