

This method changes the permissions on the hosts file! You have to use Nano in Terminal or Textwrangler to avoid that. If you cat it: Host Database localhost is used to configure the loopback interface when the system is booting. That was stopping me to work with angularjs project. Enjoy this tip? Subscribe to the OSXDaily newsletter to get more of our great Apple tips, tricks, and important news delivered to your inbox!Įnter your email address below. This is really the easiest way to restore the hosts file if you have messed it up, if it has become overly cluttered with tons of entries, or somehow other rendered the hosts database completely unusable. The most common problems are usually not saving the file as plain text, accidentally adding the file extension, or naming it incorrectly, so double-check that. Now to confirm the hosts file saved properly, go to the Terminal app and type the following. Host Database localhost is used to configure the loopback interface when the system is booting.ĭo not change this entry. Just copy and paste this over an existing hosts file then save it as plain text to restore it.
#Block adobe hosts list code
Contained within the code block is the original hosts file and the four default entries. No additional entries or modifications are included in the version below, which is a direct replica from that found in OS X Mavericks, making it safe to return to if you accidentally messed up the important hosts document during a change or adjustment. An example of that has been included below for convenience, but you can retrieve it from another Mac if need be as well. Because users may choose to adjust, change, or otherwise edit the hosts file for a variety of reasons, it can be easily subjected to user error, leading to a variety of undesirable network problems ranging from inaccessible network locations, network failures, web sites blocked or otherwise unable to load, even to failed iOS updates and various iTunes errors like the frequently encountered 17 and errors because the Apple servers have been blocked.
