Well that's a good suggestion right there.
If you really want to quit or stop online gambling you should control yourself first, because we know that no matter how many casino adds you block if you really can't control yourself you can easily unblock it if you have internet and wanna play right? Because addiction is really hard to resist if you're not really committed with your goals about quitting. Maybe tell to your family that you have a problem with gambling and you can't stop it. Tell to your friends too so they can help you out, remember you're not alone. You have family and friends right there.
Find another habit is a good idea also .