If a gambler is kept in a place or around people where he wouldn't have access to gambling, for few weeks, he'll have a rethink on his past gambling experiences. This will help the gambler to have a bit control over his gambling habit, in future, when he's out of the place. An addict will hardly change if gambling platforms are easily accessible to him. All the advise may not be effective if he still thinks of going to gamble.
When the gambling we do ends in defeat, we should stop gambling, to calm our thoughts, which if we continue it will just become a mess. If indeed this needs to be done by limiting their use or preventing them from being able to access the gambling platform, what kind of thing? Are you not allowed to use cell phones or anything else connected to the internet? or do meditation in an environment where there is no internet? maybe it can be done but I think everyone nowadays spends their daily lives using cellphones or the internet, so it might be difficult too.
That's one of the disadvantages of the internet lifestyle, but from experience it's achievable. An addict can be sent to rehab, although psychotherapists, claim that rehab doesn't work best in recuperating the brain of a gambling addict. But, in terms of taking a player off from gambling, rehab restricts the use of phones or the internet. He can be placed with people, but as I said, that wouldn't allow him to use his phone or access the internet. He'd be close-marked. But the best form of achieving this without causing extra mental pain to the addict is introducing them to something that'll keep them busy.
What he loves could be sports activities, steady conversations about his past, cooking challenges, etc. A lot of activities can remove a person's thoughts from his addiction for some while before he's allowed to use the internet to see how he's complying or adapting to developing his self-control. I've seen this work, but the addict needs to do this with old-time friends who care for him. The restrictions must be strict and observed, if he stays with people that completely disdain gambling, he wouldn't dare gambling in their midst without getting cautioned or punished.