The best way to get work done is to get somewhere where you can focus. This includes not just location, but also mindset. If I really want to focus, I have to train myself to avoid thoughts like, "it would be nice if those exceptions that I just added to my hosts file would update themselves based on my browsing habits..."
I go somewhere alone, pop in ear buds playing some type of non-distracting noise, shutdown my email client, turn off my phone, and go to work.
There are other techniques that you can try, such as having three computers in separate rooms. One is for your work, another is for play (slashdot, TechCrunch, etc) and the last one is for communication (email, Facebook, twitter, etc) although those could fit under play as well.
ADHD drugs work great (specifically Concerta) but the side effects can be quite bothersome.
Is such a blacklist. Just helped me finishing my thesis.
I am also the kind of person who gets distracted rather easily as I have a really broad spectrum of hobbies/interests. I've tried some similar approaches without much success.
Back in old days when I was still a graduate student, I had a paper deadline due in a few days, but I was addictive in Slashdot discussion then. I experimented fully command line work environment: no browsers, no X-windows, only a few linux consoles you can switch among by pressing Alt-Fx. The transition was painful, as I had to look for command line equivalent to view pdf/ps/eps files, gdb is not as convenient as ddd, etc. However, my productivity gain was enormous, at least for the first a few days. The curve quickly flattened and began to fall, as I started to use command line browsers such as lynx/links and I discovered a few legacy games.
Another time I went even further: screw the Internet! I installed Slackware onto an old dell notebook and uninstalled all fun games and apps, unplug the wireless card and went to the public library nearby for a day. Almost the same result, I had done lots of task at an amazing speed initially. Then, I got bored, and wrote a frame-buffer based Galaga-like shooting game and played/improved it for the rest of the day.