How to block websites that kill your productivity.
secretGeek .:dot Nuts about dot Net:.
home .: about .: sign up .: sitemap .: secretGeek RSS

How to block websites that kill your productivity.

Yesterday I wasted about an hour of good time on Facebook. And worse, I found that even when I'd started doing productive work, I kept shifting back to facebook and wasting more of my time. I can't say that I gained anything out of this effort. It was a dead loss. So today, i removed it from my life, in a single step.

Sites like facebook are such effective time-wasters because they relax the 'executive brain'-- the centre responsible for focused decision making, and leave you at the mercy of your impulses and compulsions. Much like watching reality tv shows, or being the subject of hypnosis.

Many of us spend a lot of our time with the 'executive brain' switched off. We become volunatry zombies. Let's say that again, in big writing:

We Are Voluntary Zombies!!

In order to delete Facebook, i opened this file:

C:\WINDOWS\system32\drivers\etc\hosts

and I added this line:

0.0.0.0 www.facebook.com

Now when I go to facebook.com, it gets routed to 0.0.0.0 and the browser shows 'Connection closed by remote server'

I can bring it back of course, by deliberately unblocking the site.

But the key word is 'deliberate'. Giving in to temptation is not usually a deliberate act.

When given the chance to deliberate, i'll need to engage my 'executive brain', and one of two things will happen:

  1. I'll decide i don't really want to visit facebook, or
  2. I'll visit it briefly and conscientiously, then re-block it afterwards.

(note, to unblock it, just add a comment symbol, '#' to the front of that line in the hosts file)

And, at the risk of being tarred, feathered, shot, drawn, hung, quartered and teased -- i only realised I was wasting time at that site because of the concerned intervention of my good and discounted friend, TimeSnapper. Thanks ts for stepping in where others didn't dare!

I'm using TimeSnapper more every day. For monitoring, understanding, accounting, timesheeting... there's so many ways to benefit (yeh, and more to come of course. we never rest... we're like that terminator guy in that movie, what was it? terminator).

Anyway, I block whatever sites I feel I ought to, and I've got some half-formed ideas about a toy to automate the blocking and temporary unblocking. Do you see a need?

Some notes...

I do like some things about facebook: I'm back in contact with people I knew in primary school. This is excellent. I've got slightly better contact with friends of old i wanted to catch up with. If you read this blog, track me down and add me -- i'll sign in briefly and periodically. But mostly all the potential is wasted. Will i really catch up with ned for those beers? i'm afraid i might not. maybe the best possible life would be one where i acknowledge that neither me or ned have time for 237 close friends... and just get on with being good friends to the twenty or so friends we really deserve? i can't help but hear that robot voice from radiohead's OK Computer mockingly begging "keep in contact with old friends..."

Regarding the 'executive brain' -- my own executive brain told me not to waste time researching the best possible link for this topic. I get this concept from lectures i've listened to via a podcast called 'All in the mind' -- but i don't think it's quite the same as that spoken of in the book 'the executive brain'. Also, i'm a little perturbed by the idea that maybe by some definitions it's the executive brain that allows us to visit sites like facebook in the first place. It may be that the so-called 'executive' portion of our mind allows us to ignore other voices that say 'danger! timewaster! real work pending!'

And I recognise that most 'executives' i've known are the most un-inspired, un-productive timewasters of all.

Then again, Charles Darwin published nothing for twenty years as he pondered evolution. I guess we're lucky he wasn't spending the timing joining groups on facebook.





'Chris' on Fri, 19 Oct 2007 15:43:41 GMT, sez:

Yep, I see a need!

But make it scheduleable -- block my Facebook/Digg/Pownce/whatever access during my defined work hours, for instance, would be very nifty...



'Kyralessa' on Fri, 19 Oct 2007 17:05:13 GMT, sez:

A while back I read a good book called Block that talks about how to resolve that kind of thing...for those whose problems aren't as easy to fix as just modifying the hosts file:

http://www.amazon.com/dp/0818405163



'mike' on Sat, 20 Oct 2007 04:53:53 GMT, sez:

Where does "reading blogs" fit into this picture? :-)



'Matthew Martin' on Sat, 20 Oct 2007 12:01:26 GMT, sez:

