I've been using an app called Concentrate (http://www.getconcentrating.com/) for probably 5 years that does the same thing, but it also lets you define apps and services to block (so for example, if I want to get really focussed, I block my Mail app so that I can't check it for the next hour).