Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > restrict web browsing to opt-in via /etc/hosts?

restrict web browsing to opt-in via /etc/hosts?
Thread Tools
Dedicated MacNNer
Join Date: Jun 2000
Status: Offline
Reply With Quote
Sep 15, 2004, 07:39 AM
 
i'm aware that you can use the /etc/hosts file to 'filter' out web sites you would not like a user of your computer to use, for example by adding the line

127.0.0.1 www.microsoft.com

with the effect that the computer will be able to go to every site on the web except what you specify in the hosts file.

my question: is there any way to do the reverse, i.e. restrict the computer so that it can only navigate to specified web sites, and no others?

tia for any tips,
ox
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Sep 15, 2004, 09:00 AM
 
why not use IPFW to do that?
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
JKT
Professional Poster
Join Date: Jan 2002
Location: London, UK
Status: Offline
Reply With Quote
Sep 15, 2004, 09:25 AM
 
If the screenshots at AppleInsider are anything to go by, the next version of OS X will include this as a feature for Safari (and maybe other browsers??) - you will have the option to restrict access to sites that you have added to a "whitelist" and any others will be blocked. Addition of new sites to the whitelist will require you to enter an admin password. I assume this is for greater parental or workplace control.
     
OmniX  (op)
Dedicated MacNNer
Join Date: Jun 2000
Status: Offline
Reply With Quote
Sep 15, 2004, 09:51 AM
 
JKT - looks interesting but I'd rather not wait until Tiger!!!

Kristoff, can you provide any more specific instructions on how to configure IPFW?
     
Mac Elite
Join Date: Sep 2000
Location: in front of the keyboard
Status: Offline
Reply With Quote
Sep 15, 2004, 10:31 AM
 
allow macnn:
ipfw add allow tcp from any to forums.macnn.com 80
drop everything else:
ipfw add drop tcp from any to any 80
signatures are a waste of bandwidth
especially ones with political tripe in them.
     
OmniX  (op)
Dedicated MacNNer
Join Date: Jun 2000
Status: Offline
Reply With Quote
Sep 15, 2004, 10:51 AM
 
kristoff - i really have no experience though using ipfw; am I correct in assuming that those two lines should go in /etc/ipfw.conf?

is there anything else one should know about ipfw?

are changes made to ipfw.conf instantly reflected, or is a reboot of ipfw (or the entire computer) necessary?

with continued thanks,
ox
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 04:39 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2