The option that I am talking about is called Stealth Mode. It lets you make your Mac a little more secure by not letting it respond to any discovery attempts. You do not need a third-party app as the feature is available right within the Firewall app. Here’s how you can use it.
Turning on Stealth Mode
Click on the Apple logo in the top-left corner, and select the option that says “System Preferences …” to be taken to the system settings.
On the system settings panel, click on the option that says “Security & Privacy.”
Click on the “Firewall” tab on the screen that follows.
If the Firewall is not enabled on your Mac, you need to first enable it. To do so, click on the lock icon in the bottom panel, enter in your admin password, and then click the option that says “Turn On Firewall.”
Once you have enabled the Firewall, a button called “Firewall Options …” should appear on your screen. Click on it.
When the Firewall Options panel opens, you will find a couple of settings. There should be an option called “Enable stealth mode” on the panel. Tick-mark the box for that option, and then click on “OK.”
Stealth Mode should now be enabled. From now on your Mac will not respond to any discovery attempts that take place on the Internet or on your network, and those people pushing the attempts wI’ll not be able to find your Mac provided the Stealth Mode remains enabled. For network troubleshooting or any other reason, if you wish to turn off Stealth Mode, you can do so by going into the Firewall Options and unchecking the checkbox that you selected in the previous steps.
Conclusion
Keeping your Mac safe is a top-most priority task, and if you are concerned about it, you can enable the above little feature that takes care of any attempts to find your Mac on the network you are connected to. All attempts to find your Mac will be in vain!