It is not that of a magic trick, but on my router, I've created a blacklist of websites that I can't access between 8:30 and 17:00. That list is huge and basically contains everything from news media, Fediverse/Reddit, YouTube, Gaming websites, etc. Helps a bit.