Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
blocking google+ and gmail without blocking google as a search engine
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="McYukon" data-source="post: 1439460" data-attributes="member: 101117"><p>Not to hard to do, and unless they are computer savvy they will not figure it out.</p><p>Since GMail and Google+ both operate on their own subdomains so you can block them via the hosts file.</p><p></p><p>Open Terminal and enter:</p><p></p><p>[CODE]sudo nano /private/etc/hosts[/CODE]</p><p></p><p>Now add these two lines at the very bottom. You use the arrow keys to navigate.</p><p>The space between the IP and the domain name is a tab when you enter it.</p><p></p><p>127.0.0.1 plus.google.com</p><p>127.0.0.1 mail.google.com</p><p></p><p>To save changes: control+o then control+m</p><p>To exit: control+x</p><p></p><p>Then run this to make the rules active.</p><p>[CODE]sudo dscacheutil -flushcache[/CODE]</p><p></p><p>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. <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="McYukon, post: 1439460, member: 101117"] 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[/CODE] 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[/CODE] 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. :) [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
blocking google+ and gmail without blocking google as a search engine
Top