When I first realized that alcohol had a grip on me and I needed to sober up, I gave my bank/credit cards to my girlfriend to keep so I couldn't buy any booze. Obviously not a long-term solution, but it was a quick-fix for the first few days of detoxing/withdrawal.