Back to Blog
Security7 min read

What Is a Captive Portal? Meaning, How It Works and What It Sees

A captive portal is the web page a Wi-Fi network shows before it lets you online. How it works, what it learns about you, and when to turn on a VPN.

What Is a Captive Portal? Meaning, How It Works and What It Sees

CasperVPN Team

Reviewed by Omar Atarabay, Founder

November 21, 2026

A captive portal is a web page that a Wi-Fi network shows you before it lets your device reach the internet. The network holds, or "captures", your traffic until you accept its terms, enter a code, sign in or pay. Hotels, airports, cafes, trains, planes and hospitals use captive portals on guest Wi-Fi. Most people know a captive portal as the Wi-Fi login page.

Checked on 21 November 2026.

What does "captive portal" mean?

"Captive portal" means a doorway page that holds a device until its user does something. "Captive" describes the device: it has joined the Wi-Fi network, but it cannot reach anything beyond that network yet. "Portal" describes the page: it is the one door out. The term comes from network equipment makers, which is why it appears in router settings and phone error messages, while signs in a hotel lobby say "Wi-Fi login" or "guest Wi-Fi". A captive portal is not the same as a Wi-Fi password. A Wi-Fi password decides who may join the network and also encrypts the radio link between your device and the access point. A captive portal appears after you have joined, and it encrypts nothing.

How does a captive portal work?

A captive portal works by letting a device join the Wi-Fi network and then stopping its traffic at the network's gateway. The process has four steps:

  • Your device joins the Wi-Fi network and receives a local address.
  • The gateway, which is the equipment between the Wi-Fi network and the internet, marks your device as not yet approved.
  • Any web request from your device is answered with the captive portal page instead of the page you asked for.
  • When you finish the captive portal page, the gateway records your device's hardware address as approved and lets its traffic through.
  • The approval usually lasts for a set time, such as a day or the length of a hotel stay. After that the captive portal appears again.

    How does a phone know there is a captive portal?

    A phone knows there is a captive portal because it runs a small test each time it joins Wi-Fi. iPhone, iPad and Android devices each request a known test page from their maker's servers. If the expected answer comes back, the phone decides the internet is reachable. If a different page comes back, the phone decides a captive portal is in the way and opens that page in a small sign-in window. This is why the login page often appears by itself a few seconds after you join hotel Wi-Fi. When the window does not appear, opening a plain web address in the browser usually brings up the captive portal. On iPhone, the address captive.apple.com is made for this.

    Why do websites show an error before you sign in to a captive portal?

    Websites show an error before you sign in to a captive portal because the portal cannot quietly replace a secure page. Almost every website today uses HTTPS, which lets your browser confirm it is talking to the real site. When a captive portal answers in place of that site, the browser sees that the answer did not come from the real site and shows a warning or a blank page instead. This is the browser working as designed. Do not tap through a certificate warning to get online. Close the page, open the phone's own sign-in window or a plain web address, and finish the captive portal there. Our post What Is HTTPS, and Is the Padlock Enough? explains the padlock.

    What kinds of captive portal are there?

    There are five common kinds of captive portal, and they differ in what they ask from you:

  • Click-through: a button to accept the terms of use.
  • Room or booking details: a room number and surname, common in hotels.
  • Voucher code: a printed code from the front desk or a receipt.
  • E-mail or account sign-up: an e-mail address or a loyalty account in exchange for access.
  • Paid access: a payment page, common on planes and some trains.
  • A captive portal has no reason to ask for the password to your e-mail, your Apple or Google account or your bank. A page that asks for one of those may be a copy run by someone else. What Is a Wi-Fi Login Page? covers what is safe to type and how to sign in step by step.

    What can a captive portal see about you?

    A captive portal can see what you type into it and some basic facts about your device. The operator of a captive portal, which is often a Wi-Fi company working for the venue, typically receives:

  • The details you enter, such as a name, a room number or an e-mail address.
  • Your device's hardware address on that network.
  • The time you connected and how long you stayed.
  • After you are through the captive portal, the network can also see which sites and services your device contacts, though not the contents of secure pages. A captive portal does not encrypt your connection. Signing in only opens the door; other guests still share the same network. A VPN, turned on after the captive portal, encrypts your traffic so the network sees only a connection to a VPN server.

    Why does a VPN not connect until the captive portal is done?

    A VPN does not connect until the captive portal is done because the network stops all traffic from an unapproved device, and the VPN's traffic is part of that. A kill switch can add a second problem: a kill switch stops everything outside the VPN tunnel, and that can include the captive portal page itself. The order that works is:

  • Join the Wi-Fi network with the VPN paused.
  • Finish the captive portal and open nothing else.
  • Turn the VPN on and wait until it shows as connected.
  • Open e-mail, banking and other apps only after that.
  • Between steps 1 and 3 the VPN does not protect your traffic, so keep that gap short. CasperVPN runs on iPhone, iPad and Android; the kill switch is part of Premium.

    FAQ

    Is a captive portal safe?

    A captive portal on a real hotel or airport network is an ordinary web page and is safe for simple details such as a room number or a voucher code. The risk is a fake network with a copy of the page. Check the network name with staff, and never type a password from another account.

    Is a captive portal the same as a Wi-Fi password?

    No. A Wi-Fi password controls who can join the network and encrypts the link to the access point. A captive portal appears after you join, controls who can reach the internet, and encrypts nothing.

    Why does the captive portal keep coming back?

    A captive portal comes back when the network's approval for your device runs out, often after a day. It can also return if your phone shows a new private Wi-Fi address to the network, because the network then treats the phone as a new device.

    Can you skip a captive portal?

    No. The network lets nothing through until the captive portal is finished. Complete it first, then turn on your VPN.

    Do I need a VPN after a captive portal?

    A VPN is worth turning on after a captive portal, because the page does not encrypt anything and strangers share the network. CasperVPN has a free plan with 0.5 GB of data every month and no credit card, and Premium subscriptions in the app start with a 7-day free trial. Plans are on our pricing page. Get CasperVPN on the App Store.

    Tags:

    what is a captive portalcaptive portal meaninghow does a captive portal workcaptive portal wificaptive portal vpn

    Related Articles

    Ready to Protect Your Privacy?

    Try CasperVPN — privacy in one tap, with our own protocol when you need it.

    Download CasperVPN Free