Search for something like "Self Control" for Chrome - I use the OS X version when I need to get stuff done (it blocks entirely domains/IPs), and it's wonderful.
For your phone, just turn the wifi off, disable cell data for your browsers, keep data for whatever you really, really need, and go that way. Set your phone physically away from you.