pornhub.com is only way to stay away from gambling
i don't know if you are joking or not but it is a funny one if you are. but it is not a good suggestion if you aren't because basically you are saying you should replace one addiction with another addiction which is also a bad addiction and start fapping which is worse than gambling

It can help maybe but that is not that best thing that you can do to stay away, you just have to find some other things that you like to do and that would be also much cheaper.
And you have to know by yourself that gambling is bad to do and you have to know that you have to stop when you are becoming poor.