I also recommend using a program like Self Control[1] to blacklist distracting websites for really bad cases where you're not consciously opening a distracting website because it has become muscle memory.
In addition to using Self Control, I also like to run a small local web server to display a page like http://phylab.mtu.edu/~nckelley/Focus/ whenever I try to visit a distracting website.
I plan on experimenting with some negative reinforcement by building an Arduino device that shocks me whenever I visit a distracting website when I should be working :D.
In addition to using Self Control, I also like to run a small local web server to display a page like http://phylab.mtu.edu/~nckelley/Focus/ whenever I try to visit a distracting website.
I plan on experimenting with some negative reinforcement by building an Arduino device that shocks me whenever I visit a distracting website when I should be working :D.
[1]
Mac: http://visitsteve.com/made/selfcontrol/
Linux: http://svn.jklmnop.net/projects/SelfControl.html