Things You'll Need:
- Terminal utility (optional)
-
Step 1
Open the "System Preferences" utility located in the Applications folder on OS X.
-
Step 2
System Preferences WindowClick the "Accounts" icon in the System row.
-
Step 3
Unlock to add accountsClick the "lock" icon at the bottom of the accounts window to enable adding a new account. Enter your admin password when prompted.
-
Step 4
Add account buttonClick the + plus sign in the lower left to add a new account.
-
Step 5
New account windowEnter a name, short name, password, the password again and a password hint. Do not check off the "allow admin" box or this user will have full access to the computer, including adding and deleting accounts.
-
Step 6
Disable Automatic LoginClick "create account" and click the "Turn Off Automatic Login" button when prompted. This will force all users to login every time the computer starts.
-
Step 7
Parental control tabClick on the name of the new user in the list on the left side of the screen and click the "Parent Controls" tab at the top of the screen.
-
Step 8
Configure Safari controlsClick the check box next to Safari and click the "Configure" button to the right. The system will tell you to login as the new user and open Safari to configure the sites the user is allowed to visit.
-
Step 9
Return to Finder and select "Log Out" under the Apple menu, then login as the new user.
-
Step 10
Launch Safari and select "Preferences" and then "Security" from the Safari menu.
-
Step 11
Click to un-check the box next to "Enable Parental Controls." Enter your admin password and close the preferences box.
-
Step 12
Add bookmarks for all the allowed sites to the bookmarks bar and remove all other bookmarks.
-
Step 13
Return to Safari, and go to "Preferences" and "Security." Check off the box for "Enable Parental Controls" again and enter your admin password to lock in your changes. Now, only the sites you have bookmarked are accessible in this user account.
-
Step 1
Terminal application iconOpen the application Terminal which is located in "Applications"-->"Utilities" folder.
-
Step 2
Type the command: cp /etc/hosts ~/Desktop/hosts.txt to copy your current hosts.txt file to the desktop as backup.
-
Step 3
Type the command sudo pico /etc/hosts.
-
Step 4
Enter your Macintosh admin password and press Return/Enter.
-
Step 5
Add domain name to hosts fileUse the arrow key to move the block cursor down to the bottom of the file and enter the IP address 127.0.0.1 followed by the domain name you want to block. This tells the computer that the address for that domain is now IP number 127.0.0.1, which is your local Macintosh. Thus, the browser won't be able to resolve that domain to a web page.
-
Step 6
Hold down the CTRL key and type X to exit after you have entered all the domains you wish to block, on separate lines. You will be prompted to save. Type Y for Yes.
-
Step 7
Press Return/Enter again to confirm the file you want to write to is /etc/hosts.
-
Step 8
Click the "Terminal" menu and select "Quit Terminal" to exit.
-
Step 9
Website successfully blockedOpen Safari and type in the domains you blocked in the hosts file. All other browsers on your machine will be blocked from accessing that domain as well. You can enter as many domains as you want into the hosts file, but put each command on a new line and remember this action blocks them from all users of the computer, including you.












