safari-iconEvery time you visit a website you are sharing information about yourself with the outside world. This article runs through a number of methods you can use to gain more control over what gets shared, and who it gets shared with, whenever you use Apple's Safari browser to access the web on a Mac.

It also covers methods you can use to prevent traces of your browsing history from showing up on your computer. While you may trust friends and family not to go searching through your web history, it's possible for them to unintentionally discover what you've been looking at, just by using Safari or performing an innocent search on your Mac. If you're interested in a similar overview covering Safari on iOS, check out this guide.

This guide assumes you are using the latest public release of OS X El Capitan (10.11.6 as of initial writing), which you can check by clicking the  symbol in the menu bar at the top left of your screen and selecting "About This Mac". The version number appears beneath the OS X version name. If you're not up to date, you can download and install the latest version of OS X via the Mac App Store located on the Dock or in the Applications folder.

Cookies, Location Services, and Tracking

Many websites attempt to store cookies and other web page data on computers used to access online content. Cookies are small data files that can include things like your IP address, operating system, web browser version, the date you last visited the site, as well as any personal information you may have provided, such as your name, email address, and any relevant preferences. This information is used to identify you when you revisit a site, so that it can offer tailored services, provide specific content, or display targeted ads.

Websites are increasingly upfront about their use of cookies – you've probably seen notices on popular sites requesting that you acknowledge their use. That's largely because EU law requires sites based within its borders to get consent from visitors to store or retrieve cookie data, and as of September 2015, Google requires that any website using its advertising products complies with the law if any of its visitors are inside the EU, regardless of where the site itself is based.

Safari 9 El Capitan
By default, Safari accepts cookies and website data only from websites you visit, and attempts to block third-party cookies that try to target you with ads or create a profile of your online activities. If you don't like the idea of being tracked at all, you can selectively block the use of cookies by following the steps below. Note however that some pages might not work unless you allow the use of cookies, so if you run into login problems or other issues on familiar sites after adjusting these settings, then you might want to dial back the changes.

Additionally, you may have noticed how Safari asks if you want to share your location whenever you visit a geolocation-enabled website. If you don't expect the site to provide helpful location-based services such as regional weather information or local amenities, you can deny the request and continue to do so like this on a case-by-case basis. Alternatively, you can change Safari's behavior whenever it encounters such a site, as described in the following steps.

Lastly, Do Not Track is a feature you can enable to prevent websites from tracking your site visits across the web. With the feature turned on, Safari specifically asks sites and their third party content providers (including advertisers) not to track you. In reality, it's up to the website to honor this request, but it's an option worth enabling for a potential extra layer of privacy.

Here's how to change Safari settings for cookies, location services, and tracking:

Safari Privacy tab

  1. From Safari's menu bar, select Safari -> Preferences..., and click on the Privacy tab.
  2. Select how Safari should deal with cookies and website data by clicking on the relevant button. Your options are: Always block, Allow from current website only, Allow from websites I visit (the default setting), and Always allow.
  3. This tab also lets you check any existing website data stored in your browser cache. You can get more information on it, as well as remove data for individual websites, by clicking the "Details..." button.
  4. To remove all data completely, press the button on the Privacy tab labeled "Remove All Website Data..." and confirm with "Remove Now", or click "Remove All" from within the "Details..." dialog.
  5. In the section labeled "Website use of location services", choose from: Prompt for each website once each day; Prompt for each website one time only; and Deny without prompting.
  6. To enable the Do Not Track feature, check the box at the bottom of the Privacy tab next to "Ask websites not to track me".

Enable Private Browsing

By enabling Private Browsing, you can prevent Safari from remembering the pages you visit and any AutoFill information, while any tabs you open within a private window won't be stored in iCloud. Safari also automatically asks sites and third-party content providers not to track you, prevents sites from modifying any information stored on your Mac, and deletes cookies when you close the related tab or window.

In Safari's menu bar, select File -> New Private Window. You'll notice the Safari address bar appears dark instead of light in a private window, indicating that Safari will not cache your browsing history, store snapshots of pages you visited or save your search history, and any AutoFill information will be lost after the window (or tab) is closed.

If you want to default to private browsing, you can set Safari to open a new Private Browsing window every time the app is launched. Choose Safari -> Preferences..., click General, select the "Safari opens with" pop-up menu, then choose "A new private window".

