/etc/hosts

spankaccount

Registered
I've been using a strict hosts file on Unix machines for years as a cheap and safe way to block adds. Here is an example of what I'm talking about...

http://someonewhocares.org/hosts/

Os X has an /etc/hosts file... But I have a suspicion that I probably shouldn't muck with that. Whats the correct way to proceed?
 
You can load the hosts file into the netinfo database with the niload command. Something like

niload hosts . < /etc/hosts

should do it. I just skimmed the manpage, so there might need to be more arguments or something.
 
Back
Top