Control your attention on the web – Block sites on certain days and times
github.com
github.com
Or circumvent it. I used a blocking plugin, until I've learned it does not affect other/new browser profiles. Some other low-level solutions I've tried could be bypassed Tor mode inside Brave browser. It seems like my brain just doesn't want to focus on the damn work, but rather on how to get that dopamine hit the easy way.
I find it rather useful :)
At DNS level, not just websites will be blocked, but also apps.
https://vonnik.substack.com/p/how-to-take-your-brain-back
ultimately, maintaining focus is tied to overall physical energy (because suppressing distractions consumes neurological energy), and that physical energy is dependent on both health and ultradian cycles. best to alternate between focus bouts and recovery periods.