Home › Setup guides › What is a captive portal?
What is a captive portal?
The page that opens when you join hotel, café or airport Wi-Fi - what it is, how it works behind the scenes, and how to run one for your own venue.
The short answer
A captive portal is a web page that a Wi-Fi network shows before it lets a device onto the internet. The guest joins the network, the login page opens, and only after the guest accepts the terms, enters a code, pays or signs in does the network let their traffic through.
How a captive portal works
- The guest joins the Wi-Fi. The router gives the phone an address but keeps internet access closed.
- The phone checks for a portal. iPhones, Android phones, Windows and macOS try to load a known test address in the background. When the network answers with a redirect instead, the phone opens its captive-portal window by itself.
- The login page loads. Only a short list of addresses - the walled garden - is open before login: the login page itself, and the payment or sign-in pages it needs.
- The guest logs in. The router asks a RADIUS server whether the code, account or payment is valid. The answer includes how long the guest may stay online, how much data they may use and at what speed.
- The internet opens. The router lets the device through and keeps sending usage updates, so time and data limits end the session on time.
Types of captive portals
- Click-through - accept the terms and go. Common in cafés, lobbies and shops.
- Voucher or code - a printed or e-mailed code. Common in hotels, labour camps, schools and events.
- Paid Wi-Fi - the guest buys time or data by card, PayPal or another method on the login page.
- Social or e-mail login - sign in with Google or an e-mail address, often with a marketing consent tick.
- SMS code - the guest enters a phone number and a one-time code, which verifies who they are.
- Check-in QR - hotels hand out a QR code that connects the guest's phone for the length of the stay.
Why businesses use a captive portal
- Control - limit time, data, speed and the number of devices, so the line stays fast for everyone.
- Paid access - charge by the hour, day or month, if you want to.
- Marketing - collect opted-in e-mails and phone numbers and see how often guests return.
- Accountability - show terms of use and keep a log of who was connected.
- Branding - the login page is often the first thing a guest sees of your venue.
Common problems and fixes
- The login page does not open - the walled garden is missing the portal address, or the phone's automatic check is blocked. Opening any plain http:// website usually triggers the page.
- Payment pages do not load - the payment provider's addresses must be in the walled garden.
- Guests are logged out too often - phones with private, rotating Wi-Fi addresses can look like new devices; a good portal recognises the same phone again.
- One code shared by many people - lock each code to one device, or allow a fixed number of devices per pass.
Captive portal hardware and software
The router or access point does the blocking and redirecting; the captive portal software provides the login page, the RADIUS server and the dashboard. Most business routers and access points support an external portal: MikroTik, Ubiquiti UniFi, Cisco Meraki, Aruba, Ruckus, OpenWrt / CoovaChilli and many others.
Setting one up with WiFiNexa
- Create a WiFiNexa account (5-day free trial, no card).
- Add your router - MikroTik gets an automatic setup script; the other brands follow a short setup guide.
- Pick a login page design and the login methods you want: vouchers, card payments, Google, e-mail, SMS or click-through.
- Join the Wi-Fi with a phone and test. See the setup guides for each router, or compare captive portal software.
Questions
What is a captive portal in Wi-Fi?
It is the login page a Wi-Fi network shows before it allows internet access. The guest accepts terms, enters a code, pays or signs in, and then the network lets their device through.
Why does my phone show a Wi-Fi login page?
The network uses a captive portal. Your phone detected that the internet is blocked until you log in, so it opened the login page automatically.
Is a captive portal safe?
A captive portal itself is a normal login page. Use networks you trust, look for HTTPS on pages that ask for payment or passwords, and avoid entering sensitive data on unknown open networks.
What is a walled garden?
The short list of websites a guest can reach before logging in, such as the login page itself and the payment provider's pages.
Do I need special hardware for a captive portal?
Usually not. Most business routers and access points - MikroTik, UniFi, Meraki, Aruba, Ruckus and OpenWrt - support an external captive portal and RADIUS.