I want to hear more ideas about how someone stops or controls their gambling habits.

I started to bet in February 2014 and the addiction started also immediately. I stopped betting in August 2019 because the addiction made my life miserable. I gambled in September 2020 but I stopped again when I noticed that I may get addicted. Two months later, I gambled again but I noticed I have control over gambling. I did not gamble often anymore till today and I use small amount of money.
What that corrected me was that I stopped thinking about how to make money from gambling. I realized that I was fooling myself that it is not possible and that made me quit problem gambling.