just play online games and avoid looking to some sites when you know that the online game you are playing is hosting some kind of betting. You can limit you bankroll so you can avoid spending too much while still gambling and make it disappear little by little.
That won't work, playing any amount runs the risk of winning and playing more and more. Just turn your internet off, read, meditate, have sex and fill your lives with other hobbies to take your mind off.
Easier said than done. That's not how it works when someone wants to overcome an addiction. Addicted people just can't live without the subject of their addiction so it's better to give it to them but in tiny portions. Playing from the faucets only and never depositing your money on a gambling site would be my suggestion to quit gambling.