The other option is what I'm running into in my current contract as a developer.
Work at a large healthcare company and they have everything locked down. And I mean EVERYTHING. No social media sites, no youtube, even 80% of the articles on HN are filtered out. Embedded videos? No way. Even a lot of images in the articles I read are filtered out as well.
On top of that? You have to agree to very strict email guidelines when you sign into your POP3 email accounts and oh yeah, the system automatically signs you out after 15 minutes. Not sure how many emails I've started and then look up and see the connection to my gmail account was terminated and I have to log back in to complete my email.
I won't even go into the lengthy process it took just to get Chrome installed on my laptop.
In a way, you have no option but to focus on work, they've effectively taken any and all distractions away from you, quite forcefully.