Matan · Security · Content

HTML comment leaks

Comments that mention passwords, TODOs with internals, or staging hosts should not ship to production.

Pass condition in our engine: HTML comments do not match our sensitive-keyword list.

1. Problem description

We look for keywords like password, api_key, todo, localhost, staging in HTML comments. Developers paste tickets into templates. This is info-severity in the full report but still worth cleaning.

2. Most common causes

  • Build does not strip comments.
  • A designer left “TODO: remove before launch”.

3. How to fix it

  1. Strip comments in the production build.
  2. Never put secrets in comments — they are not private.

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.

Scoring rules for the full site crawl are documented in methodology. Want every category at once? Generate a free report.

Get your free SEO & GEO report

Enter your URL and receive a full audit with scoring and recommendations. No sign-up required.