There are a number of tools you can use to block access to sites that you find distracting (I use StayFocusd, a Chrome extension).
You can also track how long you send on productive/unproductive activities with Rescue Time.
Finally, one thing I do from time to time is take the laptop to a different location (library, coffee shop) where there's Internet access. I don't bring a charger so I have exactly "one battery" to get my work done. No time for anything else.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
There are a number of tools you can use to block access to sites that you find distracting (I use StayFocusd, a Chrome extension).
You can also track how long you send on productive/unproductive activities with Rescue Time.
Finally, one thing I do from time to time is take the laptop to a different location (library, coffee shop) where there's Internet access. I don't bring a charger so I have exactly "one battery" to get my work done. No time for anything else.