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: - I'll decide i don't really want to visit facebook, or
- 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.
'maiyoora' on Sat, 13 Sep 2008 04:15:42 GMT, sez: maiyoo
'buzzberger' on Thu, 13 Nov 2008 14:14:41 GMT, sez: This worked fine until the little SOB found the notepad file. Now he switches it on and off when I'm not around. Got any ideas on how to block access to that file...can I password protect it? Hope you can help me out.Thanks
'The Mikeness' on Thu, 27 Nov 2008 16:09:37 GMT, sez: most routers have time restrictions and domain name blocking capabilities now, if you're gonna be using the HOSTS file, I also would suggest using these if applicable.
If you have a wireless network for laptops it makes sense to have the same blocks on your wired and wireless networks, hint hint.
'The Mikeness' on Thu, 27 Nov 2008 16:13:12 GMT, sez: As for restricting access to the file, non-admin users shouldnt be able to modify this file, so if you can take away their admin access that would prevent someone from tampering with it.
If you have Active Directory on the system you have more fine grained control, like you could make the domain admin user(s) be the only ones with write access to the file, and other admins or power users, etc, have no access.
'mi' on Tue, 13 Jan 2009 12:01:58 GMT, sez: how do you get the hosts file able to edit?
I saw that the etc folder and therefore its subsidiary files - in this case , the hosts file - are read only. I changed the attribute of the etc folder to not be read only, but it did not stick. I am the administrator of the computer. pls advise w/o editorial comment. thanks
'lb' on Tue, 13 Jan 2009 17:18:19 GMT, sez: @mi
the trick is to copy the file to another location, change it there, and then copy it back to the "etc" folder. (you'll get prompted to confirm at that point)
lb
'Sue' on Mon, 23 Feb 2009 01:01:45 GMT, sez: Ok so I've done this, but how do I unblock if I want to? Where do I put the #???
'tony' on Sat, 28 Feb 2009 02:21:45 GMT, sez: @Sue: you put the # sign at the beginning of the line you want to have ignored.
'MOM' on Mon, 23 Mar 2009 21:29:33 GMT, sez: I have doe this in the past and it worked, but it no longer seems to work. I want to use it to block access to runescape until my son;s homework is done.
Also, was able to block facebook but not both at once. I'd be willing to buy software if I knew it would work..
'fatima' on Fri, 03 Apr 2009 00:31:58 GMT, sez: Hi,
The tip doesn't seem to work for me. What did I do wrong? The checked the notepad and it's not "read-only."
START >> RUN
C:\WINDOWS\system32\drivers\etc\hosts
0.0.0.0 www.facebook.com
SAVE >> EXIT
Please help. Thank you.
'lb' on Fri, 03 Apr 2009 01:31:39 GMT, sez: @fatima
notepad, by default, will add a ".txt" extension onto a file.
So it may have saved the file as
C:\WINDOWS\system32\drivers\etc\hosts.txt
You need to rename that file to:
C:\WINDOWS\system32\drivers\etc\hosts
(i.e., remove the extension)
'Rosanna' on Wed, 15 Apr 2009 21:26:25 GMT, sez: This is so EASY really, you don't have to fiddle about with code or system files. You can literally go to your internet options and add facebook to the "blocked content" list. If you are using Opera, like me, this does not work but you can easily go to:
"Tools > Advanced > Blocked Content" in the browser and simply add it to that list.
Using some sort of time delay would be pretty useless-either have some self control or just unblock it when your finished working.
You guys are over-complicating things, if you're that bothered, LEAVE THE DAMN SITE!!
'sheena' on Sat, 02 May 2009 14:31:35 GMT, sez: hey...thanks a lot.!!
this helped me a lot...
i have my exams starting day after and facebook (especially that wicked Texas hold em poker) was swallowing my time...thanks to this 5 step guideline of yours...I have successfully casted fb outta my exam-period life!
XO
-Sheena
'chris' on Sun, 24 May 2009 06:09:08 GMT, sez: Hi,
Hope you won't regard this as spam, but I was researching the 'block facebook' keyword for my site: and PIC-PC can block Facebook at certain times, or impose time limit. Categorises the web page by page title, so can be used on any web site, not just Facebook.
OK, it's aimed at kids, but could work for the willpower challenged...
Chris
'http://' on Wed, 10 Jun 2009 09:00:42 GMT, sez: 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.
hi i have tried this but i can go as far as sys 32 there is no host file in there ???
please help
'cosme' on Tue, 23 Jun 2009 12:23:02 GMT, sez: hi there, i tried the solution and it works well for one website, but when you want to block several websites it doesnt work, i tried to assign 0.0.0.0 to all the sites, but no result. also, different sequences like 0.0.0.1 or 00.0.0.0 etcany suggestions??
|