Blocking websites on a Mac computer for Safari is relatively easy to set up using Mac OS X Mavericks Parental Controls. You can limit access to adult websites or any website you specify for any non-administrator account. Before handing a computer over to an employee or child, however, it's important that you test the settings first, since Parental Controls also blocks access to all secure websites, whether you intended to block them or not.
Launch System Preferences from the Apple menu and select Parental Controls. Click the Lock icon and enter your admin password when prompted. Select a user account, or add a new user account by clicking the + icon.
Click the Web tab and then select the Try to Limit Access to Adult Websites Automatically option. This blocks most websites featuring adult content unsafe for the workplace.
Click the Customize button to specify websites that you want to block or allow. To enter a website, click the + icon and enter the website's address.
Using another browser like Google Chrome or Mozilla Firefox bypasses Apple's Parental Controls. To prevent this, click the Apps tab and then expand the Other Apps icon in the Allowed Apps pane. Click the other Web browsers installed on the Mac to deselect them. Note that you can also limit access to adult content on the App Store here as well.
Click the Lock icon to prevent future changes to parental controls without an admin password.
Test Parental Controls
Restart the Mac and log in with the restricted account. Launch Safari and then navigate to a website that you want blocked. A notification appears stating that the site can't be accessed.
Go to several websites that you want to keep accessible. If the website is blocked, click the Add Website button and then enter your admin username and password to add it to the Parental Controls white list.