blocking google+ and gmail without blocking google as a search engine

Joined
Aug 18, 2012
Messages
1
Reaction score
0
Points
1
I need to block access to gmail and google+ on my children's mac books. I had no problem doing this before, however ever since I upgraded to Mountain Lion, I am stumped on how to do this. Please advise.....:
 
Joined
May 14, 2009
Messages
2,052
Reaction score
136
Points
63
Location
Near Whitehorse, Yukon
Your Mac's Specs
2012 MBP i7 2.7 GHz 15" Matte - 16 GB RAM - 120 GB Intel SSD - 500 GB DataDoubler Mac OS 10.9
Not to hard to do, and unless they are computer savvy they will not figure it out.
Since GMail and Google+ both operate on their own subdomains so you can block them via the hosts file.

Open Terminal and enter:

Code:
sudo nano /private/etc/hosts

Now add these two lines at the very bottom. You use the arrow keys to navigate.
The space between the IP and the domain name is a tab when you enter it.

127.0.0.1 plus.google.com
127.0.0.1 mail.google.com

To save changes: control+o then control+m
To exit: control+x

Then run this to make the rules active.
Code:
sudo dscacheutil -flushcache

Now when someone tries to load plus.google.com, the system will check this file first, see that it needs to be redirected to 127.0.0.1 which is a loopback IP and error out because it can't find the server. :)
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top