How Do You Safely Join Public Wi-Fi That Opens a Login Page in a Pop-Up?
Many public networks show a login page in a small pop-up window. This guide explains how to check the network, read the page with care, enter only what is needed, and add a VPN afterwards.
10 min readUpdated Nov 6, 2026By XPASS Editorial Team

You join a cafe, hotel or airport network and a small window pops up asking you to accept terms, enter a code or sign in. Most of the time this is perfectly normal. It is also the one moment on public Wi-Fi when you are asked to type something into a page that the network itself controls, which is why it deserves a few seconds of care before you tap anything.
This article is about doing that sign-in step safely: how to check you joined the right network, how to read the pop-up page, what is reasonable to enter and what is not, and when a VPN fits into the sequence. It does not repeat the fixes for a VPN that gets stuck behind a login page; for that, see VPN problems with hotel and airport Wi-Fi login pages.
Why a login page appears in a pop-up
When your device joins a Wi-Fi network, it quietly tries to load a small test address to see whether the internet is really reachable. On an open network with a login step, the router intercepts that test and answers with a sign-in page instead of the expected result. Your device notices the mismatch, decides the network needs a login, and opens the page for you, often in a compact window. That window is sometimes called a captive portal assistant or a mini-browser.
The pop-up is not special magic. It is a web page, served by the network you just joined, shown in a stripped-down browser. That has two consequences worth remembering:
- The network operator controls what the page says. A legitimate venue uses it to show terms or collect a room number. A malicious network can use exactly the same mechanism to show something that looks convincing.
- The mini-browser often hides details you would normally check, such as a full web address or a clear padlock indicator. Some versions do not let you copy links or use saved passwords.
None of this means you should avoid the pop-up. It means you should treat it as an untrusted page that you are choosing to interact with for a very specific purpose: getting online.

Check the network before the page
The safest moment to catch a problem is before the pop-up ever appears. Spend a few seconds on the network list.
- Ask for the exact name. Staff or a printed sign can tell you the real network name. Compare it letter by letter. Copycat names often differ by a hyphen, a number, or the word "free" added at the end.
- Watch for duplicates. Two networks with nearly identical names in the same room is a reason to stop and ask. Venues usually have one guest network, sometimes with a separate staff network that is not for you.
- Prefer networks the venue clearly owns. An unnamed or oddly generic open network that appeared out of nowhere is a weaker choice than the one on the menu or the check-in card.
- Turn off automatic joining for open networks. If your phone connects to anything that looks familiar, it may join a copy of a name you used before. Disabling auto-join for open networks, and forgetting networks you will not use again, reduces that risk.
None of this is foolproof. A person standing in the same room can create a network with any name they like. But the checks are cheap, and they remove the most common easy mistakes. The FTC guidance on public Wi-Fi makes the same basic point: confirm the network name with the business before connecting.
Read the login page before you tap
Once the pop-up opens, pause and read it as you would an unexpected email. Look for these signals.
What a typical genuine page asks for
- A tick box to accept terms and conditions.
- A room number and surname, or a booking reference, at a hotel.
- A voucher or access code printed on a receipt, ticket or card.
- An email address or phone number, sometimes optional, in exchange for a free session.
- A short wait or an advert before access starts.
What should make you stop
- A request for your banking password, card number, email password, or social media login to get free Wi-Fi. A guest network has no reason to need these.
- A page that asks you to install an app, profile or certificate before you can go online. Legitimate venues rarely require this; installing unknown profiles can give a network far more reach than you intended.
- A certificate or security warning shown by the browser. Do not click through it on a login page.
- A page that looks very different from the venue's branding, has obvious spelling errors, or redirects to a long, unrelated web address.
- A prompt for a one-time code you did not request, especially a code from your bank or an account provider. Treat that as a possible attempt to take over an account.
If a page looks wrong, close the window, forget the network, and use mobile data or ask staff for help. Nothing about getting online justifies giving up an important password. The same habits that help you spot a bad link in an email, described in how to recognize phishing websites, apply here.
Enter as little as possible
If the page looks reasonable, decide what to give it. A good rule is to supply the smallest amount of information that gets you online.
| Field the page asks for | Reasonable response |
|---|---|
| Room number and surname | Usually fine at your own hotel; confirm the network name first |
| Access code from a receipt | Fine; it is meant for this purpose |
| Email address | Use an address you do not mind receiving mail on; skip if optional |
| Phone number | Consider whether you want text messages; skip if optional |
| Full name, date of birth | Skip if optional; question why a guest network needs them |
| Social media sign-in | Avoid; it can share profile data with the venue or a third party |
| Any password you use elsewhere | Never enter it |
| Card details for "free" Wi-Fi | Stop and ask staff |
Two habits help. First, use a dedicated email address for public Wi-Fi sign-ups if you tend to join many networks. Second, never reuse a real password on a portal. If a page says "create a password", make a throwaway one that is different from every other account.
Also read what the tick box actually says. Terms often include permission for marketing messages. If you do not want them, look for an unticked option or consider whether the free session is worth the mail that follows.
A plain example
Imagine you arrive at a hotel in a new city. The key card holder says the network is named after the hotel, with the word "Guest" at the end.
You open Wi-Fi settings and see two entries with the hotel's name: one ending in "Guest" and one ending in "Guest Free". You are not sure which one is real, so you ask at the desk. The receptionist says it is the first one only.
You join it. A small window opens asking for a room number and your surname. You type them in, tick the terms box, and the page says you are connected. You open a browser and load an ordinary website to confirm. Only then do you turn on your VPN, and you check that it shows as connected before opening your email.
At no point did you type a password you use elsewhere, and you asked a person rather than guessing. That is the whole method: verify the network, read the page, enter the minimum, confirm that you are online, then add the VPN.
Where the VPN fits in the sequence
A VPN is useful on public Wi-Fi, but it comes after the portal, not before it. The login page needs a plain connection to appear, because the network blocks almost everything else until you sign in. If your VPN is already running or has a kill switch that blocks traffic outside the tunnel, the page may never load, and you will sit staring at a spinner. The full explanation is in the captive portal troubleshooting article linked at the start.
A safe order looks like this:
- Join the network with the VPN off.
- Complete the login pop-up, entering the minimum.
- Open a normal website to confirm the network works.
- Connect the VPN and wait for it to show as connected.
- Do your sensitive tasks only after step 4.
Step-by-step connection instructions for your device are in the help guide on connecting to a VPN on public Wi-Fi. XPASS customers connect with VPNclient using the username and password shown on the My Pass page, and the same order applies.
It helps to be honest about what the VPN does here. Once connected, it encrypts the traffic between your device and the VPN server, so other people on the same Wi-Fi are less able to read it. It does not make the login page trustworthy, it does not protect what you already typed into the portal, and it does not stop the venue from knowing that your device joined the network. Many sites already use HTTPS, which protects the content of your connection to them; see HTTPS vs VPN for how the two layers differ.

