Your Answer

Easy Way to Edit the Hosts File on a Mac

Is there no way to force a browser to adhere to YouTube's content ratings, say perhaps with a Chrome extension? It seems like something Google should implement, if they haven't already. Thanks again I will try the new recommendation you have. There is content control in youtube but my kids got around it :. I just don't want them to access it at all.

Thanks again :.

How to Enable Root User on OSX Lion/Mountain Lion

Thanks for good article. I did the same as you guided su but with little complex. Anyway finally its working fine great. Job done by assigning the necessary urls to I accidentally deleated my hosts file. How can I get it back? Do I need to reinstall everything? Lars van de Kerkhof created a Preferences Pane which does all this seamlessly. Good article. Is there a way to have one centralized host file? Lets say i'm moderating 10 macs either on 1 network or in different parts of the country, can i have all macs draw their host file from 1 server?

I use it to block access to known bad hosts used in malware but haven't done much on it since i started using Little Snitch. Thats a really good question, and I have no idea what the answer is! You could probably replace all target hosts with a "master" file via SSH with root access, but beyond that I don't know how you'd actually do it. Rob Nightingale. Top Deals.


  1. abrir ficheiros rar no mac.
  2. calories in a big mac and medium fries?
  3. What you’ll need.
  4. iso to img converter mac download;

Sometimes changes do not apply instantly and you may need to flush the DNS cache. On Mac, DNS cache can be easily flushed by executing the following command:. This is useful if your domain name is not registered or not pointed to the server, but you want to preview your website. In addition, you have also learned how to flush the DNS cache on Mac. I had this problem too but the solution is really easy Let's suppose you create an Alias in the host file to your machine with the name localhost2. When you type "localhost2" in the safari url bar you will notice in the dropdown that the default option is to search that in google, you should select the option saying "Go to Site localhost2".

I was copying, modifying and replacing the file using my own userid, every other program kept working except safari For an https address example. Like this:.

5 posts in this topic

You have to put the entry at the start of the host file. Very unorthodox. Haven't any personal experience of this though. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered.

Mac OS X Lion, /etc/hosts Bugs, and DNS Resolution – Justin Carmony

Ask Question. Asked 6 years, 2 months ago.

Active 5 months ago. Viewed 27k times. I have tried: disabling Safari extensions, clearing the cache sudo dscacheutil -flushcache , restarting Safari and the Mac altogether. I am running Safari 6. Host Database localhost is used to configure the loopback interface when the system is booting. Do not change this entry. Nicholas Tulach Nicholas Tulach 1 1 gold badge 3 3 silver badges 7 7 bronze badges. If there is no response, Safari will try to add www.

To the beginning of the URL.

How to Edit the Hosts File on Mac OS X

Facebook can then redirect the browser to Facebook. Try adding www. I thought this might be the case. I tried both www. Neither worked. What's interesting is that the line i use for redirecting search.

Helpful answers

Totally stumped on this one. Before: Fred Fred 1 1 silver badge 2 2 bronze badges. For example open it with vi. This is the correct answer. Tested in MacOS