I think you should go away at least from your pc for a while.
You should stop visiting the websites which you learned or gambled before .
Dont think anymore about gambling and you can do something different to avoid gamble or go to sleep if you are considering gambling
The sad thing is that when you try to tell them not to think about gambling, they will think about it more cause it is their habit to keep getting themselves involve in gambling. So if you keep thinking of gambling, i dont think you can even go to sleep cause your mind will be wide awake.
I guess that thing you said is already become their habit is really bad already. Usual addicted gambler will never go to that phase because there will be no cure if you already make gambling as your habit. That phase will sacrifice everything just to satisfy their lust for gambling no exception