there are some programsapps you can get that will lock you out of distractions you can usually set them up to lock during certain times or for a specific number of hours that you specify  ive been using freedom for about a year though ive also been dabbling with focusme lately  none of them are perfect but they can probably help you to stay on the right path when you need to be productive