Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ask HN: Low performance impact way to toggle block a domain on OS X?
2 points by notheguyouthink on April 24, 2017 | hide | past | favorite | 2 comments
I'm looking to block time-wasting sites temporarily on my work laptop. I say temporarily because frequently i'll browse language specific subs via Google when looking for language libraries that people like, etc. Ie, Reddit does have work applications for me, and i can't purely block it entirely.

With that said, i'd love to help break my habit of alt tabbing and opening Reddit.com/r/all any time i hit compile or ran long running processes. Unfortunately my work laptop is very low RAM, and i fear proxies/etc that might slow things down more than i already feel it is haha.

What might be a good and performant way to do achieve what i'm after?

Thanks!



This method for blocking web sites by hand works on MacOS, Linux and Windows with no performance overhead

http://www.imore.com/how-edit-your-macs-hosts-file-and-why-y...

You could write some script to automate this process, swap one file for another, etc.


I just edit the /etc/hosts on my MAc. I have HN, Reddit, Wikipedia, and most video sites blocked. (I'm typing this from my phone)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: