How to Edit Hosts File Mac

“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  your Mac

How to Edit Hosts File Using Terminal Mac

Step #1. Launch Finder app your Mac and then click Applicatis from the sidebar. Next, double-click Utilities. Then, double-click Terminal as well.

Or simply search Terminal in the Spotlight.

Open Terminal  Mac from Spotlight Search

Step #2. Now, enter the command: sudo nano /etc/hosts and then hit return.

Step #3. Next up, enter the administrator password and then press return.

Enter System Password  Mac

Step #4. Nano text editor will appear. Now, to add a new device or domain, simply move the cursor using the arrow keys and positi it after the text in the window.

Hosts File  Mac

While mapping an IP address your local network to a domain, type in IP address, press ‘Tab’ Keyboard and enter the domain name. (Make sure to enter all the possible combinatis i.e. www.facebook.com and facebook.com)

  • To keep your computer away from certain sites, make sure to use “127.0.0.1.”
  • 127.0.0.1 will default to the…

We will be happy to hear your thoughts

      Leave a Reply

      AppleiPhonestop - Apple iPhone News and Rumours All Day
      Logo
      Enable registration in settings - general
      Compare items
      • Laptops (0)
      Compare
      0