I actually do the same thing to avoid goofing off at work, which can be challenging if it is a slow work day. Host file work until...it gets easier it to switch/edit the hosts file. Right now I have a batch file that makes the switch from a goof to work-mode (fun sites point to 0.0.0.0) host file. The batch file made goofing off worse. I haven't tried it but I got the idea reading this--a scheduled task that would put the host file back to the work file every 15 or so minutes. Even better would be some spurious steps like a password or a 5 minute wait before the switch happens.



'lb' on Sat, 20 Oct 2007 12:06:47 GMT, sez:

good stuff matthew.

i was thinking about this today. what if instead of 0.0.0.0 we used a 127.0.0.1, where a local website is running that says

"Do you really want to access [facebook]?

For 1 minute, 5 minutes or 10?"
and there's a captcha code you have to type in -- a longer amount of time requires a longer captcha code.

And there's charts showing you how often you goof off.



'Farmer Jeb' on Mon, 22 Oct 2007 00:59:10 GMT, sez:

Cripes, are you lot the sort of people that set your watch fast so you don't run late? Why do you have to trick yourself by fudging your own hosts file? Just don't fuck around with shit when you're on work time! Of course I have the "advantage" of an employer that always knows what I'm doing on work time and kicks my arse if it's not work. Very motivating. Shit! It's 12:58 - I'm off this now!!



'Andrew' on Mon, 22 Oct 2007 06:57:17 GMT, sez:

I'm liking the scheduled task idea - good one.

Surely there must be an easier way though? I'd pay good money for some mISV to stop me arsing about when I'm supposed to be working! (HINT. HINT)



'ben' on Mon, 22 Oct 2007 15:35:41 GMT, sez:

Yes, i see a need! I was looking for an app that did this a few months back.



'Matt Warren' on Tue, 30 Oct 2007 09:19:59 GMT, sez:

If any of you are using firefox, you can install the "Grease Monkey" add-on https://addons.mozilla.org/en-US/firefox/addon/748 and the "invisibility cloak" script to do this for you. See http://lifehacker.com/software/greasemonkey/invisibility-cloak-update-149252.php for more details. If support wildcards and you can time-limit it.a



'donotdisturb' on Tue, 13 Nov 2007 17:36:42 GMT, sez:

hi,

we came across this conversation just yesterday. We have built an application just for this purpose try it out at www.seeplain.com/donotdisturb.htm apologies for the deliberate plug ..BUT I thought you guys might be interested...

donotdisturb



'Joseph Kirk' on Sat, 17 Nov 2007 21:51:40 GMT, sez:

If I recive an notification from hotmail informing me I have an email from facebook, will the link still take me there?



'Darnell Fishback' on Mon, 19 Nov 2007 16:53:34 GMT, sez:

i love this site



'Ned' on Sun, 25 Nov 2007 14:16:52 GMT, sez:

I see how you feel. Drinks are off then.



'Gery' on Sun, 27 Jan 2008 21:48:51 GMT, sez:

heyy
i used that host thingi i did everything right but stil some websites r not blocked i dont know y plz help tanx



'yesenia' on Fri, 01 Feb 2008 20:07:33 GMT, sez:

ok can sumone plz tell me how to block a page i dot really get how u guys block them well im trying to block this page call unblockpoint.com because i went on at school and it took me to myspace and stuff like that but then every body saw me get on it and now want to block it because every body is getting on it now i want to block it plz plz plz tell me how to block and tell me a easy way to do it at skool



'puzzled' on Wed, 26 Mar 2008 13:07:29 GMT, sez:

simply visit..

C:\WINDOWS\system32\drivers\etc\hosts

How on earth do you get there? What is it? Not all of us are computer buffs...



'Gareth the lisp weenie' on Wed, 26 Mar 2008 20:53:20 GMT, sez:

@puzzled

>C:\WINDOWS\system32\drivers\etc\hosts

>How on earth do you get there?

if you don't know how to find this file then maybe you shouldn't be messing with your hosts file.

but you can open notepad (under accessories) and choose open file. Then paste "C:\WINDOWS\system32\drivers\etc\hosts" into the name of the file to open.

Hopefully though you won't have permission to do this and the computer will stop you before you truly harm yourself.



'Michael' on Sat, 26 Apr 2008 08:41:52 GMT, sez:

Bolcking IPs via host files may not be effective. There are always free proxies out there.

Better solution is to block on occurance of "facebook" or "myspace" keyword in the URL. This can be done with third party software such as Website Block from Ashkon.com



'jimbo7' on Sat, 26 Apr 2008 22:48:58 GMT, sez:

