Apple have built in website filtering into OS X under the ‘System Preferences’ – ‘Parental Controls’ but Parental Control cannot be enabled for administrator accounts (which is probably the account you are running from) and Parental Controls also becomes hard to manage if you have multiple users because you need to set it up for each one. Here’s how to set up internet filtering on your whole home network at once using a free service called OpenDNS. Once it’s set up this can help block unsuitable content from reaching any computer, iphone, ipad etc connected to your internet. This approach can be used at home, school, or the workplace.
DNS Stands for domain name server. A DNS is like a big phonebook and every time your computer or iPad or iPhone goes to a webpage (e.g. apple.com) it looks up the name you have given it (apple.com) and converts it to a number (e.g. 220.127.116.11) which it then uses to find the webpage.
This what you do when you phone someone. You look up their name in a phone book to get their phone number and then you ring their phone number. A simple way of limiting the people who you could ring would be to not give you their phone number. That’s how web filtering with Open DNS works.
When you signed up for Internet access with your local Internet Provider they gave you a DNS number to put into your computer – something like 18.104.22.168. This number is the place your computer goes to look up the address of every page you visit.
Open DNS is a free DNS service, but it has settings to restrict what sites you can access. It’s like a phonebook with all the ‘unwanted’ phone numbers missing. To use open DNS you replace the DNS numbers on your computer with the Open DNS numbers. Your computer will be unable to find some websites because open DNS won’t give your computer the address when it asks for it.
I’ve tried to explain the concepts clearly, but getting it running can be tricky, so read on and you may need to get a computer friend to help you out!
Here’s how to set it up.
1. Have a look at this image. It should say “Use Open DNS”. After you switch to Open DNS the image will change and it will say “You’re using Open DNS”!
2. Go to opendns.com and set up a free account. Go to the open DNS dashboard and select Internet filtering, and the level of filtering you require. Here are what some of the options look like (click to enlarge):
3. Open your Router settings (the Router is the device that plugs into your internet connection and shares it with all your computers). We are setting this up on your router so that it will affect all your computers. Find the setting that says DNS Servers and put in the Open DNS server numbers. (Before you do this make a note of the old DNS settings, you will need them later when you are testing.) The Open DNS numbers are 22.214.171.124 and 126.96.36.199
4. Restart your computer and your router, and come back to this page and a little button in step one should have changed to show you that you are now using OpenDNS.
5. Go to www.internetbadguys.com (a test site) and you should get a blocked message something like this:
6. Securing it.
What we had just done is we have made the default DNS server the server that your computer goes to. The problem is that if you manually type in DNS settings in your computer network settings it will bypass the Open DNS settings. So what we need to do now is to help your router not to allow any other DNS settings through. To do this go to the firewall settings on your router (not your computer) and block all outgoing TCP and UDP requests on port 53 that are not going to Open DNS. This can be a little bit tricky, but here’s how I did it on my router, which is a Draytek Vigor 2700.
I had to add three rules.
1. allow DNS lookups that are going to open DNS 188.8.131.52
2. allow DNS lookups that are going to open DNS 184.108.40.206
3. block any other DNS lookups.
Here’s where I added the rules:
Here are the three rules I added:
Rule 1 & 2 (called rule 1 and 2 because there was already a rule in there)
Rule 3 (called rule 4).
Type in your old DNS settings into your Macintosh system preferences, ( system preferences – network settings- DNS Server) and press apply.
Open Safari and type in an address (eg apple.com) – you should not be able to go to any websites at all.
Delete the DNS address from your Macintosh system preferences, the open DNS settings should reappear, and you should be able to browse the web, but not restricted sites.
The only way I can think of getting round this without the router password is to reset the router to the default factory settings, but then OpenDNS will stop altogether, and you’ll notice someone is playing with things!