If you get distracted by certain websites like facebook.com , just put it in the list and execute the program in command prompt.
e.g. python website_blocker.pyw
You can set the times the website should be blocked and the times it shouldn't be. So that your working hour and relaxing time are taken care of.