Description

This check ensures that every website on a Hostinger hosting plan redirects HTTP requests to HTTPS (Force HTTPS), so visitors always use an encrypted connection even when they type or follow an http:// link. Each website is evaluated separately.

Rationale

An SSL certificate alone does not stop visitors from using the unencrypted http:// version of the site. Without a redirect, logins and form data can still be sent in plain text, and attackers can downgrade connections. Forcing HTTPS makes every visit encrypted.

Impact

  • An active SSL certificate is required before HTTPS can be forced

  • WordPress sites must use https:// in their WordPress Address and Site Address, or redirect loops and mixed content can occur

Default Value

HTTPS is forced by default as soon as an SSL certificate is installed on a Web or Cloud hosting plan.

Pre-Requisites

  • Access to hPanel for the account that owns the hosting plan

  • An active SSL certificate on the website (see hostinger_hosting_website_ssl_installed)

Remediation

Test Plan

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to Websites and click Dashboard next to the website.

  3. In the sidebar, select Security → SSL.

  4. Open the ⋮ menu next to the domain. If it offers Force HTTPS (instead of Unforce HTTPS), HTTPS is not forced and the check fails for this website.

  5. Repeat for each website.

Implementation Steps

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to Websites and click Dashboard next to the website.

  3. In the sidebar, select Security → SSL.

  4. Click the ⋮ button next to the domain or subdomain and select Force HTTPS.

  5. Open http://<domain> in a private browser window and confirm it redirects to https://.

Backout Plan

  1. Log in to hPanel at https://hpanel.hostinger.com.

  2. Go to Websites and click Dashboard next to the website.

  3. In the sidebar, select Security → SSL.

  4. Click the ⋮ button next to the domain and select Unforce HTTPS.

Note: Unforcing HTTPS lets visitors use the unencrypted version of the site again; do this only if strictly needed.

Reference