DEV Community

StructMint
StructMint

Posted on

Pure-HTTP XML Sitemap Diff, TLS Expiry & OWASP Security Header Audit (512 MB, n8n/Make)

Most recurring technical site audits fail in one of two ways: either you spin up a heavy headless browser just to check HTTP status codes and security headers (slow and expensive), or you run a basic XML sitemap fetcher that tells you what URLs exist today without tracking what disappeared since last Monday.

I built a lightweight 512 MB, pure-HTTP tool (LIMITED_PERMISSIONS, zero browser overhead, zero proxy fees) that combines recursive XML sitemap diffing with crawl health, TLS expiry, OWASP security header grading, and technical SEO metadata in one scheduled pass.

What one scheduled run checks

  1. Recursive XML & .xml.gz Sitemap Discovery: Reads robots.txt Sitemap: entries (or a direct sitemap URL), expands nested <sitemapindex> files, decompresses .xml.gz sitemaps, and respects wildcard robots.txt Disallow: rules.
  2. Stateful Sitemap Diff Watch Mode (watchMode: true): Saves complete sitemap inventories in your own user-scoped Named Key-Value Store (90-day retention) and classifies URLs as ADDED, REMOVED, LASTMOD_CHANGED, or PRESENT. When onlyChanges: true and nothing changed, the run emits 0 dataset items so downstream Slack/Jira alerts stay quiet.
  3. Complete-Scan Integrity: If a sitemap crawl hits safety limits (discoveryComplete: false), REMOVED alerts are suppressed and existing complete baselines are never overwritten.
  4. Crawl Health, TLS Expiry & 6 OWASP Security Headers: Tracks redirect chains (301/302/307/308), flags broken 404/5xx URLs, runs a native TLS handshake per HTTPS host (tlsVersion, tlsDaysRemaining, issuer), grades 6 OWASP headers (Strict-Transport-Security, Content-Security-Policy, X-Content-Type-Options, X-Frame-Options, Referrer-Policy, Permissions-Policy) on a 0–100 (A–F) scale, and extracts <link rel="canonical">, <meta name="robots">, hreflang count, and JSON-LD @type lists.
  5. Honest WAF reporting: Never attempts to bypass bot challenges — returns wafBlocked: true transparently on HTTP 403/429 or firewall challenge responses.

Live benchmark on Apify Cloud (512 MB)

Tested directly against https://docs.apify.com/sitemap.xml on 2026-12-06:

Check Measured result
Sitemap URLs discovered 4,645 URLs (discoveryComplete: true)
Full audit run (5 URLs, TLS + OWASP + SEO) HTTP 200, 283 ms sample TTFB, TLSv1.3 (195 days cert left), OWASP grade D, ~$0.00014 cloud compute
Unchanged Watch run (onlyChanges: true) 0 dataset items emitted (unchangedDomains: 1), ~$0.00012 cloud compute

Pricing & ready-to-import automation templates

Billed strictly through Apify Pay-Per-Event with one primary unit (1 audited URL = 1 dataset item):

  • Run start: $0.00005
  • Per audited URL: $0.0045 (Free) -> $0.0040 (Bronze) -> $0.0035 (Silver) -> $0.0030 (Gold+)
  • Minimum configurable cap: $0.01
  • Unchanged Watch runs (onlyChanged: true): emit 0 dataset items (only $0.00005 start applies)

Ready to inspect or import:

How are you automating weekly broken-link, TLS expiry, and security header checks across your production domains right now?

Top comments (0)