

I hooked it up and blocked twitter and youtube via Parental Control. I decided to take one of the computers from school home. I believe I have figured out why blocking through the /etc/hosts did not work. I’ve gotten enough messages about the topic that I felt it was worth repeating, even though the methodology is the same. Note: This tip was covered a few years back with instructions to block websites on a Mac. If you want a network wide solution to blocking websites or any other network services, you’d need to modify your routers settings. For this purpose, you can get any websites IP address by typing nslookup into the Terminal. If you wanted to be tricky you could point the blocked domain to a different IP address entirely, like 74.125.19.103 ( in English). This whole thing works by pointing the domains you want blocked to your machines localhost (127.0.0.1). Unblocking the sites is simply a matter of removing them from the /etc/hosts file and flushing your DNS cache again.

Next you will need to flush your DNS cache for the changes to take effect, this is done through the Terminal as well with the following command in 10.6: * Exit and save /etc/hosts by hitting Control+O and then the Return key * You can block any website by following the format of: * Using your arrow keys navigate down and create a new line in the file * Launch the Terminal and type the following command, you will need to enter a root password: Easily block websites from being accessed in Safari, Firefox, or the Chrome browser
