Most of the online casinos offer these tools to control your gambling: setting limits, reality check, close the account, etc. In addition, you can try out self-exclusion tools such as Gamban, Gamstop, Gamblock, Spelpaus, etc.