How to Edit Your Mac’s Hosts File From System Preferences
It's a time-honored hack: editing the hosts file on your computer to block websites, create local re-directs, and otherwise change what happens when you type particular domains into you address bar.