HTTP (Hypertext Transfer Protocol) ve HTTPS (HTTP Secure) , web üzerinde veri iletimi için kullanılan protokollerdir. HTTPS, HTTP'nin güvenli versiyonudur.
Özellikleri:
http
GET /index.html HTTP/1.1
Host: www.hedef.com
User-Agent: Mozilla/5.0
Accept: text/html
HTTP Response Örneği:
http
HTTP/1.1 200 OK
Date: Mon, 23 May 2025 22:38:34 GMT
Content-Type: text/html
Content-Length: 1234
<html>
<body>Merhaba Dünya</body>
</html>
Özellikleri:
# SSL/TLS sertifika kontrolü
openssl s_client -connect google.com:443
# HTTP/HTTPS header kontrolü
curl -I http://hedef.com
curl -I https://hedef.com
# SSL/TLS versiyon kontrolü
openssl s_client -connect google.com:443 -tls1_2
openssl s_client -connect google.com:443 -tls1_3
# HSTS kontrolü
curl -I https://hedef.com | grep -i "strict-transport-security"
HTTP (Hypertext Transfer Protocol)
HTTP, web sunucuları ile tarayıcılar arasında veri iletimi için kullanılan protokoldür.Özellikleri:
- Port 80
- Şifreleme yok
- Veri düz metin olarak iletilir
- Hızlı
- Güvensiz
http
GET /index.html HTTP/1.1
Host: www.hedef.com
User-Agent: Mozilla/5.0
Accept: text/html
HTTP Response Örneği:
http
HTTP/1.1 200 OK
Date: Mon, 23 May 2025 22:38:34 GMT
Content-Type: text/html
Content-Length: 1234
<html>
<body>Merhaba Dünya</body>
</html>
HTTPS (HTTP Secure)
HTTPS, HTTP'nin SSL/TLS ile şifrelenmiş versiyonudur.Özellikleri:
- Port 443
- SSL/TLS şifreleme
- Veri şifrelenir
- Yavaş (şifreleme yükü)
- Güvenli
- SSL/TLS: Veri şifreleme
- Sertifika: Kimlik doğrulama
- HSTS: Zorunlu HTTPS
HTTP vs HTTPS Karşılaştırması
| Özellik | HTTP | HTTPS |
|---|---|---|
| Port | 80 | 443 |
| Şifreleme | Yok | SSL/TLS |
| Güvenlik | Düşük | Yüksek |
| SEO | Düşük | Yüksek |
| Sertifika | Gerekmez | Gerekli |
| Hız | Hızlı | Yavaş |
| Veri | Düz metin | Şifreli |
HTTPS Kontrol Komutları
bash# SSL/TLS sertifika kontrolü
openssl s_client -connect google.com:443
# HTTP/HTTPS header kontrolü
curl -I http://hedef.com
curl -I https://hedef.com
# SSL/TLS versiyon kontrolü
openssl s_client -connect google.com:443 -tls1_2
openssl s_client -connect google.com:443 -tls1_3
# HSTS kontrolü
curl -I https://hedef.com | grep -i "strict-transport-security"
🔒 Bu içeriği görmek için giriş yapın