Jump to content

Block Websites

Recommended Posts

Is it possible to build a workflow that block some website and another to stop blocking them?

could be based on edit the host file or there is some other way to do it?




This would usually be done with a proxy. A hosts file COULD do it but.. editing it would require admin permissions unless you modified its permissions but, that's not something I'd recommend

Link to comment

You'd probably want the proxy running all the time (you have to mess with System Preferences to set/unset a proxy server).


If you're using squid (from homebrew), you could just activate/deactivate (i.e. comment out) an ACL list and send a HUP to the proxy to load the new settings.


Dunno about blocking apps. You could probably prevent some apps from starting by setting them to blocked in Gatekeeper, but I don't know if that would work for Mac App Store apps.


Quitting apps should be fairly straightforward, though.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...