Menu 1

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 ‘reddit.com’ 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;

<html>
<head>
<script type=”text/javascript”>
<!–
window.location = “http://cdn.memegenerator.net/instances/400x/20498365.jpg”
//–>
</script>
</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;

127.0.0.1 reddit.com www.reddit.com
127.0.0.1 slashdot.org www.slashdot.org
127.0.0.1 news.ycombinator.com

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