Absolutely, try your idea of only internet at work. If that impairs your social life too much, maybe allow yourself messaging applications but not sites.
I've generally found there are a couple of main culprits for me -- Reddit, HN, Twitter -- and banning myself from them during work hours fixes things. YMMV.