Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How to make changes to Mac /etc/hosts permanent?

I have a Mac Air that my little brother uses. Unfortunately, he likes to waste his time on computer games :(

To prevent him from doing that, I added a line akin to the following to my /etc/hosts/ file:

However, my /etc/hosts file always refreshes every time I reboot my Mac, so this line goes away every time I turn on my Mac.

How do I make permanent changes to my /etc/hosts file?

share|improve this question

marked as duplicate by Daniel Beck Dec 29 '12 at 18:13

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Maybe your little brother found out that this line in /etc/hosts is disturbing the access to his game site and thus he removed it? – ott-- Dec 29 '12 at 17:48
That's impossible :) He doesn't know my admin password, and su permissions are required to edit /etc/hosts. – David Faux Dec 29 '12 at 20:09
up vote 1 down vote accepted

The hosts file doesn't normally get reset in OS X. Are you using the Cisco AnyConnect VPN client on your computer? It'll reset the file based on /etc/, so if you're using it you need to make customizations both places. See this previous question and the Mac OS X Hints article that answered it.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged .