π What is HTTP and HTTPS?
What Is HTTP and HTTPS?
When you open a website, your browser needs a way to talk to the server.
That communication happens using a protocol.
Two common ones are HTTP and HTTPS.
HTTP is the normal way a browser talks to a website.
HTTPS is the secure version of that communication.
What Is HTTP?
HTTP stands for HyperText Transfer Protocol.
It is a set of rules used by browsers and servers to exchange data.
Example:
http://example.com
With HTTP, the browser sends a request to the server, and the server sends back a response.
Browser → Request → Server Browser ← Response ← Server
What Is the Problem with HTTP?
HTTP is not secure because the data is sent in plain text.
That means someone in the middle could potentially read the data.
username=rekha password=1234
What Is HTTPS?
HTTPS stands for HyperText Transfer Protocol Secure.
It is basically HTTP, but with encryption added using TLS/SSL.
Example:
https://example.com
With HTTPS, the data between the browser and the server is encrypted.
Browser → Encrypted Request → Server Browser ← Encrypted Response ← Server
What Does Encryption Mean?
Encryption means the data is scrambled so that other people cannot easily read it.
Instead of seeing:
username=rekha&password=1234
An attacker would see unreadable data:
a8sh2jsh72js9s8s82hsh2...
HTTP vs HTTPS
| Feature | HTTP | HTTPS |
|---|---|---|
| Security | No | Yes |
| Encryption | No | Yes |
| Default Port | 80 | 443 |
| Safe for passwords and payment data | No | Yes |
Simple Real-Life Example
Think of HTTP like sending a postcard. Anyone who sees it can read it.
Think of HTTPS like sending a locked box. Only the receiver can open it.
HTTPS = locked box
Why HTTPS Matters
- Protects usernames and passwords
- Protects payment and personal data
- Prevents tampering during transit
- Builds trust in websites
Final Takeaway
HTTPS sends the same data securely using encryption.
Today, almost every real website should use HTTPS.