I use the 'two computers' trick, but have it simplified to 'two screens', one for work and one for other stuff. Just getting up and changing screen is enough of a mental barrier to keep me on point.
I block many sites myself, even HN at times. I don't use any feed based apps either, instagram/fb/tiktok etc. I have had Instagram, I ditched it when they switched to infinite interest based feeds instead of just my friends.