Skip to content
statance
MenuClose
← All ports

Port 80: HTTP

Low risk

Port 80 is unencrypted HTTP, the default port for websites. Most sites now use it only to redirect visitors to HTTPS on port 443. It is normally meant to be reachable from the internet.

Port
80
Protocol
TCP
Service
HTTP
Expose to internet?
Yes, usually
Also used by
nginx, Apache, Caddy, IIS, Traefik

Is port 80 safe to open?

Exposing port 80 is normal for any website. Traffic on it is not encrypted, so it should not carry logins or personal data. Keeping it open lets browsers that type a bare domain reach the HTTPS redirect, and Let’s Encrypt HTTP-01 validation needs it.

How to secure HTTP

  • Redirect all HTTP requests to HTTPS with a 301.
  • Send a Strict-Transport-Security header from the HTTPS site so browsers stop using port 80.
  • Remove default welcome pages and server version banners (nginx server_tokens off;, Apache ServerTokens Prod).
  • Keep the web server and anything behind it patched.

Check if port 80 is open

Linux: what is listening on this port

sudo ss -tlpn | grep ':80 '

Windows (PowerShell): what is listening

Get-NetTCPConnection -LocalPort 80 -State Listen | Select-Object LocalAddress, OwningProcess, @{n='Process';e={(Get-Process -Id $_.OwningProcess).Name}}

From another machine: is it reachable

nc -zv HOST 80 # or nmap -p 80 HOST # Windows Test-NetConnection HOST -Port 80

Test the HTTP service itself

curl -sI http://HOST/

Open port 80 in the firewall

ufw (Ubuntu, Debian)

sudo ufw allow 80/tcp

firewalld (RHEL, Rocky, Alma, Fedora)

sudo firewall-cmd --permanent --add-port=80/tcp sudo firewall-cmd --reload

Windows Firewall (PowerShell, as Administrator)

New-NetFirewallRule -DisplayName "Allow 80/TCP" -Direction Inbound -Protocol TCP -LocalPort 80 -Action Allow

Monitor port 80

Add a TCP port monitor for 80 and Statance connects to it from up to six regions, alerting you by email, Slack, Discord or PagerDuty when HTTP stops answering. TCP port monitoring.

Related ports

Port 443HTTPSLow risk
Port 8080HTTP alternateMedium risk
Port 8000HTTP alternate / development serversMedium risk

FAQ

Should I close port 80 if I only use HTTPS?

Usually not. Keep it open to redirect visitors to HTTPS and to pass Let’s Encrypt HTTP-01 challenges. Closing it means anyone typing your domain without https:// gets a connection error.

Why is port 80 already in use?

Another web server such as Apache, nginx or IIS is already bound to it. Run sudo ss -ltnp 'sport = :80' on Linux or netstat -ano | findstr :80 on Windows to see which process.

What is port 80 used for?

Port 80 is unencrypted HTTP, the default port for websites. Most sites now use it only to redirect visitors to HTTPS on port 443. It is also used by nginx, Apache, Caddy, IIS, Traefik.

Is it safe to open port 80?

Usually, yes. Exposing port 80 is normal for any website. Traffic on it is not encrypted, so it should not carry logins or personal data. Keeping it open lets browsers that type a bare domain reach the HTTPS redirect, and Let’s Encrypt HTTP-01 validation needs it.

Is port 80 TCP or UDP?

HTTP uses TCP on port 80.

How do I check if port 80 is open?

On the server, run sudo ss -tulpn | grep ':80 ' (Linux) or Get-NetTCPConnection -LocalPort 80 (Windows) to see what is listening. From another machine, run nc -zv HOST 80 or Test-NetConnection HOST -Port 80.

All ports →

Know the moment a port stops answering.

TCP, HTTP, DNS and SSL checks from six regions, plus server metrics from a one-line agent.