You can use Spotlight on Mac to find something fast and quickly but if you want to restrict Spotlight from searching to some specific location or folders because of any personal reason or to make your Mac secure while others are using it then follow the method written below to do so.
This method will limit the search activity of Spotlight but it does not mean that Spotlight stop working.
How to Restrict Spotlight Search On Mac
Click on Apple logo and then select System Preferences
Click on Spotlight
Select Privacy tab and click on ‘+’ button to add the item to which you want to exclude from Spotlight search
To include the item back to Spotlight search, select that item and click ‘-‘ button
Close the windows to make the change affective