Forest is probably the leading free app to help you stay focused and avoid distractions. It requires you to self monitor and regulate how you use the internet by blocking sites that are distracting for periods of time.
Engross is more than a focus app as it has built-in features for task management etc. Inspired by the pomodoro technique that breaks down tasks to intervals