Safari General tab

Clear Browsing History

Safari for Mac enables you to remove all records of your browsing history including cookies and other cached website data over a specific timeframe of your choosing.

Browsing records that are cleared using the first method described below include any Top Sites not marked as permanent, your Frequently Visited Sites list, recent searches typed into the Safari search bar, web page snapshots shown in the open tab preview screen, download lists (but not downloads), sites you asked to send you notifications, and sites supporting Quick Website Search (the ability to search within specific sites from the Safari search bar).

Note that this method also clears history and web data from any devices logged into the same iCloud account.

  1. To clear all history including cached website data and cookies, select Safari -> Clear History... from the Safari menu bar.
  2. In the dialog window that appears, select the timeframe that you'd like to clear from the dropdown menu. Your options are: the last hour, today, today and yesterday, and all history. Click "Clear History" to confirm.

Safari Clear History 2If you want to clear your history but keep cached website data and cookies, hold the Alt/Option key on your keyboard during step 1 above, and the "Clear History..." menu option will change to "Clear History and Keep Website Data". Choose this description instead and continue on to select your clearance timeframe.

Safari Clear HistoryIf you only want to remove specific websites from your history, ignore the steps above and instead click "History" in the Safari menu bar, select "Show History", right-click a site in the list, and then select "Remove" from the contextual menu.

Exclude Browsing History From Spotlight Searches

If you'd rather retain your browsing history but don't want web pages you've visited to appear in system-wide Spotlight Search results, follow these steps.

  1. Open System Preferences and select the Spotlight pane.
  2. In the Search Results tab, uncheck the box next to "Bookmarks & History" (and "Bing Web Searches", if this is your default search engine).

Spotlight Safari search

Switch Search Engine and Disable Safari Suggestions

Just because you cleared your browsing history and web data in Safari or browsed in a Private window, doesn't mean your searches aren't still recorded elsewhere. For example, if you logged into a Google account during the session, searches you performed may be logged by Google and later show up as search suggestions when you start typing in the Google search bar in the same account. In fact, your search and ad results may be customized based on your search-related activity, even if you're signed out of your account.

To get around this issue, either consult the privacy help page of your preferred search engine to learn how to turn off tracking settings, or set a non-tracking search engine such as StartPage as your home page (using the General tab in Safari -> Preferences...). The next series of steps shows you how to set up Safari to use the non-tracking search engine DuckDuckGo when you type search queries into the address bar.

Another thing to reconsider is your use of Safari Suggestions. With this option enabled, your search queries, the Safari Suggestions you select, and related usage data are sent to Apple. Additionally, if you have Location Services turned on, when you make a search query in Safari with Safari Suggestions enabled your location is also sent to Apple. If you don't want this information shared, turn off Safari Suggestions as shown below.

  1. From the Safari menu bar, select Safari -> Preferences..., and click on the Search tab.
  2. Select the DuckDuckGo search engine from the dropdown menu. You can also choose whether you want search engine suggestions appearing in the Safari search bar using the checkbox immediately below.
  3. Uncheck the box next to "Include Safari Suggestions" in the Smart Search Field options; you can also disable the Quick Website Search function if you prefer by using the checkbox below.

Safari Search os x

Disable Frequently Visited Sites

By default, Frequently Visited Sites appear below your Favorites whenever you open a new tab or a new Safari window. You can turn this feature off.

There are two ways to prevent frequently visited sites from appearing in new tabs and windows. The simplest way is to click Bookmarks in the Safari menu bar and untick "Show Frequently Visited in Favorites". The second method described below prevents Favorites from appearing in new tabs and windows altogether, but removes the option to display your Top Sites as well.

  1. From the Safari menu bar, select Safari -> Preferences..., and select the General tab.
  2. In the dropdown menus for "New windows open with:" and "New tabs open with:", select an option other than Favorites, such as "Empty Page".

Safari general tab

Turn Off AutoFill

Safari's AutoFill feature remembers text and values you enter into online forms, and can be useful for speeding up logins and registrations as well as online purchases. If other people use your Mac, you might not want this information to show up when websites are revisited. Here's how to disable AutoFill.

  1. In the Safari menu bar, select Safari -> Preferences... and click on the AutoFill tab.
  2. Uncheck the boxes next to the details you wish to prevent Safari from autocompleting in web forms. You can also edit already saved information by clicking the "Edit..." buttons.

AutoFill Safari

Finally...

If your web privacy concerns extend to a desire for enhanced security and comprehensive end-to-end encryption, consider subscribing to a Virtual Private Network (VPN) service (Private Internet Access and IPVanish are two popular choices) and using Tor browser for OS X.

Top Rated Comments

KALLT Avatar
108 months ago
I got tired of managing tracking cookies (yes, they DO get set even with "do not track" activated!) with an external app named Cookie. Deleting cookies also removes useful cookies like logins.
Do not track is nothing more than a signal that your browser sends along. Whether websites honour this setting is up to them and most do not even pay attention to it.

What is so tiring about Cookie though? You set it up once and mark your favourite websites. Cookie takes care of the rest and deletes all non-favourites and tracking cookies automatically. It even gets rid of Flash and Silverlight cookies.

The problem with cookies is that websites can detect if you are blocking cookies or not. It is thus better to let them set cookies and just remove them periodically.
[doublepost=1470423198][/doublepost]
There is no such thing as privacy any longer if you are connected to the web. You can practice safer browsing techniques but if you are connected and chose a digital life you are volnerable.
That depends on your definition of privacy as well as the persons you want to protect yourself against. It is certainly impossible to shield yourself completely, but it is relatively easy to keep certain groups out.
Score: 2 Votes (Like | Disagree)
SteveW928 Avatar
108 months ago
There is no such thing as privacy any longer if you are connected to the web. You can practice safer browsing techniques but if you are connected and chose a digital life you are volnerable.
Yea, for the most part, unless you have a clean everything through a VPN... then you're pretty safe if the VPN provider isn't compromised.

But, the more of these kind of techniques you implement, the more work it makes to track everything related to you. Or, at least it keeps you a bit anonymous from provider to provider. The gov't is a whole other matter (and, unfortunately, the biggest threat).

I got tired of managing tracking cookies (yes, they DO get set even with "do not track" activated!) with an external app named Cookie. Deleting cookies also removes useful cookies like logins.
Yea, that's the problem. Cookies are generally a good thing, they can just be used to track things beyond what a person might want. Managing them is more trouble than it's worth, I'd think.

