If you're getting to the point where you have to open a terminal, elevate to root and edit your hosts file, that's beyond a bored impulse. You know exactly what you're doing and you can stop yourself. That tiny bit of friction is enough to defeat the ingrained impulses and make you think.

> That tiny bit of friction is enough to defeat the ingrained impulses

I don't know how people can keep saying this when I have first hand experience with it not being enough

People exist on a wide continuum of impulsivity. I have ADHD and nothing short of truly unbypassable restrictions on all my devices are enough. Mail me if interested.