Jump to content
eriksatie

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?

 

thanks

Share this post


Link to post

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?

 

thanks

 

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

Share this post


Link to post

ok I was trying to edit host file and first problem was permissions. so I would need a proxy server, configure it with blocked sites and launch it with a workflow. this should do the job.

 

I'd like also to block apps... how can I block an app from being opened?

 

basically, I'm trying to mimic this app: https://heyfocus.com

Share this post


Link to post

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.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...