Matan · Security · Content

Secrets in page source (Security)

API keys and tokens must not appear in HTML or inline JavaScript.

Pass condition in our engine: No high-confidence secret patterns in the HTML.

This Security check is part of SEO-GEO scoring 3.0.0, last updated 2026-10-25. The number on this page is the developer scoring version. It is not an announcement that public release 3.0.0 is live. A free report shows the same pass condition for the pages it fetched.

1. Problem description

We scan conservatively for AWS keys, Google API keys, Stripe secret keys, GitHub tokens, PEM blocks and assignment-like secret= patterns. False positives are possible; false negatives are too. Rotate anything we flag.

2. Most common causes

  • A frontend .env bundled into the browser build.
  • A commented-out key left in the template.
  • Maps API key unrestricted in a script URL (related issue).

Test this check

We fetch only this URL (plus robots.txt / llms.txt at the domain root when the check needs them). We do not crawl the rest of the site like a full report.

3. How to fix it

  1. Move secrets to the server.
  2. Rotate exposed keys immediately.
  3. Use publishable/public keys only in the browser, with HTTP referrer restrictions.

Scoring rules for the scan of fetched pages are documented in methodology. Want every category at once? Generate a free report.

Get your free website audit

Enter a public URL. The scan reads up to 300 pages and returns an HTML report with scores for measured pillars and a recommendation for each finding. No sign-up required.