Free tech learning for everyone, from basics to pro

Port 80: HTTP (Hypertext Transfer Protocol)

What port 80 (TCP) does, the security risks of leaving it open, and how to secure and test it.

Port80
TransportTCP
ServiceHypertext Transfer Protocol (HTTP)
EncryptedNo

What is port 80?

HTTP is the original protocol for web pages. On port 80 everything is sent in plain text.

Common uses

  • Redirecting visitors to the secure HTTPS version of a site
  • Internal web interfaces on older devices
  • Certificate validation for services such as Let's Encrypt

Security risks

  • Logins and cookies can be read or changed in transit
  • Web application attacks such as SQL injection and cross-site scripting
  • Device admin pages exposed to the internet

How to secure port 80

  • Redirect all HTTP traffic to HTTPS and enable HSTS
  • Do not expose management web pages to the internet
  • Patch web servers and use a web application firewall for public sites

How to check if port 80 is open

WhereCommand
Scan from another machinenmap -p 80 <host>
Windows (PowerShell)Test-NetConnection <host> -Port 80
Linux (what is listening)sudo ss -tulpn | grep :80
Windows (what is listening)netstat -ano | findstr :80

Only scan systems you own or have permission to test.

Related ports

Frequently asked questions

What is port 80 used for?

Port 80 (TCP) is used by Hypertext Transfer Protocol (HTTP). HTTP is the original protocol for web pages.

Is it safe to open port 80?

Only if the service needs to be reached and is configured securely. Redirect all HTTP traffic to HTTPS and enable HSTS.

How do I check if port 80 is open?

From another computer, run nmap -p 80 followed by the host address. On the server itself, ss -tulpn on Linux or netstat -ano on Windows shows whether anything is listening on 80.

Learn more: TCP, UDP and ports explained and firewall basics.

Get free updates by email

New notes, tools, CCNA and Security+ tips and important security news from FM TecHub, explained simply. Free, about twice a month. Unsubscribe anytime; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesup

Free · no spam · past emails · powered by Buttondown