How Captive Portal works
Public Wi-Fi intercepts your first web request and redirects you to a login or terms page; once accepted, the gateway lets your MAC address through to the Internet.
Layer: Application (OSI layer 7) · Port: 80/443 · Transport: HTTP · Format: Redirect + login page · Standard: RFC 8952
Captive Portal packet flow
- HTTP Client → Internet: GET http://connectivitycheck.gstatic.com/generate_204
- HTTP Router → Client: 302 Found → https://wifi.hotel/login
- HTTPS Client → Router: POST /login (room 412, accept terms)
- HTTPS Router → Client: Welcome - you are online
- HTTP Client → Internet: GET /generate_204 → 204 (open)
Other protocols: HTTPS · SSH · TLS/SSL · DNSSEC · DNS over HTTPS · Wi-Fi · WPA3 · RADIUS · HTTP Proxy · SOCKS5 · Reverse Proxy · WireGuard · IPsec