“Hosts file” basically translates domain names or NetBIOS names into IP addresses. It’s used for multiple purposes like blocking spyware and ctrolling the access to websites as well as network traffic. Based your requirements, you can edit your Mac’s Hosts file to remain in complete ctrol.
Before proceeding, there are a few things you need to keep in mind. For instance, you must have the IP address of the device you want to send your Mac to, or the domain names you wish to keep your computer away from. Thanks to the Terminal app, working Hosts file is a hassle-free experience.
How to Edit Hosts File Using Terminal Mac
sudo nano /etc/hosts
While mapping an IP address your local network to a domain, type in IP address,
- To keep your computer away from certain sites, make sure to use “127.0.0.1.”
- 127.0.0.1 will default to the…