Limits and what to watch for
No checklist removes every risk, so keep these limits in mind.
- You cannot fully verify a network from your seat. A convincing copy of a real network name can exist. If something feels off, use mobile data.
- The portal sees what you give it. Anything typed into the page is available to whoever runs that page. A VPN connected afterwards does not undo that.
- The pop-up may hide warnings. If the mini-browser looks unusual, try opening a plain browser tab and loading a simple website. If the sign-in page then appears in the full browser, you can use it there, where the address bar is visible.
- Sessions expire. Many portals end your access after a time limit or when you change device. You may need to sign in again and reconnect the VPN.
- A VPN is not a cure for a bad choice. If you entered a real password into a fake page, change that password from a trusted connection and turn on two-factor authentication where it is available.
- Do not use public Wi-Fi for the most sensitive tasks if you can avoid it. A short banking check on mobile data is a simple, reasonable alternative.
A VPN reduces one specific risk, the ability of others on the same network to watch your traffic. It does not guarantee security, privacy or anonymity, and it does not repair a mistake made on a login page. The article public Wi-Fi safety covers the wider set of habits.
If something goes wrong
If you think you entered something you should not have, act in this order.
- Disconnect from the network and forget it in your Wi-Fi settings.
- Switch to mobile data or a network you trust.
- Change any password you typed, starting with the most important accounts, and do it on a trusted connection.
- Turn on two-factor authentication for those accounts if you have not already.
- Check recent sign-in activity and security messages from the services involved, and sign out of unknown sessions.
- If a card number was involved, contact your card issuer using the number on the card.
- Tell the venue, so that staff can check whether a copy network is operating.
Reporting a phishing page to the relevant authority is also worthwhile; CISA explains how to recognize and report phishing. The faster you change a password, the less time anyone has to use it.
Summary
A login pop-up on public Wi-Fi is usually a normal captive portal, but it is a page controlled by the network, so treat it with care. Confirm the network name with staff, read the page before tapping, enter as little as possible, never type passwords you use elsewhere, and walk away from any page that asks for banking or account details. Complete the portal with the VPN off, confirm that you are online, and then connect the VPN for the rest of your session. If you would like a prepaid pass for those moments, you can look at the options on the XPASS pricing page.
Frequently asked questions
Why does public Wi-Fi open a login page in a pop-up window?
Your phone or laptop checks whether the network really reaches the internet. When the network intercepts that check and shows a sign-in page instead, the device opens the page in a small window so you can accept terms, enter a code or sign in. This is called a captive portal.
How can I tell whether a Wi-Fi login page is fake?
Check that the network name matches what staff or signs say, that the page asks only for what a venue would reasonably need, and that it does not ask for banking, email or social media passwords. Be careful with pages that show certificate warnings or ask for card details to get free Wi-Fi.
Should I turn the VPN on before or after the login pop-up?
Usually after. Join the network with the VPN off, finish the login page, confirm that normal websites load, then connect the VPN. The portal is designed to appear on a plain connection, so an active tunnel can stop it from loading.
Is it safe to enter my email or phone number on a Wi-Fi login page?
It is a trade-off. A venue may use these details for marketing or records. Use an address you do not mind receiving mail on, skip optional fields, and read what you are agreeing to. Never enter a password you use elsewhere.
Does a VPN make a fake login page safe?
No. A VPN protects traffic after it is connected, but it cannot tell whether a page you type into is genuine. Checking the network and the page, and giving away as little as possible, is still your job.
References
About the author

Bob Kanokphon Thongdee
- Founder of XPASS VPN
- Co-founder of eSIMonline.asia
- More than 7 years in online marketing
- Founder of Cojourney Visa and Cojourney Travel
Need a VPN for a short trip or a busy month?
XPASS sells prepaid passes for a set number of days. You pay once and nothing renews automatically.
See passesKeep reading

Troubleshooting
VPN Problems with Hotel and Airport Wi-Fi Login Pages
Hotel, airport and cafe Wi-Fi often needs a web login before anything works, and that can trap a VPN. Here is the order of steps, and fixes when the page will not show.
9 min read

VPN Security
How to Stay Safer on Public Wi-Fi
Public Wi-Fi is not a disaster, but it is a network you do not control. Here are the real risks, the habits that matter most, and where a VPN fits in.
8 min read

Privacy Guides
How to Recognize Phishing Websites
Phishing websites imitate real services to steal your login or card details. This guide shows the warning signs worth checking, a calm routine for suspicious links, and what to do if you entered details.
9 min read