I've been using Freedom for this for some time. I would recommend using these tools.
When you site down and want to get something done you just block out a few hours where you can't access the sites that distract you. It is really good for focus. I thought I could do this with will power alone but these sorts of tools really do help.
Does freedom allow you to block apps? I have it and it works nicely for safari and my Mac. I haven't been successful in trying to have it block apps. Maybe because I have an ancient iPhone.
It allows you to install a vpn on iOS that blocks traffic to domains on your blocklist, effectively blocking apps (unless you download things offline like YouTube videos or Podcasts).
When you site down and want to get something done you just block out a few hours where you can't access the sites that distract you. It is really good for focus. I thought I could do this with will power alone but these sorts of tools really do help.