One of the best things about addiction is that when a gambler has come to recognize addiction as a problem, it means the effect of being affected is really disturbing the person, prompting them to look for ways to stop. If you know that blocking websites can help you with gambling addiction, or whatever you can get rid of to end your addiction, I think you are taking the best step to fight against gambling addiction. Many addicted gamblers haven't yet discovered the effects of gambling, and they are not even aware of their gambling addiction. If staying away from computer devices can help you overcome addiction, I would advise you to do so.
You are absolutely right that's the real truth about it because as a gambler noing when you are addicted to gambling and take a safety conscious is actually what makes you a good gambler. Though, there are so many addicted gamblers out there that doesn't know how to take a precaution about addiction, because they failed to understand that they are addicted to gambling. However, OP did very well because it is only when a gambler realize him gambling addiction that he can easily make a change in gambling.