Just blocking all websites except what I'm working on. I use Freedom.to
Setting it for very small bits of time helps. Like I know I need a couple hours. But I set it for half an hour in an hour so it's not threatening. I often find I get absorbed in the work in that half hour. Continue till I hit another block. Again set it that in half an hour everything else is blocked for another tiny bit of time.