What about limiting your budget for gambling ?
The limited budget for gambling will not allow you to become addicted to gambling, because once you are out of your budget you will automatically quit it for the day or week, according to your plan. The less funds you allocate to gambling, the better you will remain safe from the risks of losing money.
That could work for those that are not addicted to gambling so they develop the discipline to only gamble when they have enough funds to do so, but for the person that is addicted to gambling such a thing will not work since he does not have the self-control necessary to pull it off, besides it can be argued whether or not an addicted person will even think of something like that as most of them do not think they have a problem, the best thing to do is to receive professional help and for the most part to avoid the temptation to gamble again.