an even better way to block FB within linux would be to configure IPTABLES to block sending data to the facebook servers at the IP address level (use dig or ping to find these out).

eg my firewall script contains the following lines:
iptables -A OUTPUT -d 69.63.176.11 -j DROP
iptables -A OUTPUT -d 204.15.20.80 -j DROP
iptables -A OUTPUT -d 69.63.176.10 -j DROP
iptables -A OUTPUT -d 69.63.184.11 -j DROP



'Block Internet' on Mon, 28 Apr 2008 01:31:41 GMT, sez:

Our company is using WFilter to monitor, filter and block internet access.
It is very easy to block websites.



'Anonymous' on Wed, 30 Apr 2008 00:31:00 GMT, sez:

Thanks for putting this up.

I know nothing about simple fixes like this, and this definitely helps me from 'cyber stalking' people.

On a slightly related note, someone I know said I was trying to commit 'Zuckercide' by not being as active on Facebook. Stupid bastard.






name


website (optional)


enter the word:
 

comment (HTML not allowed)


All viewpoints welcome. But the right to delete any post for any reason is reserved. Don't make me do it. Comments may be republished, emailed to your loved ones or printed and used as toilet paper. Who reads this legal bit anyhow?

TimeSnapper is a life analysis system that stores and plays-back your computer use. It makes timesheet recording a breeze, helps you recover lost work and shows you how to sharpen your act.

TimeSnapper won last year's Developer Competition at Larkware.com, and is used by over 10,000 people.

Articles

Do they store the code for TFS in TFS? Do they store the code for TFS in TFS?
Sudden TimeSnapper Discount! Sudden TimeSnapper Discount!
How Can Microsoft Beat Google? How Can Microsoft Beat Google?
TimeSnapper 3.1: Attack of the the Red/Green Stripes TimeSnapper 3.1: Attack of the the Red/Green Stripes
21 tools used in our MicroISV 21 tools used in our MicroISV
Lost Treasures of the DOS World: tree! Lost Treasures of the DOS World: tree!
The Virtual Machine Machine and the Virtual Virtual Machine The Virtual Machine Machine and the Virtual Virtual Machine
Should Linq To Sql Go Should Linq To Sql Go "Open Source"?
Redux: New Synchronisation Idea Overlooked By Microsoft Redux: New Synchronisation Idea Overlooked By Microsoft
New Synchronisation Idea Overlooked By Microsoft Live team New Synchronisation Idea Overlooked By Microsoft Live team
Visual Studio UX Taskforce, Office UX Taskforce... etc. Visual Studio UX Taskforce, Office UX Taskforce... etc.
How to be Jeff Atwood How to be Jeff Atwood

Archives .: secretGeek :: Complete Archives :.
25 steps for building a Micro-ISV 25 steps for building a Micro-ISV
3 minute guides -- babysteps in new technologies: powershell, JSON, watir, F# 3 Minute Guide Series
Top 10 SecretGeek articles Top 10 SecretGeek articles

Downloads

TimeSnapper -- Automated Screenshot Journal TimeSnapper.com    
Version 3.1: instant productivity profiles

ShinyPower (help with Powershell) ShinyPower
Now at CodePlex

Next Action NextAction
Managing the top of your mind



[powered by Google] 


Thai Erawan, Brisbane Restaurant, delicious thai food in paddington Thai Erawan, Brisbane Restaurant
World's Simplest Code Generator (html edition) World's Simplest Code Generator
Gradient Maker -- a tool for making background images that blend from one colour to another. Forget photoshop, this is the bomb. Gradient Maker
How to be depressed How to be depressed
You are not inadequate.



Recommended Reading

The Best Software Writing I
The Business Of Software (Eric Sink)

Recommended blogs

Jeff Atwood
Reginald Braithwaite
Joseph Cooney
Phil Haack
Scott Hanselman
Julia Lerman
Joel Pobar
Eric Sink
Joel Spolsky
Des Traynor

Aggregated Links

programming.reddit.com
dzone
dot net kicks

Human Link Machines

interesting finds
a continuous learner's weblog
arjan's world
n links today
new and notable
morning coffee
learning .net
weekly link post
(my del.icio.us account)

LinkedIn profile
 
home .: about .: sign up .: sitemap .: secretGeek RSS .: © Leon Bambrick 2006 .: privacy

home .: about .: sign up .: sitemap .: RSS .: © Leon Bambrick 2006 .: privacy