A captive portal is a web page a Wi-Fi or wired network shows to a newly connected device before granting full internet access. The network holds the device in a restricted state, intercepts its first web requests and redirects them to the portal, where the user signs in, enters a voucher code, accepts terms or pays. Once the portal records that step, the gateway authorizes the device, usually for a limited session.
Key takeaways
- A captive portal is a gate, not encryption: it controls who gets online, but an open network's traffic is still visible unless you use HTTPS or a VPN.
- Your device finds the portal by probing a known test address and watching for a redirect instead of the expected reply.
- If the login page never appears, visit a plain HTTP address such as captive.apple.com, pause your VPN, and forget and rejoin the network.
You join the hotel Wi-Fi, your phone says connected, and nothing loads. Then a login page pops up on its own, asking you to accept terms or type a room number. That page is a captive portal, and it is the gate between you and the internet on most public networks.
What is a captive portal?
A captive portal is a web page a network presents to a newly connected device before granting full internet access. You must complete it, by signing in, entering a voucher, accepting terms or paying, before the network lets your traffic through.
Captive portals are used on hotel, airport, cafe, hospital and corporate guest networks, and on some wired networks too. Apple describes them plainly as public networks that you subscribe to and pay for, and its guidance on captive Wi-Fi networks walks users through waiting for the login screen to appear after joining the network.
The portal does not change how the Wi-Fi radio link works. It operates above the wireless layer: your device joins the network and gets an address, but the gateway holds it in a restricted state until the portal records an authorization decision for that device.
How does a captive portal work?
When a device joins a network with a captive portal, it goes through the same sequence every time: connect, get an address, get detected, get redirected, complete the page, and get authorized. The whole process usually takes seconds.
First the device associates with the open network and gets an IP address, gateway and DNS server from DHCP. At this point it is connected at layers 2 and 3, but the gateway keeps it unauthenticated: traffic is blocked except for DHCP, DNS, the portal itself and a short allow-list called the walled garden.
Then the operating system probes a known test address and compares the answer with what it expects. If the gateway intercepts the probe and answers with a redirect to the portal, the device knows a portal stands in the way and opens the login page automatically.
Once you complete the page, the portal tells the gateway to authorize your device, usually by adding its MAC or IP address to an allowed list with a session timer. The device repeats its probe, gets the expected answer, and marks the network as online.
How do devices detect a captive portal?
Each operating system probes a different test address and expects a specific reply. Any other answer, including a redirect, tells it a portal is in the way and triggers the login window.
| Device | Test address | Reply that means online | What you see on a portal network |
|---|---|---|---|
| Apple (iPhone, iPad, Mac) | captive.apple.com | HTTP 200 with the word Success | Login page opens in a small window |
| Android and ChromeOS | connectivitycheck.gstatic.com/generate_204 | Empty HTTP 204 No Content | Notification to sign in to the network |
| Windows 10 and 11 | www.msftconnecttest.com/connecttest.txt | Text reading Microsoft Connect Test | A browser window opens on the page |
| Firefox (any system) | detectportal.firefox.com | Mozilla's expected page | A bar saying the network needs a login |
These probes use plain HTTP on purpose. A gateway cannot silently redirect an HTTPS request without presenting a certificate for a host it does not own, and the client would reject it. That is also why the classic fix for a missing login page is to visit a plain HTTP address: it gives the gateway something it can intercept.
The probe system is a set of conventions, not one protocol. Each vendor picked its own address, and gateways depend on those probes working. If a probe fails for another reason, detection can miss a portal or flag one that is not there.
What is the newer standard for captive portals?
The IETF published a standard way to announce a portal in 2020, so devices no longer have to rely only on interception. RFC 8910 lets the network tell a joining device the address of its captive portal API in the DHCP reply or in an IPv6 router advertisement.
Specifically, RFC 8910 defines DHCP option 114 for IPv4, DHCPv6 option 103 and IPv6 router advertisement option 37. The option carries the URI of the captive portal API defined in RFC 8908. A device that supports it can query that API over HTTPS and learn that it is behind a portal, and where the login page is, without any interception at all.
RFC 8910 replaced the earlier RFC 7710, which used DHCP code point 160. The change was made because that code point conflicted with another use. Networks can also use the option to state explicitly that there is no portal, using the IANA-assigned URI for unrestricted access, so clients can skip time-consuming probing.
Adoption is gradual. For the foreseeable future, portals still need interception to serve older clients, and clients still need probing to detect portals on networks that do not announce themselves. The standard improves the experience where both sides support it; it does not replace the old flow overnight.
Why does the captive portal login page not appear?
The login page fails to appear when something breaks the detection probe or the redirect. The most common culprits are a VPN, a DNS filter, a content blocker or a private relay running on your device, because those tools change where the probe goes or what it returns.
Apple's own guidance covers the other common case: if you tapped Cancel on the login screen, or chose Without Internet, the device disassociates or turns off automatic login for that network. You then need to rejoin from the Wi-Fi settings screen and let the login screen appear again.
- Visit a plain HTTP address. Open
http://captive.apple.com/hotspot-detect.htmlon Apple devices, or any plain HTTP site. Use HTTP, not HTTPS, so the gateway can redirect you. - Pause your VPN and DNS filtering. Turn off the VPN, iCloud Private Relay and any DNS filter until you have signed in, then turn them back on.
- Toggle Wi-Fi off and on. Rejoining the network restarts the probe and often brings the page back.
- Forget the network and rejoin. In Wi-Fi settings, forget the network, then join it again and wait a few seconds for the login window.
- Check Auto-Join and Auto-Login. On iPhone, tap the info button next to the network and make sure Auto-Join is on and Auto-Login is on.
- Renew the DHCP lease. On a Mac, renewing the lease after reconnecting can clear a half-finished session.
If none of that works, the portal itself may be down, or you may have joined the wrong network. Ask staff for the exact network name and whether the login system is working. Our guide to securing your Wi-Fi explains how to check the network you are actually on.
Is a captive portal safe?
A captive portal is not a security control, and you should not treat it as one. It controls who gets online, but it does not encrypt your traffic. On an open network, anyone nearby can see unencrypted traffic, and the portal page itself is usually served over plain HTTP.
Fake hotspots are the main risk. An attacker can set up a network with the same name as the hotel or cafe, show a convincing portal, and harvest whatever you type into it. Before you sign in, confirm the exact network name with staff and be suspicious of a network that asks for more information than a voucher or terms acceptance.
Once you are signed in, the safest routine is simple: use only HTTPS websites, avoid banking and sensitive logins on the network, and turn your VPN back on. A VPN encrypts everything after the portal step, which is exactly the protection an open network lacks. You can check what your connection reveals with the what is my IP tool.
Private Wi-Fi addresses add another layer. Apple devices use a rotating private address on open networks by default, which makes it harder for a network to track your device across visits. Turning that off to fix a portal problem is a reasonable temporary step, but turn it back on afterwards.
Why do businesses use captive portals?
Businesses use captive portals for four reasons: to get consent to their terms, to authenticate guests, to collect contact details for marketing, and to charge for access. A hotel wants a room number, a cafe wants an email address, and an airport lounge wants a membership check.
The terms page also has a legal purpose. An acceptable use policy tells guests what is not allowed on the network and limits the venue's liability if someone misuses it. That is why so many portals ask you to tick a box before the Connect button works.
For a small business running guest Wi-Fi, a portal is also a way to keep guests off the private network. The right setup puts guests on an isolated network with a portal, while staff and payment systems stay on a separate network entirely. Our small business cybersecurity checklist covers that separation alongside the other basics.
Portals are a poor substitute for real network security, though. They do not authenticate the network to you, they do not encrypt traffic, and a determined attacker can clone one. Venues that handle sensitive data should use WPA3 or Enhanced Open alongside the portal, and should never rely on the portal alone.
The bottom line
A captive portal is a gate, not a lock. It holds new devices until they sign in, accept terms or pay, and then it gets out of the way. Knowing how detection works tells you how to bring the page back when it vanishes, and knowing its limits tells you how to stay safe behind it.
Join the right network, complete the page, then protect the rest of your session yourself with HTTPS and a VPN. If a portal asks for passwords that belong to other services, treat it as a fake and walk away.
Frequently asked questions
What is a captive portal in simple terms?
It is the login or terms page that appears when you join a hotel, airport or cafe Wi-Fi network. The network lets you connect to the router but blocks the internet until you complete that page, then it lets your traffic through.
Is a captive portal the same as a Wi-Fi password?
No. A Wi-Fi password (WPA2 or WPA3) authenticates you at the wireless layer and encrypts traffic between your device and the access point. A captive portal works above that layer, on an open network, and controls internet access through a web page instead.
Why does the captive portal login page not appear?
The usual causes are a VPN or DNS filter blocking the detection probe, a private relay or content blocker interfering, or the device having dismissed the page earlier. Visiting a plain HTTP address, pausing the VPN and forgetting and rejoining the network usually brings it back.
Is it safe to use a captive portal?
The portal itself is normal on public Wi-Fi, but the network is usually open and unencrypted, so anyone nearby can see unencrypted traffic. Stick to HTTPS sites, avoid banking or sensitive logins, and turn on a VPN after you sign in.
What is a walled garden in a captive portal?
A walled garden is the small list of destinations a device can reach before it signs in, such as the portal itself, DNS and sometimes the venue's own website or payment page. Everything else is blocked until the portal authorizes the device.
How long does captive portal access last?
It depends on the venue. Many portals grant a session of a few hours, a day, or the length of a hotel stay, then ask you to sign in again. Some remember your device by its MAC address and reconnect you automatically on your next visit.
Can a captive portal steal my password?
A genuine portal should never ask for passwords to your email, bank or social accounts. A fake hotspot can imitate a portal to harvest credentials, so check the network name with staff, look for a lock icon on any login page, and never enter credentials for other services into a Wi-Fi login page.
What is DHCP option 114?
DHCP option 114 is defined in RFC 8910. It lets a network tell a joining device the address of its captive portal API directly, instead of the device having to detect the portal by probing and being redirected. It replaced the earlier RFC 7710 option 160.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against Apple Support's captive Wi-Fi guidance, IETF RFC 8910 and the captive portal overview on Wikipedia.
How we write and fact-check →