Compliance & Data Privacy
medium Severity
Free Check

Data Leaks in HTML Comments

Inspects HTML source code for un-stripped developer comments (<!-- TODO: ... -->) leaking internal paths or credentials.

Test Your Website for Data Leaks in HTML Comments

Run this check along with 90+ automated tests across your domain.

Why It Matters

Comments frequently reveal developer names, internal JIRA ticket keys, staging server URLs, or passwords.

How We Check This

We extract all HTML comments <!-- ... --> and analyze them for sensitive keywords and internal network addresses.

How to Fix & Implement

Copy-paste configuration blocks tailored for your web server or edge proxy.

nginx snippet
Enable HTML minification to strip comments in production builds

Frequently Asked Questions

Does HTML minification remove comments?

Yes, standard production bundlers strip all non-conditional HTML comments.