How to edit the Hosts file Macbook / iMac
The best way to work with the Hosts file is using the Terminal application found in your Mac’s Utilities folder. You’ll need to know the IP address of the device you’d like to send your Mac to, or the domain names you’re trying to keep your Mac away from. Double-click Terminal. type sudo nano /etc/hosts…