Now what should happen if the text editor decides to modify /etc/hosts without your knowledge?
This works better with a GUI, but you can adapt it to a console too.
Pop up a UAC prompt of course. It worked so well for Vista.
This works better with a GUI, but you can adapt it to a console too.