3 ms·
Ask HN: Low performance impact way to toggle block a domain on OS X?
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!
- PaulHoule 10y agoThis 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-you-would-want 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.
- danielvf 10y agoI 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)