4.6. Spotlight Settings

Spotlight is Mac OS X's system-wide search feature, which relies on an index of all your files to deliver rapid search results. Because each folder is indexed individually, one user can't search for files inside another user's home folder. However, all users can search files located inside their own home folders as well as files located outside the /Users folder.

If you want to prevent Spotlight from indexing any files or folders, you can exclude them from searches. For example, you might do this for files that contain sensitive information you want to avoid indexing or for files that duplicate existing content (such as backups and caches).

To exclude data from Spotlight searches, follow these steps:

  1. Choose System Preferences to open System Preferences and then click Spotlight to open the Spotlight pane.

  2. Click the Privacy tab, which is shown in Figure 4.16.

  3. Click the Add (+) button, choose a folder or volume, and then click Choose to add the item to the list. Repeat this step for every item you want to exclude. Spotlight excludes it from its index immediately.

  4. Close System Preferences.

Figure 4.16. If you want the Spotlight index to exclude any folders or volumes, add them in the Privacy pane.

Get Mac® Security Bible now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.