What Is HTTPS and Why Your Site Needs It
A clear guide to HTTPS: what TLS encryption protects, why it matters for privacy, trust and SEO, how HSTS and redirects work, and how to verify yours.
HTTPS is the secure version of the protocol that delivers web pages, and today it is not optional — it is the baseline every site is expected to meet. In short, HTTPS is HTTP carried over an encrypted TLS connection, which protects the privacy and integrity of everything sent between a visitor's browser and your server, and proves the browser is genuinely talking to your site. This guide explains what HTTPS protects, why it matters for privacy, trust and SEO, how HSTS and redirects lock it in, and how to verify your site is fully secure.
It builds directly on what is an SSL certificate and how to check yours — the certificate is the credential, HTTPS is the protocol that uses it.
HTTP vs HTTPS: what actually changes
Plain HTTP sends data in the clear. Every request and response — the pages, the form data, the cookies — travels as readable text across every network and device between the visitor and your server. Anyone positioned on that path (a shared Wi-Fi network, an internet provider, a compromised router) can read it, log it, or modify it, and the browser has no way to confirm it is even talking to the real site rather than an impostor.
HTTPS wraps that same HTTP exchange in TLS encryption authenticated by a certificate. The content transferred is identical; what changes is that it is now private, tamper-evident, and verified. Mozilla's MDN documentation describes HTTPS simply as HTTP over TLS — the protocol you already know, secured.
| Aspect | HTTP | HTTPS |
|---|---|---|
| Data in transit | Plain text, readable by anyone on the path | Encrypted (TLS) |
| Tampering | Page can be altered undetected | Tampering is detectable |
| Identity | No proof of who you connect to | Verified by a certificate |
| Browser label | "Not Secure" | Padlock (secure) |
| Modern features (HTTP/2, many APIs) | Often unavailable | Available |
| SEO | No benefit; trust harm | Lightweight ranking signal since 2014 |
The three things TLS protects
It helps to be precise about what HTTPS guarantees, because the three properties solve three different problems:
- Confidentiality. The data is encrypted, so an eavesdropper on the network sees scrambled bytes, not your visitors' passwords, card numbers, search terms or form entries. This is the property most people think of.
- Integrity. The connection is tamper-evident, so a third party cannot quietly modify the page in transit — for example, injecting adverts, tracking, or malware into your pages, which network operators and attackers have historically done to HTTP traffic. With HTTPS, such modification breaks the connection rather than going unnoticed.
- Authentication. The certificate proves you are connected to the domain you intended, not an impostor performing a man-in-the-middle attack. Without it, encryption alone would be pointless — you could be securely connected to the wrong party.
All three together are why HTTPS is the foundation of trust on the web, and why the absence of any one of them is a real risk, not a theoretical one.
Why your site needs HTTPS
Beyond the security properties, there are concrete, practical reasons HTTPS is mandatory in practice:
User trust and the "Not Secure" label. Browsers now mark plain HTTP pages as "Not Secure" in the address bar, and warn prominently when users enter data on them. For any site that asks for a login, a payment, or even an email address, that label actively deters visitors and erodes conversions.
Privacy and safety for visitors. Your users deserve to browse and transact without their data being readable or their pages being tampered with. On public networks especially, HTTP exposes them to real interception.
SEO. Google confirmed back in 2014 that HTTPS is a lightweight ranking signal. The direct effect is small, but it is real and free to capture — and the indirect effects are larger: avoiding the "Not Secure" trust penalty, and unlocking the performance features below.
Modern web features require it. HTTP/2 and HTTP/3, which speed up page loading, generally require HTTPS in practice. So do many modern browser APIs (service workers, geolocation, the clipboard, and more) which browsers restrict to "secure contexts". Staying on HTTP locks you out of performance and capability improvements, not just security.
Tampering prevention. As noted, HTTP traffic can be — and has been — modified in transit to inject ads or malicious code. HTTPS removes that entire avenue.
In short, the question is no longer "should my site use HTTPS?" but "is my site's HTTPS set up correctly and enforced everywhere?"
Getting HTTPS: free certificates
A common old objection — cost and complexity — no longer applies. Let's Encrypt, a free, non-profit certificate authority, issues certificates at no charge and is designed for automated issuance and renewal. Most hosting platforms and CDNs can enable a Let's Encrypt certificate with a click or automatically, and a free Domain Validation certificate provides exactly the same encryption strength as a paid one. There is no longer any cost barrier to securing a site. (For the certificate details — types, chain of trust, checking — see the SSL certificate guide.)
Enforcing HTTPS: redirects and HSTS
Having a certificate is not enough; you must make sure visitors actually use HTTPS, since old links and typed http:// addresses still point at the insecure version.
301 redirect from HTTP to HTTPS. Configure your server to permanently redirect every http:// request to its https:// equivalent. A 301 (permanent) redirect both sends users to the secure version and tells search engines the HTTPS URL is canonical, consolidating SEO value on it. This is the first step and applies to every page.
HSTS (HTTP Strict Transport Security). A redirect still leaves a tiny gap: the very first request a browser makes can be over HTTP before the redirect fires, and an attacker could intercept that. HSTS closes it. It is a response header that instructs the browser to only ever connect to your domain over HTTPS, skipping the insecure request entirely on every subsequent visit. Roll it out carefully: confirm HTTPS works everywhere (including subdomains), start with a shorter max-age, and increase it once you are confident — because once a browser has seen HSTS, it will refuse HTTP for that domain for the stated period. HSTS appears in the broader HTTP security headers guide alongside the other protective headers.
Mixed content: the common gotcha
Here is the issue that trips up otherwise-secure sites. Mixed content occurs when a page served over HTTPS loads some of its resources — images, scripts, stylesheets, fonts — over insecure HTTP. The page has a certificate and starts secure, but those insecure sub-resources undermine it: an attacker could tamper with an HTTP-loaded script, and browsers respond by either blocking the resource (often breaking functionality) or downgrading the padlock to a "not fully secure" warning.
The fix is to ensure every resource the page references is requested over HTTPS — update hard-coded http:// URLs in templates, content and third-party embeds. The CSP directive upgrade-insecure-requests can help by asking the browser to upgrade such requests automatically. Mixed content is the most common reason a site "has SSL" yet still does not show a clean, fully secure padlock, so it is worth checking explicitly rather than assuming a certificate alone is sufficient.
How to verify your HTTPS is correct
Run through these checks:
- Padlock and certificate — load the site over HTTPS and click the padlock; the certificate should be valid and for the correct domain (see the SSL certificate guide for the details).
- HTTP redirects to HTTPS — visit the
http://version and confirm it 301-redirects tohttps://. From a terminal,curl -I http://example.comshows the redirect status and target. - No mixed content — open DevTools → Console and look for mixed-content warnings; the padlock state in the address bar also tells you whether anything insecure loaded.
- HSTS present — check the response headers (DevTools → Network, or
curl -I https://example.com) forStrict-Transport-Security. - SSL Labs — for a graded view of the TLS configuration and protocol support, run the domain through the SSL Labs SSL Test.
A broader audit ties this together: StackOptic reports HTTPS status, certificate validity and security headers alongside performance and SEO, so you can confirm the whole secure-delivery picture at once. For locating the infrastructure behind a domain, see how to find out where a website is hosted.
Common mistakes
- A certificate installed but HTTP not redirected, so the insecure version is still reachable and indexable.
- Mixed content quietly weakening the padlock on otherwise-secure pages.
- HSTS set too aggressively too early, locking users out if a subdomain is not yet on HTTPS.
- Forgetting subdomains —
example.comis secure butblog.example.comis still on HTTP. - Assuming HTTPS makes the site trustworthy — it secures the connection, not the honesty of the business; judging that needs the wider safety checks.
Go deeper
- The credential behind it: what is an SSL certificate and how to check yours.
- Harden further: HTTP security headers explained.
- HTTPS is necessary, not sufficient: is this website safe?
- The infrastructure layer: how to find out where a website is hosted.
Want HTTPS, certificate and header health checked in one place? Analyse any URL with StackOptic — free, no sign-up.
Frequently asked questions
What is HTTPS?
HTTPS (Hypertext Transfer Protocol Secure) is the standard HTTP protocol running over an encrypted TLS connection. It does the same job as HTTP — transferring web pages and data between a browser and a server — but wraps it in encryption. That gives three guarantees: confidentiality (others cannot read the data), integrity (others cannot alter it undetected), and authentication (you can verify you are connected to the real site, via its certificate). HTTPS is what the padlock in your address bar represents.
What is the difference between HTTP and HTTPS?
The difference is encryption and identity. HTTP sends everything in plain text, so anyone on the network path can read or modify it, and there is no proof of who you are talking to. HTTPS carries the same data over a TLS-encrypted connection authenticated by a certificate, so the data is private, tamper-evident, and verified as coming from the claimed domain. Functionally they transfer the same content; HTTPS just protects it in transit.
Does HTTPS help SEO?
Yes, in two ways. Google confirmed in 2014 that HTTPS is a lightweight ranking signal, so it offers a small direct benefit. More importantly, HTTPS avoids the harm of being labelled 'Not Secure' by browsers, which damages trust and conversions, and it is a prerequisite for HTTP/2 and many modern browser features that improve performance and page experience — which feed into search signals indirectly. There is no SEO reason to stay on HTTP.
What is HSTS and do I need it?
HSTS (HTTP Strict Transport Security) is a response header that tells the browser to only ever connect to your domain over HTTPS, even if a user types http:// or follows an old link. It closes the small window where an initial insecure request could be intercepted and downgraded. You should add it once HTTPS works reliably everywhere, starting with a shorter max-age, then increasing it after confirming all subdomains and pages work over HTTPS.
What is mixed content and why does it matter?
Mixed content is when a page served over HTTPS loads some resources — images, scripts, stylesheets — over insecure HTTP. It undermines the security of the page: insecure scripts can be tampered with, and browsers often block them or downgrade the padlock to a warning. The fix is to ensure every resource the page references uses HTTPS. Mixed content is a common reason a site has a certificate yet still does not show a clean, secure padlock.
Analyse any website with StackOptic
Get the full technology stack, performance, security and SEO report in seconds — free.
Analyse a websiteRelated articles
How to Check a Website for Malware
A practical guide to checking any website for malware: the free external scanners to use, the signs of infection, server-side checks, and what to do next.
What Is a Data Breach and How to Respond
A plain-English guide to data breaches: what counts as one, the common causes, a step-by-step incident-response plan, the GDPR 72-hour rule, and prevention.
How to Protect Your Website from Bots and Scrapers
Not all bots are bad. Tell good crawlers from abusive scrapers, spot the signals of bot traffic, and layer rate limiting, CAPTCHA, a WAF and bot management.