The other issue is that someone like the gov't could aggregate info across providers, so even a VPN won't do much good with modern OSs. Since modern OSs constantly log into various accounts from various apps, even when you're connected to a VPN, it would be quite easy to connect an IP at point in time, with a person.
Score: 2 Votes (Like | Disagree)
iapplelove Avatar
108 months ago
There is no such thing as privacy any longer if you are connected to the web. You can practice safer browsing techniques but if you are connected and chose a digital life you are volnerable.
Score: 1 Votes (Like | Disagree)
modemthug Avatar
108 months ago
Meanwhile Windows 10 just sends all of your keystrokes to Microsoft/the NSA
Score: 1 Votes (Like | Disagree)
jdillings Avatar
108 months ago
This is another great article reminding consumers of the privacy safeguards available to them in Apple products.
Score: 1 Votes (Like | Disagree)
SteveW928 Avatar
108 months ago
Nowadays, a VPN will not make you very anonymous. Only enough to protect your anonymity against the bottom feeders (that don't have state-level resources and freedoms) in the global PII-market ...

One of the reasons is that the combination of meta data that every browser shares when connecting to a web-server is unique. Go to EFF Panopticklick ('https://panopticlick.eff.org') and test your browser. Based on this profiling can be made (and is made) by actors having the necessary resources.
No doubt.... if the Feds come after you, you're pretty much screwed. I guess I was thinking of a form of profiling to someone who had data across services. But, I'd forgotten about machine-build profiling and such. Macs are probably a bit more secure (i.e.: less unique) in that regard, but once you combine stuff like software, plugins, and fonts installed, there's a pretty big heap of circumstantial evidence there.

Meanwhile Windows 10 just sends all of your keystrokes to Microsoft/the NSA
Heh, yea. We're talking about many levels/layers of privacy here. If the NSA is after you, you'd best stay off the 'Net. But, that said, why make things any easier for any of these folks... site-owner/advertiser to gov't agency? Most end up going after the low-hanging fruit, unless you're specifically targeted.
Score: 1 Votes (Like | Disagree)

Popular Stories

New Things Your iPhone Can Do in iOS 18

18 New Things Your iPhone Can Do in iOS 18.2

Wednesday November 13, 2024 2:09 am PST by
Apple is set to release iOS 18.2 next month, bringing the second round of Apple Intelligence features to iPhone 15 Pro and iPhone 16 models. This update brings several major advancements to Apple's AI integration, including completely new image generation tools and a range of Visual Intelligence-based enhancements. There are a handful of new non-AI related feature controls incoming as well....
AirPods Pro Firmware Feature

Apple Releases Firmware Updates for AirPods Pro 2 and AirPods 4

Monday November 11, 2024 11:28 am PST by
Apple today released firmware updates for both AirPods 4 models (version number 7B20) and the AirPods Pro 2 with both Lightning and USB-C charging cases (version number 7B21). All of these AirPods models were previously on firmware version 7B19. It is not immediately clear what new features or changes are included in firmware versions 7B20 and 7B21, but we will update this story if we find...
iPhone SE 4 Thumb 1

iPhone SE 4 Camera Modules to Enter Mass Production Next Month

Tuesday November 12, 2024 2:56 am PST by
Apple's camera module supplier for the upcoming iPhone SE 4 is set to begin mass production of the components in December, according to a new report coming out of Korea. Economic newspaper Ajunews reports that LG Innotek will supply the front camera module for the budget-friendly fourth-generation device. Final tests are now said to be underway, with mass production of the module following...
airpods pro spring blue

Apple Customers Sue Over Unfixed AirPods Pro Crackling Issue

Wednesday November 13, 2024 11:01 am PST by
A trio of Apple customers this month filed a class action lawsuit against Apple, accusing the Cupertino company of violating California consumer protection laws and false advertising for continuing to sell AirPods Pro models that had ongoing issues with crackling or static sounds. A few months after the AirPods Pro came out in October 2019, buyers began to complain about crackling, rattling, ...
iPad iOS 16 WP Display Feature eric edit

Apple to Launch AI-Powered Home 'Command Center' as Soon as March 2025

Tuesday November 12, 2024 1:09 pm PST by
Apple is planning to launch an AI-powered smart home display as soon as March 2025, according to Bloomberg's Mark Gurman. The display will measure in at approximately six inches, and while it is similar to an iPad, it is square rather than rectangular and it has thick bezels around the edges. There is a camera at the top front so that it can be used for FaceTime, plus there are internal speakers...
new mac holiday

The Best Early Black Friday Mac Deals

Monday November 11, 2024 7:45 am PST by
Black Friday is getting closer, and prices on MacBook Pro, MacBook Air, iMac, and Mac mini computers have started to drop as the shopping holiday nears. These deals include the latest models of the M4 MacBook Pro and iMac. Note: MacRumors is an affiliate partner with some of these vendors. When you click a link and make a purchase, we may receive a small payment, which helps us keep the site...
maxresdefault

M4 Max MacBook Pro: Real-World Usage Tests

Wednesday November 13, 2024 11:59 am PST by
Apple last week replaced the M3 Max MacBook Pro with the new M4 Max MacBook Pro, and we picked up one of the new high-end MacBook Pro machines to see how it compares to the prior model with both benchmarks and real-world tests. We tested an M4 Max with a 16-core CPU, 40-core GPU, and 48GB RAM against an M3 Max MacBook Pro with similar specs. The two machines look similar, but the display on...
iOS 18

Here's Everything New in iOS 18.2 Beta 3

Monday November 11, 2024 4:53 pm PST by
Apple seeded the third betas of iOS 18.2 and iPadOS 18.2 to developers for testing today. While the third betas of each update are minor relative to the first two betas, there are still a handful of changes across the Photos app, TV app, and more. A corresponding iOS 18.2 public beta with these changes will likely be released later this week, and Apple previously confirmed that the software...
final cut pro magnetic mask

Apple Releases Final Cut Pro 11 for Mac

Wednesday November 13, 2024 3:02 pm PST by
Apple today announced the launch of major updates for its Final Cut Pro video editing software designed for Macs and iPads. Final Cut Pro has been version 10 since 2011, but after 13 years, Apple is finally ready to debut Final Cut Pro 11. Apple first teased a new version of Final Cut Pro when introducing the new M4 Macs in October, and now the updated software is available for download with ...