Lifehacker: How to (Really) Block Distracting Websites with Your Hosts File

Lifehacker: How to (Really) Block Distracting Websites with Your Hosts File. “When you edit your hosts file, you’re telling your system to use a particular IP address instead of whatever your DNS server resolves to when you type a URL into your browser’s address bar. So, instead of facebook.com sending you to 31.13.71.36 (or whatever Facebook’s IP is when you read this article), you can have your browser send yourself to your own computer—127.0.0.1—which loads a fat pile of nothing on your screen.”