Cleartext HTTP links

Cleartext HTTP links

Description

If the browser requests a page over HTTP, the connection is unencrypted. For a known HSTS site, the browser can upgrade the URL to HTTPS before sending the request.

Potential impact

Someone on the network path can read data sent with the request or alter the page returned.

Remediation

Confirm that the same page is available over HTTPS, then link directly to its HTTPS URL in href. HTTPS protects the connection. Check that you also trust the destination.

Examples

Before

html
<a href="http://example.com">Example Link</a>

After

html
<a href="https://example.com">Example Link</a>

References