How to block applications from accessing the internet?

Joined
Nov 15, 2008
Messages
26
Reaction score
0
Points
1
I'm looking for an application or way that can block applications from accessing the internet. I've heard of Little Snitch. But I was wondering if there are any free alternatives since that's that only thing I really want to do. thanks.
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
Do you want to just block access to the internet or stop a user using certain applications
 
OP
F
Joined
Nov 15, 2008
Messages
26
Reaction score
0
Points
1
I just want to stop an application from accessing the internet. I usually just do this on my pc firewall. but im not sure about doing it on mac.
newly converted. ;-]
 
OP
F
Joined
Nov 15, 2008
Messages
26
Reaction score
0
Points
1
I did try little snitch. but honestly i have no idea how to use it. and it asks me about every little thing and brings notifications about everything. All I want to do is block ONE application from accessing the internet. That's all.
 
Joined
Mar 30, 2004
Messages
4,744
Reaction score
381
Points
83
Location
USA
Your Mac's Specs
12" Apple PowerBook G4 (1.5GHz)
The firewall in Leopard has an application mode.

Seriously, though...if an application is misbehaving, just delete it. It's not worth fighting.
 
Joined
Mar 8, 2009
Messages
1
Reaction score
0
Points
1
You can use sandbox-exec to block an application from accessing the net.

First create a sandbox profile that blocks net access. This is just a file which will contain something like

Code:
(version 1)
(allow default)
(block network*)

If you look in /usr/share/sandbox there are some profiles you can look at if you want to figure out anything fancier.

Then you run the application using sandbox-exec and passing in the profile you just created i.e
Code:
sandbox-exec -f nonet.sb application-binary
Where nonet.sb is the name of the file you created above and application-binary is the path to the executable you want to run (If the app is in an app bundle you'll have to hunt out the actual binary in the bundles MacOS directory).
 
Joined
Aug 3, 2010
Messages
1
Reaction score
0
Points
1
Choose System Preferences from the Apple menu.

Click Security.

Click the Firewall tab.

Choose the third mode:
3. Set access for specific services and applications

You can click the "+" button to add an application to this list. You can select an application and click the "-" button to remove it. Control-clicking on the application name gives you the option to reveal the application's location in Finder.

Once you've added an application to the list, you can choose whether to allow or deny incoming connections for that application. You can even add command line applications to this list.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top