You can edit the hosts file using terminal, although I'd not recommend it if you're unsure what you're doing. But doing so you can block outgoing access to specified IP addresses or websites.
If you simply want to stop your mac connecting out, why do you not simply turn off your wifi so you're not connected to the internet?
For those of you that don't know what Little Snitch is, it's a Mac program that detects outbound connections and lets you set up rules to block connections. You can block access to certain sites outbound, block certain applications outbound, or prevent a single app from accessing a specific IP address or domain name outbound.
Alternatively a GUI firewall like Little Snitch would be a better option as it gives you very granular options for blocking incoming/outgoing traffic and is fairly easy to use and set up.
Before Activating The Program Blocking Outgoing Connections Using Little Snitch Or Ho
- How to block Little Snitch from calling home and killing numbers:
- 1. The first step is to block Little Snitch with Little Snitch. Create two new rules in Little Snitch as below:
- a) Deny connections to Server Hostname http://www.obdev.at in LS Configuration. The address that will appear if you do it correctly is 80.237.144.65. Save.
- and the next is:
- b) Deny connections in LS Config to the application Little Snitch UIAgent (navigate to /Library/Little Snitch/Little Snitch UIAgent.app, any server, any port.
- 2. After that is done, open the Terminal (in your Utilities) and paste in:
- sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /etc/hosts
- (Hit return and type in your admin password). A TextEdit window will open behind the Terminal window. Command+Tab to it - this is your hosts file.
- 3. Place your cursor at the end of the text there, type or leave one vertical space and paste in the following:
- # Block Little Snitch
- 4. Close TextEdit, hit Command+Tab to return to the Terminal window, and paste in the following:
- sudo dscacheutil -flushcache
- 5. Hit the Return key and quit Terminal. You're finished now.
- 6. Easy, isn't it. If only everyone would do this, the developer would cease and desist from killing the number that you personally are using successfully on your Mac. At least until the next version is released…