14 ms·
Step 1: sudo nano /etc/hosts Step 2: Type at bottom: 127.0.0.1 facebook.com 127.0.0.1 youtube.com 127.0.0.1 twitter.com 127.0.0.1 instagram.com Step 3: ct
by marikio 8y ago
Step 1: sudo nano /etc/hosts
Step 2:
Type at bottom:
127.0.0.1 facebook.com
127.0.0.1 youtube.com
127.0.0.1 twitter.com
127.0.0.1 instagram.com
Step 3: ctrl+"O"
- wxuan 8y agoWhat is this supposed to do, is it like a blocking thing?
- garrettgrimsley 8y agoYes, it routes requests for those hostnames to your local computer.
- Kluny 8y agoIt doesn't work though. All of those sites have backup domains that easily allow you to access them. To properly block all of facebook, you have to block something like 30 domains.
- durrrrrrrrrr 8y agoIt's not an anti-tracking thing. It's so you can't log in and read stuff, or get sucked down a distracting click-hole of videos, jokes, chit-chat and bullshit. It breaks the reflexive bookmarks, links from other sources and general habitual url visiting.
- Kluny 8y agoNo, I mean literally, if I paste those strings into my etc/hosts it won't block any of those sites. It simply doesn't work. You can still load the sites. It takes stronger measures to block them. I have to edit my hosts file all the time for work anyway, so I ended up installing SelfControl and I turn it on when I feel like I need it.
- jakobegger 8y agoYou forgot: 127.0.0.1 news.ycombinator.com
- garrettgrimsley 8y agoThere's "noprocrast: yes" for that
- ci5er 8y agoI see this kind of thing from time-to-time, and it baffles me. Surely, I know how to restore access. Why not ... just not go there? And if it's a problem (again, this baffles me, but no judgement - I binge drink on weekends which is surely worse), delete your accounts there?
- decasteve 8y agoIt’s easy to fall into the habit of hitting ctrl+t when a browser is open and typing in some website that distracts you from what you should be focused on. That brief cannot-be-opened page is often enough to stop you so that you can reset your focus back to what it was you were supposed to be doing.
- ci5er 8y agoThat makes sense. My downfall is double-clicking on a phrase, then right-clicking to search and then hours later... Not quite the same, but it sounds similar...
- Trundle 8y agoHaving to restore access gives you many more seconds of time between impulse and gratification where you can catch yourself in the process and have the internal "the fuck are you doing? Is that video even going to bring you a modicum of happiness? Get back to work and we can do something actually fun later you adhd fuck" talk.
- ci5er 8y agoDoes that work for you? Do you think it works in general? I do get the impulse to click on a link - and you are claiming that having to activate something (like I would do with uMatrix, I suppose?), makes you cognitively pause? I guess we're all wired differently. That one doesn't seem to be a challenge to me (although, I can assure you that there are other unhealthy things that I wish I could figure out how to stop doing).
- 8y ago
- ekr 8y agoThis can be improved a bit: Step 1: sudo vim /etc/hosts Step 2: Go 127.0.0.1 facebook.com 127.0.0.1 youtube.com 127.0.0.1 twitter.com 127.0.0.1 instagram.com Step 3: ZZ
- deadcoder0904 8y agoGet Focus - https://heyfocus.com https://heyfocus.com