How to censor websites from yourself

Once and awhile I find myself stuck in a very bad habit. I’ll refresh the page of a website constantly, because I love the look, or I want to feel totally ‘up to speed’ on what’s happening in an industry. These are terrible habits, because they make you way less productive, and most sites are just huge distractions with lame out of date material (Slashdot being the best example).

What I do to get around my refreshaholicism is to add the site to my RSS reader (Google Reader) then if I still find myself visiting a news site more than once a day, I’ll add it to my /etc/hosts file so that the DNS doesn’t resolve properly. This lets you continue to view stories via RSS but removes the eye candy – and more importantly makes you stop wasting time. It breaks your habit.

To add a website to your /etc/hosts on a mac or on linux do the following


[509] trevoro 21:42:49 [ hyperion:~ ]
# sudo vi /etc/hosts
Password:

Add the website on the same line that has the 127.0.0.1 entry


##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost hyperion
255.255.255.255 broadcasthost
::1 localhost hyperion
fe80::1%lo0 localhost
127.0.0.1 popurls.com www.popurls.com slashdot.org

Save and exit. Now when you try and access slashdot.org, you’ll try hitting your own computer instead. If you want to get complicated you can put up some negative reinforcement page that answers requests for all hosts.

blog comments powered by Disqus

google.load("language", "1"); var curstate = 0; var hasloaded = 0; function bnc_show_translated() { if (hasloaded == 0) { bnc_lang_callback(); hasloaded = 1; } for (i = 0; i < 0; i++) { var elem = $("bnc_original_" + i); if (elem) { if (curstate) { elem.show(); } else { elem.hide(); } } } for (i = 0; i < 0; i++) { var elem = $("bnc_trans_" + i); if (elem) { if (curstate) { elem.hide(); } else { elem.show(); } } } if (curstate) { $("bnc_trans_state1").show(); $("bnc_trans_state2").hide(); curstate = 0; } else { $("bnc_trans_state1").hide(); $("bnc_trans_state2").show(); curstate = 1; } } function bnc_detect_div(div_id) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; if (text.length > 0) { google.language.detect(text, function(result) { if (!result.error) { if (result.language != "en") { if (result.confidence > 0.25) { $("bnc_translating").show(); bnc_xlate_div(result.language, div_id, "en"); } } } } ); } } } function bnc_xlate_div(src_lang,div_id,o_lang) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; google.language.translate(text, src_lang, o_lang, function(result) { var translated = document.getElementById(div_id); if (result.translation) { translated.innerHTML = result.translation; } }); } } function bnc_lang_callback() { } function bnc_startup() { bnc_xlate_div("en", "bnc_translate_info", "en"); bnc_xlate_div("en", "bnc_translate_info2", "en"); } google.setOnLoadCallback(bnc_startup);