Save yourself from Reddit, Hacker News, Slashdot…

As Paul Graham writes, everything is becoming more addictive.

This includes the websites which waste most of my time on the planet; reddit, HN, slashdot and others. But, you can use your long range planning to cut short your lizard brain from going click-click-click all day. How? By redirecting reddit to something more useful.

What we can do is this: Whenever you type ‘’ in to your browser, we can redirect to something which blocks reddit and reminds you to try and be more productive.

On a mac, type this;

sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.httpd.plist

That will start the apache web server. Next;

sudo nano /Library/WebServer/Documents/index.html.en

Edit your index file to look like this;

<script type=”text/javascript”>
window.location = “”
</head><body><h1>It works!</h1></body></html>

Now any hit to your apache will redirect to this image:

Working Car

Try this by going to http://localhost/ in a browser. Now we need to redirect sites which suck up all your time;

sudo nano /private/etc/hosts

Keep the stuff in there, and add this to the end;

This causes your hostname resolver to think that reddit is running on your machine. Which then redirects in to cat territory.

That’s it. Now when you try to browse some time-sucking website you’ll be reminded that it’s better to go do some work.

3 Responses to Save yourself from Reddit, Hacker News, Slashdot…

  1. Sean March 19, 2013 at 3:37 pm #

    This is what we did to coworkers computers when they went to lunch, except the redirects were to more incriminating urls. Who would of thought it could have actually made us more productive…

  2. Chris April 13, 2013 at 8:22 pm #

    Is it possible to do this at a set time daily just say at lunchtime you are allowed to view these sites should you wish. Since it’s a redirect it’s not actually blocking them so a ban can’t be lifted for the time period.

Powered by WordPress. Designed by WooThemes