Password Protect Private Browsing in Safari on macOS Sonoma
In this article
Yes, you can password-protect your private browsing sessions in Safari on macOS Sonoma, but not through a single built-in toggle. Instead, you use a combination of Screen Time's app limits and macOS's own Screen Time passcode. This adds a lock that requires a passcode before anyone can open or continue using Safari's private browsing windows. Here's exactly how to set it up.
What You'll Need
- A Mac running macOS Sonoma (or later) with Safari installed.
- An administrator account on that Mac (you'll need it to set the Screen Time passcode).
- Your Apple ID password, in case you need to reset the Screen Time passcode later.
Step-by-Step
- Open System Settings. Click the Apple menu and choose System Settings. (In older macOS versions, this is System Preferences.)
- Go to Screen Time. In the sidebar, click Screen Time. If you haven't used Screen Time before, you may need to turn it on by clicking the toggle at the top.
- Set or change the Screen Time passcode. Scroll down and click “Options” (or “Passcode” in some versions). Click “Set Screen Time Passcode” or “Change Passcode” if one already exists. Enter a four-digit passcode you'll remember, then enter it again to confirm. This is the passcode that will protect your private browsing.
- Enable “Use Screen Time Passcode for Restrictions.” In the same Options screen, make sure the toggle next to “Use Screen Time Passcode for Restrictions” is turned on. If it's off, turn it on now.
- Return to the main Screen Time settings. Click the back arrow or click “Screen Time” in the sidebar to go back to the main Screen Time pane.
- Click “App Limits.” This is where you'll create a limit for Safari.
- Add a limit for Safari. Click “Add Limit” (or the “+” button). In the list of categories, scroll down to “Other” and expand it. Check the box next to “Safari.” (You can also search for Safari in the search field at the top.)
- Set the time limit to 1 minute. In the time picker, set the limit to 1 minute (the minimum allowed). This is the smallest amount of time Safari can be used before the passcode is required.
- Enable “Block at End of Limit.” Make sure the “Block at End of Limit” checkbox is ticked. This is crucial – it forces the passcode prompt when the limit is reached.
- Click “Add” (or “Done”). The limit is now saved.
- Test it. Open Safari and browse for about a minute. After the limit is reached, Safari will be blocked, and you'll need to enter your Screen Time passcode to continue. This also applies to private browsing windows – they're part of Safari, so they're covered.
Note: Menu labels can differ slightly by macOS version, but the general path is the same. If you don't see “App Limits” or “Options,” look for similar wording like “Limits” or “Passcode.”
Common Mistakes
- Not enabling “Block at End of Limit.” Without this, Safari will just show a warning but won't actually lock, so the passcode won't be required.
- Setting the limit to 0 minutes. The minimum is 1 minute. If you set it to 0, the limit may not work correctly.
- Forgetting the Screen Time passcode. If you forget it, you'll need to reset it using your Apple ID, which can be a hassle.
- Thinking this locks only private windows. This method locks all of Safari, not just private browsing. There's no way to lock only the private browsing mode separately.
- Using a different Mac user account. Screen Time limits apply per user account. If you want the lock on all accounts, you need to set it up in each account, or use Family Sharing to manage it.
Tips
- Use a passcode you don't use elsewhere. Since this passcode protects your private browsing, make it unique and not easily guessed.
- Combine with “Content & Privacy Restrictions.” In Screen Time > Content & Privacy, you can also block specific websites or adult content, adding another layer of protection.
- Remember: this is not a security feature. It's a productivity or parental control feature. Someone with admin access can disable Screen Time or reset the passcode, so it won't stop a determined person.
- If you only want to hide your browsing history, use Safari's built-in Private Browsing. That doesn't require a passcode – it just doesn't save history. The passcode method here is for preventing others from opening Safari at all.
Troubleshooting
If the passcode prompt doesn't appear after the limit: First, make sure you've waited at least a minute and that Safari is in the foreground. If it still doesn't prompt, go back to Screen Time > App Limits and verify the limit is still active (sometimes it gets turned off). Also, check that “Block at End of Limit” is still enabled.
If you can't set a Screen Time passcode: Make sure you're logged in as an administrator. If you're not, you'll need to ask the admin to set it up. Also, if Screen Time is managed by a family organizer, you may not be able to change it.
If you forgot the passcode: Go to System Settings > Screen Time > Options, and click “Forgot Passcode?”. You'll be asked to enter your Apple ID password to reset it. If you don't have an Apple ID associated, you may need to erase your Mac and restore from backup – a last resort.
If Safari still opens after the limit is reached: Try quitting Safari completely (Cmd+Q) and reopening it. The limit should now apply. Also, restart your Mac – sometimes Screen Time needs a reboot to apply changes.
Frequently Asked Questions
Does this lock only private browsing windows?
No. This method locks all of Safari, including regular browsing windows. There is no way to lock only the private browsing mode in Safari on macOS.
Can I set a longer time limit before the passcode is required?
Yes, you can set any limit from 1 minute to many hours. But for the purpose of password-protecting private browsing, a 1-minute limit is the most restrictive.
Will this affect other apps?
Only Safari, because you only added a limit for Safari. Other apps are unaffected.
Can I use Touch ID or Face ID to unlock Safari instead of typing the passcode?
No. Screen Time passcodes only accept numeric entry. Touch ID or Face ID are not supported for this feature.
What if someone knows the Screen Time passcode?
Then they can bypass the lock. The passcode is the only barrier, so keep it private.
Does this work on older macOS versions?
The steps are very similar on macOS Ventura and Monterey. On older versions, the settings are in System Preferences > Screen Time, but the process is essentially the same.