I do the same, but recently I've tried something else that actually works! I turn the Wi-Fi off on my laptop. It's such a stupid trick, as I can just turn it back on, but it usually is enough of a friction to make me think twice "wait, am I ready to procrastinate?"
Yeah, that's a good one. I need constant internet access for my work though (software engineer) for slack, for testing, for docs, so it wouldn't work for me.
Anything that introduces enough friction that you stop and make a conscious decision will do the job.