The one thing that helped me in this is a great Chrome plugin, Stayfocusd [1]. Uninstall any other browser and block your access to those sites. Combining this with blocking even the "chrome://extensions" page, you have a perfect tool to avoid procrastination.
I have to access HN on my phone because I've blocked this domain, reddit, and about 20 others in my /etc/hosts in attempt to stay focused. Instead I just find more obscure shit to get distracted with until I realize it's a distraction and ban it
[1]: https://chrome.google.com/webstore/detail/stayfocusd/laankej...