Secure Safari on Public WiFi: 12 Steps
In this article
Using Safari on public WiFi exposes your browsing to potential snooping. This guide shows you how to lock down Safari and your Mac or iPhone so your data stays private, even on unsecured networks. You'll need an iPhone or Mac with Safari, and a few minutes to adjust settings.
What You'll Need
- An iPhone, iPad, or Mac with Safari.
- iOS 14 or later, or macOS Big Sur or later (for most settings).
- Access to the public WiFi network you plan to use.
Step-by-Step
- Update your device. Go to Settings > General > Software Update (iPhone/iPad) or System Settings > General > Software Update (Mac). Install any pending updates—they include security patches that protect against known WiFi exploits.
- Enable HTTPS-only mode. On iPhone/iPad: Settings > Safari > Privacy & Security > turn on “HTTPS-Only Mode.” On Mac: Safari > Settings (or Preferences) > Privacy > check “Use advanced tracking and fingerprinting protection” and then under “Security” check “Require HTTPS.” This forces Safari to use encrypted connections whenever possible.
- Turn on Private Relay (iCloud+ users only). This encrypts your traffic and hides your IP address from the network.
- Enable “Prevent Cross-Site Tracking.” On iPhone/iPad: Settings > Safari > Privacy & Security > toggle “Prevent Cross-Site Tracking” on. On Mac: Safari > Settings > Privacy > check “Prevent cross-site tracking.” This reduces third-party tracking, which is more aggressive on public networks.
- Block all cookies. On iPhone/iPad: Settings > Safari > Privacy & Security > toggle “Block All Cookies” on. On Mac: Safari > Settings > Privacy > uncheck “Allow websites to check if Apple Pay is available” and then under “Cookies and website data,” select “Block all cookies.” This prevents sites from storing data that could be intercepted.
- Use a private browsing window. Tap the tabs button (two overlapping squares) and then tap “Private” (iPhone/iPad) or press Shift+Command+N (Mac). Private Browsing prevents Safari from saving your history, cookies, or form data, and it also disables some tracking.
- Turn off WiFi auto-join. On iPhone/iPad: Settings > WiFi > tap the “i” next to the public network and switch off “Auto-Join.” On Mac: System Settings > WiFi > click “Details” next to the network and uncheck “Auto-Join.” This prevents your device from silently connecting to the same network later.
- Disable AirDrop and file sharing. On iPhone/iPad: Control Center > long-press the network card > tap AirDrop > select “Receiving Off.” On Mac: System Settings > General > AirDrop & Handoff > set AirDrop to “No One.” Also turn off File Sharing in System Settings > General > Sharing.
- Turn off Bluetooth and Personal Hotspot. On iPhone/iPad: Control Center > tap Bluetooth to turn it off (if you don't need it). On Mac: Control Center > Bluetooth > toggle off. Personal Hotspot can be turned off in Settings > Personal Hotspot (iPhone/iPad) or System Settings > General > Sharing (Mac).
- Use a strong, unique password for the WiFi network. If you're joining a network that asks for a password, make sure it's not a common one (like “password” or “12345678”). If you're the one setting up a hotspot, use WPA3 if available.
- Enable “Warn About Fraudulent Websites.” On iPhone/iPad: Settings > Safari > Privacy & Security > toggle “Warn About Fraudulent Websites” on. On Mac: Safari > Settings > Privacy > check “Warn when visiting a fraudulent website.” This helps avoid phishing sites that are common on public networks.
- Log out of sensitive accounts. After your browsing session, sign out of banking, email, and social media accounts. This prevents anyone who might have intercepted your cookies from using them.
Common Mistakes
- Ignoring HTTPS warnings. If Safari shows a “Not Secure” warning, do not proceed—it means the site doesn't support encryption, and your data could be visible.
- Using the same password for multiple accounts. If one account is compromised on public WiFi, others become vulnerable. Use unique passwords.
- Forgetting to turn off Bluetooth. Bluetooth can be used to track your device or pair with malicious devices. Turn it off when not in use.
- Assuming Private Browsing is enough. Private Browsing doesn't encrypt your traffic; it only prevents local history storage. You still need HTTPS and other protections.
- Leaving Auto-Join on. Your device may automatically connect to a spoofed network with the same name later, exposing you to man-in-the-middle attacks.
Tips
- Use a VPN if you have one. While this guide doesn't recommend a specific VPN, if you already have a trusted VPN service, enable it before connecting to public WiFi. It adds an extra layer of encryption.
- Check for “HTTPS” in the address bar. Always look for the padlock icon. If it's missing, the connection is not secure.
- Turn off WiFi when not in use. This prevents your device from broadcasting probes for known networks, which can be intercepted.
- Use a separate browser profile for public WiFi. On Mac, you can create a separate Safari profile (Safari > Settings > Profiles) with stricter settings.
- Clear Safari's history and website data after using public WiFi. Go to Settings > Safari > Clear History and Website Data (iPhone/iPad) or Safari > History > Clear History (Mac).
Troubleshooting
- HTTPS-only mode causes errors. Some websites don't support HTTPS. If you see an error, you can temporarily turn off HTTPS-only mode for that site, but only if you trust the site. To do this, tap the “aA” icon in the address bar and select “Website Settings” to allow insecure connections.
- Private Relay is not working. Private Relay requires a stable connection. If it fails, check your iCloud+ subscription and that you're not on a network that blocks it (some public WiFi does). You can turn it off and on again in iCloud settings.
- Websites load slowly. Public WiFi is often congested. Try moving to a less crowded area, or switch to a different network if available.
- Safari says “Cannot Open Page.” This could be due to a network issue. Try forgetting the network and reconnecting: Settings > WiFi > tap “i” next to the network > “Forget This Network,” then reconnect.
- You suspect someone is monitoring your traffic. Disconnect from the WiFi immediately and use cellular data instead. Change your passwords for sensitive accounts from a secure connection.
Frequently Asked Questions
Does Safari automatically secure my connection on public WiFi?
No. Safari uses HTTPS only if you enable it (as described above). By default, it may use unencrypted HTTP on some sites. You must turn on HTTPS-only mode.
Is it safe to use public WiFi if I only check email?
Email is often unencrypted, so it's risky. Even if you use HTTPS, your email provider may not enforce it. It's best to avoid checking sensitive email on public WiFi.
Can I use Safari on public WiFi without a VPN?
Yes, but you must follow the steps above, especially HTTPS-only mode and private browsing. A VPN adds extra protection but is not mandatory.
Will Private Browsing hide my activity from the WiFi owner?
No. Private Browsing only prevents local storage on your device. The WiFi owner can still see the sites you visit if they are not HTTPS-encrypted. HTTPS hides the content, but not the domain.
Does turning off cookies break websites?
Some sites may not work correctly if you block all cookies, especially those that require login. You can temporarily allow cookies for trusted sites via the “aA” icon in the address bar.
What is the safest way to use public WiFi?
The safest is to use your phone's cellular hotspot instead of public WiFi. If you must use public WiFi, combine HTTPS-only mode, Private Relay (if available), and a VPN (if you have one).