What you’ll need

Helpful answers

Why do you want to do that? The few people with a legitimate need to edit the hosts file already know how to do that. If you explain what you are trying to accomplish by editing the hosts file, we can give you a much better solution. Nov 8, 4: That support document says exactly the opposite - that editing the hosts file can cause sign in issues with Facetime Messages and Game Center.

How to edit the hosts file in OS X Lion (the very easy way)

Nov 8, 5: My issue got sorted out by editing the hosts file. There are applications for example SAP Enterprise Portal requires you to modify your hosts file without that it will not work. To comment them out, put a " " character without quotes and a space at the start of any line containing apple. Some third-party software installers may modify the hosts file without alerting you. Nov 8, 6: Stop a Mac from connecting to certain sites. Dec 26, Jun 15, 5: The newest version of TextWrangler has a "Show hidden items" on the Open dialog.

So, you can then get to anywhere in the file system.


  1. How to Edit the Hosts File on Mac OS X!
  2. How to Edit Hosts File on Mac!
  3. toast pour mac os 10.8;
  4. Step 2 – Open the host file.

It used to have an Open Hidden command, so if you have an older version, you can use that to open the file directly. Mar 19, Thank you, thank you, thank you!!

Step 1 – Opening Hosts File

TextWragler works great with OSX The Does anyone know what version of TextWrangler GUI is being shown in step 7 … because in the so called latest version 4. TextWrangler 4. I was using 4. Thanks for letting me know the GUI had changed!

Solved my problem after a lot of visited forums about this issue. Really helpful. A lot better than using the terminal and anything else.

Thank you. It skips asking for my password. Mac OS X Simple Help. Wind January 26, , 1: Ross McKillop January 26, , 1: Wind — absolutely yes. For each line, any text after the pound sign is ignored by the computer, making it a good way to add notes and descriptions to your files. It also contains default IP values for localhost and broadcasthost.

The Mac OS X hosts file

A popular use for an edited hosts file is to block access to specific websites. To do this, type the IP address you wish to assign followed by a hostname. Now, whenever anyone using the Mac tries to go to www. Alternatively, you can enter the IP address of a valid site instead of 0. For example, The New York Times website at www. You can add as many entries to the hosts file as you wish by entering new mappings on each line.

Apple Footer

With the modified hosts file now in place, fire up your Web browser to test the changes. To get started, launch Terminal, type the following command, and press Return.