 |
 |
How do you block websites via the terminal in OS X?
|
 |
|
 |
|
Forum Regular
Join Date: Aug 2002
Location: Southern Ca.
Status:
Offline
|
|
A while back, I read somewhere that you can manually type in websites in the terminal that could be set up so that your mac can't go to these sites. Does anybody know what the command or commands are?
Thanks to all who answer.
- Mark
|
|
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Oct 2002
Location: Left Coast
Status:
Offline
|
|
Originally posted by sc_markt:
A while back, I read somewhere that you can manually type in websites in the terminal that could be set up so that your mac can't go to these sites. Does anybody know what the command or commands are?
Thanks to all who answer.
- Mark
Though I've never done it, I believe this can be done using ifpw. See man ipfw - there are examples of blocking certain sites.
I think there are a few GUI apps out there as frontends for ipfw. You might want to google for something like that to make your life easier.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: May 2001
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: Edmond, OK USA
Status:
Offline
|
|
Originally posted by JNI:
Though I've never done it, I believe this can be done using ifpw. See man ipfw - there are examples of blocking certain sites.
Be warned that once you use ipfw to modify the rules that the Firewall control panel will cease to function (until you put it back).
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2003
Location: Pittsburgh, Pennsylvania
Status:
Offline
|
|
You could also do it in your /etc/hosts.deny file
When encountering a site the computer first looks at this file, if the site, or ip address is in this list your computer will not go there. Ipfw will work at blocking sites, but this is much easier if you do not have a firm grasp of the unix underpinnings of the computer.
ndt
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Jun 2000
Status:
Offline
|
|
Originally posted by Partisan01:
You could also do it in your /etc/hosts.deny file
I could be wrong but If I understand it correctly, hosts.deny would only block inbound connections. What I used to do on NetBSD is modify /etc/hosts and add an entry such as:
yahoo.com 127.0.0.1
This should prevent Yahoo from coming up, assuming your computer uses the hosts file before looking in DNS.
|
|
Agent69
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2003
Location: Pittsburgh, Pennsylvania
Status:
Offline
|
|
Originally posted by Agent69:
I could be wrong but If I understand it correctly, hosts.deny would only block inbound connections. What I used to do on NetBSD is modify /etc/hosts and add an entry such as:
yahoo.com 127.0.0.1
This should prevent Yahoo from coming up, assuming your computer uses the hosts file before looking in DNS.
Yeah, I think you're correct on that one. Thanks for the correction.
nt
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|